Whole application flickers upon resize |
Post Reply |
Author | |
clintsinger
Newbie Joined: 15 May 2003 Location: Canada Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 03 September 2003 at 5:07pm |
Hi All, I have a ToolkitPro application that I am working on and I am having a problem with the redrawing. When I resize the Main frame window the whole application flickers, including menus, command bars and statusbar. I am using the theme kit as well as the outlook bar. On the right hand side of the outlook bar I have a regular CView derived object which uses CXTMemDC for drawing. I am not sure what I could be doing wrong as the demo applications don't flicker at all. Is it possible that I am using too many resources? I am also running my screen resolution at 1600x1200 on a dual Pentium III 866 on Windows XP Professional. |
|
Sven
Senior Member Joined: 21 August 2003 Location: Germany Status: Offline Points: 127 |
Post Options
Thanks(0)
|
It seems that the main window has set the CS_HREDRAW/CS_VREDRAW style. Just define your own window class instead.
|
|
clintsinger
Newbie Joined: 15 May 2003 Location: Canada Status: Offline Points: 9 |
Post Options
Thanks(0)
|
It seems that is not the case. Any other ideas of what would be causing a complete redraw everytime I resize? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
I had such problem when in CMainFrame::PreCreateWindow of MDI frame call CFrameWnd::PreCreateWindow instead CMDIFrameWnd::PreCreateWindow.... |
|
kstowell
Admin Group Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
|
Try adding this to your CMainFrame::PreCreateWindow method: BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs){ if( !CFrameWnd::PreCreateWindow(cs) ) return FALSE; // TODO: Modify the Window class or styles here by modifying // Helps to reduce screen flicker. return TRUE; Kind regards, |
|
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 |