Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Upgraded app from 2.62 to 2.85 and have horizontal (not vertical) flickering issues Collapse All
Subject Author Date
Jean Gareau Aug 25, 2009 - 5:53 PM

The app uses a page navigator with a CExtSplitterWnd, where the right pane is my custom window. It uses a class without CS_HREDRAW and CS_VREDRAW. That custom window does not flicker when resizing the app vertically (using the bottom edge). But it flickers whe nresizing using the right edge.

Also, the flickering occurs is somewhat slower than if the CS_HREDRAW and CS_VREDRAW were present. When present, the flickering is very fast. Without those flags, the horizontal flickering occurs slower (maybe every 10 ms, rough guess), which seems to confirm that the flickering is originated be some window (?) which forces the background to be redrawn.

This problem did not occur using the exact same code in 2.62. It appeared after upgrading to 2.85. Any idea? Thanks

Technical Support Aug 26, 2009 - 11:36 AM

Please ensure your window is created with the WS_CLIPCHILDREN|WS_CLIPSIBLINGS standard window styles, whether it handles the WM_ERASEBKGND message and does nothing (do not draw anything, do not invoke parent class handler method) and, finally, whether the WM_PAINT message uses memory GDU device context for flicker free painting.