The information in this article applies to:
SYMPTOMSAn ATL control might flicker while it is being resized. For example, if you have a ListView control inside an ATL control and you allow it to be resized at run time, a significant amount of flickering occurs. CAUSEATL controls are created by default with the CS_HREDRAW and CS_VREDRAW class styles. These styles cause the entire window to be redrawn when the window is resized. RESOLUTIONRemove the CS_HREDRAW and CS_VREDRAW styles from the window by overriding the GetWndClassInfo() function. Add the following function to your CComControl-derived class: Sample Code
STATUSThis behavior is by design. MORE INFORMATIONGetWndClassInfo() is called by the CWindowImpl<>::Create() method during window creation and uses the WNDCLASS structure initialized by GetWndClassInfo(). Additional query words: WM_PAINT OnPaint OnDraw WM_SIZE OnSize SetObjectRects Invalidate InvalidateRect FireViewChange kbATL200 kbATL210 kbATL300 kbctrl
Keywords : kbnokeyword kbActiveX kbATL200 kbATL210 kbCOMt kbCtrlCreate kbGDI kbVC420 kbVC500 kbVC600 kbATL300 kbGrpMFCATL |
Last Reviewed: November 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |