What are the main things when WS_CLIPCHILDREN is added to a control. Try below sample
1. Create a dialog based application and set dialog border resizing.
2. Handle WM_SIZE message with below code
CDialog::OnSize(nType, cx, cy); SetWindowPos(0,0,0,0,0,SWP_DRAWFRAME|SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE); Invalidate(TRUE);
3. Place a CListCtrl and add WS_CLIPCHILDREN to the same.
4. Run the application and resize the dialog.
Definitely there must be a flickering and all controls should be painted properly. But it is observed that the Header control of CListCtrl is not painted properly. Is there any thing that need to care about second level child(HeaderCtrl is child of CListCtrl) while setting WS_CLIPCHILDREN to child control?
Thanks, Renjith V R