Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - ScrollWindowEx causes flickering!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ScrollWindowEx causes flickering!

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: ScrollWindowEx causes flickering!
    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/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2009 at 5:17am
Removing the call to ScrollWindow alltogether solves the problem. *stupid* :P
PokerMemento - http://www.pokermemento.com/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.