Results 1 to 2 of 2

Thread: toolbar on mdi frame window

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    34

    toolbar on mdi frame window

    How do you place a toolbar window on a MDI frame window and prevent the MDIClient window from covering up the toolbar?

    Initially I tried handling the main frame's WM_SIZE message, and using SetWindowPos to move the MDIClient window into the appropriate position to compensate for the toolbar. While this works, I can't help but feel it's not the right way. Also, using the afore mentioned method, sometimes the toolbar does not paint correctly and the MDIClient can be seen on its' background.

    In VB, when you place a toolbar control (or any other Alignable control) on a MDIForm, it automatically adjusts the MDIClient accordingly. This method does not appear to be using any subclassing either (at least not according to Spy++). Is this some kind of OLE thing?

    Any help would be appreciated.

    BTW- I am not using any MFC

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    I think you somehow have to tell the MDIClient that the usable size of your frame has changed.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width