Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How to set the height of every page of CExtPageContainerWnd Collapse All
Subject Author Date
Zhang Jocker Feb 24, 2005 - 1:38 AM

    I have added some page into CExtPageContainerWnd, But I don’t know how to set the height of every page of CExtPageContainerWnd, and the font size of the page, please help me.


   sorry for bad english.

Technical Support Feb 24, 2005 - 11:00 AM

The page container window in the 3DS-MAX mode uses original sizes of all windows inserted into it as child pages. It can move, show or hide child pages, change their widths but not heights (we assume you are using the vertical page container). The page container window in the Outlook bar mode allows only one page to be expanded and stretches its height to maximum possible. As we said, any page, in fact, is a window of any kind. Each window has its own font (which is often the default GUI font). To change the window font, use CWnd::SetFont() method. Please note that this method assigns a font only to one window (the font is not automatically applied to the child windows).

Jocker Zhang Feb 24, 2005 - 6:15 PM

      sorry, I didn’t tell out my purpose clearly, There is a small rectangle on the top of every page, It is used for display the title of every page, because I feel it is too narrow, I mean set the height of the small rectangle, and font.

Technical Support Feb 25, 2005 - 3:19 AM

This page caption is measured in the CExtPageContainerWnd::OnPageContainerMeasureCaptionSize() virtual method and painted in the CExtPageContainerWnd::OnPageContainerDrawCaption() virtual method. You may override this method to implement custom captions. If you need only to change the font for the page captions, then you should use your own CExtPageContainerWnd-derived class and override the CExtPageContainerWnd::OnPageContainerQueryItemFont() virtual method which should return the desired font.