4 Jun 2008 23:19
How to persist CMainFrame location and size?
I have a CFrameWindowImpl<>-based window. In my WM_CREATE handler, I
load values for the last location and size of the window and call
MoveWindow() with them. However, when wndMain.ShowWindow( nCmdShow )
is called from Run(), WM_SIZE and WM_MOVE messages are received with
different values from the ones I set. Are there any canonical WTL
examples of persisting window location and size? I can set the
location and size after wndMain.ShowWindow( nCmdShow ), but I get a
quick flash of the window at the wrong size and location.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:wtl-digest@...
mailto:wtl-fullfeatured@...
<*> To unsubscribe from this group, send an email to:
wtl-unsubscribe@...
(Continue reading)
RSS Feed