Yet again some winapi problem...
My window has trouble redrawing itself. When i drag any window over my window than it will redraw itself right. But when i am resizing or on fresh start, my window does not correctly redraw. ( see attachment)
my controls also have the WS_CLIPCHILDREN | WS_CLIPSIBLINGS flags.. I trieed without these flags and the problems still occur.
in the WM_CREATE event of my window im calling ShowWindow and UpdateWindow and activatewindow...
when my listview is in icon view. it draws scrollsbars but it doesnt draw them right(unless i put a difrent window ontop and then activate my window again it draws ok.)
in the resize event im calling MoveWindow on my controlls with brepaint to False...
so my question is... is the poroblem with the style flags? or is it i need to set bRepaint to true... thanks
Last edited by Mitsukai; September 16th, 2008 at 10:53 AM.
The easiest solution would probably be to add CS_HREDRAW | CS_VREDRAW to the class styles, but there's a very nice article about this sort of issue here, which also gives other solutions that might suit your situation better.
I am a beginning C++ Win32 programmer with LOTS of questions. Hopefully matching answers can be found here...
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.