RE: Reserving screen space on main frame

"Richard Crossley" <[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <01be01c9f04c$57c48f10$074dad30$@com>
You can see how the WTL frame class does it by looking at its implementation
of Updatelayout().
UpdateLayout() calls UpdateBarsPostion() to position the tool and status
bars then moves the client window to occupy the remaining space.

All you need to do is provide an implementation of UpdateLayout() in your
frame class which moves the client and widget to the positions appropriate
for your layout.

HTH,

Richard.

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of
> tbandrowsky
> Sent: 18 June 2009 20:20
> To: [email protected]
> Subject: [wtl] Reserving screen space on main frame
> 
> Hello.  I am writing a WTL application and for whatever maddening
> reasons I have decided to not use the existing menu/toolbar structure
> and have my own navigation and toolbar in place instead.  I understand
> how to not have items on the main window, by monkeying with OnCreate in
> MainFrm.h, but, what I would like to do is have my u/i in MainFrm
> reserve some space for its my custom widget, which it would draw, but
> then still have the view move correspondingly.
> 
> I suppose I could brute force it by handling WM_SIZE, etc, but I notice
> that the existing frame seems to always have the view the right size,
> taking into consideration the other decorations.  What do I need to do
> to have my widget play with MainFrame in the right way.  What I'd
> really like to do, ultimately, is have mymainframe and menu be a single
> class so I can reuse the navigation for other projects and have a ready
> to go frame.
> 
> 
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 




------------------------------------

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:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.