Re: CSizingControlBar



Rem wrote:
What are you trying to do? Do you mean to simply hide and show a
CControlBar?

There is a MDI window with six CSizingControlBars. All bars is docked. I want bars to change sizes automatically to fill whole window when: - I change size of main window - I show or hide some bars - I change size one of bars ( other bars must be resized too ) - I change location of bar

One of the major functions of an MFC frame window is to size and position all of its children when anything changes. You can study how MFC does it starting with the frame window WM_SIZE (OnSize) handler code. Then you can handle this message yourself with custom code if MFC does not do what you need. Or, you could consider commercial libraries that provide docking functionality, such as codejock.com


--
Scott McPhillips [VC++ MVP]

.



Relevant Pages

  • Re: IE6 search bar links dont load in Main Page
    ... "open in a new window". ... Theres a problem with the design of the Altavista side bars. ... click one of the other search engine links eg. images, ... Unfortunately this is a design 'feature' of AltaVista side bars. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Stephen Lebans Calendar
    ... What I mean by "like for like" is from a display ... window title and without the menu bars which is how the DTP is displayed. ... I have been able to suppress the menu bars but do not know how to change ...
    (comp.databases.ms-access)
  • Re: Opening a website in new browser window
    ... available if someone closed the new window. ... as he wants to keep his nav bars and not leave his ... hyperlink in Publisher that opens in a new window: ... "The problem with the script on page HP030805631033.aspx is that it ...
    (microsoft.public.publisher.webdesign)
  • Re: Wish Me Luck !
    ... Insurance is for people with something to lose. ... Bars over windows are feel good stuff. ... out thru the window. ...
    (rec.crafts.metalworking)
  • Re: Opening a website in new browser window
    ... Perhaps he meant he simply wanted a new window to open but his scroll bars would be available if someone closed the new window. ... It's not real hard to open a page, either in a new window or the same one (it the OP's case, I don't see it making a huge difference, as he wants to keep his nav bars and not leave his site), but it's problematical making the iframe the correct size. ... Reference: Create a hyperlink in Publisher that opens in a new window: ... "The problem with the script on page HP030805631033.aspx is that it includes ...
    (microsoft.public.publisher.webdesign)