ScrollWindowEx causes flickering! |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 11 September 2009 at 4:32am |
I've created a CWnd-derived window with scrollbars. In both OnVScroll and OnHScroll I call ScrollWindowEx(..., SW_INVALIDATE) to update my view.
The problem is that vertical scrolling causes extreme flickering (WS_CLIPCHILDREN and WS_CLIPSIBLINGS are set, CS_VREDRAW and CS_HREDRAW are not set). Using CXTMemDC and returning FALSE from OnEraseBkgnd (tried TRUE too).
SB_THUMTRACK causes the flickering... I have to somehow improve the redraw mechanism.
Please help.
|
|
PokerMemento - http://www.pokermemento.com/
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Removing the call to ScrollWindow alltogether solves the problem. *stupid* :P
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |