Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Extreme flickering
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Extreme 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: Extreme flickering
    Posted: 31 July 2008 at 3:44am
XTP 12.0.1
 
I have an SDI with two panes and a view. The view has a report control. In the view I resize the report control as follows:
 
void CMyView::OnWindowPosChanged(WINDOWPOS* lpwndpos)
{
     m_report.MoveWindow(0, 0, lpwndpos->cx, lpwndpos->cy);
}
 
When I resize the window at the bottom-right corner, the report control flickers like a mad cow!
 
Why? Has the something to do with the reported flickering problems with the docking panes?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2008 at 4:20am

Hi,

You can override CMyView from CXTPReportView.... it already has m_wndReport iniside.
 
Try Catch WM_ERASEBCND and return TRUE.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 31 July 2008 at 7:11am
What would I do without you? :P
 
Handling WM_ERASEBKGND solved it (I did not want to derive CXTPReportView in this case). Thanks!
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.172 seconds.