Professional UI Solutions
Site Map   /  Register


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 Tech Support » Large icon customization looks inconsistent in CExtPageNavigatorWnd Collapse All
Subject Author Date
Bogdan Munteanu Nov 23, 2011 - 4:32 PM

Dear support,

Whenever one selects "Large icons in toolbars" in the Customize site dialog box, the icons at the bottom of CExtPageNavigatorWnd are not expanded. This is inconsistent with the look and feel of all the toolbars in an application.

Could you please fix that?

Thank you,


Technical Support Nov 28, 2011 - 1:48 PM

Please override the CExtCustomizeSite::OnChangedToolbarIconSizeOption() virtual method in your main frame class, invoke the parent class method, then invoke CExtPageNavigatorWnd::UpdatePageNavigatorWnd() method.

Bogdan Munteanu Nov 28, 2011 - 4:52 PM

It worked, thank you!

Bogdan Munteanu Nov 26, 2011 - 3:45 PM

Thank you for your advice. I have been able to overwrite the functions you indicated. However, the buttons do change only if I resize the page navigator (or if it happens to be resized as a side-effect of another tool bar becoming thicker). This problem is similar to the thread CExtCustomizeSite: there you provided a fix  (static void stat_RedrawFloatingFramesEx( CFrameWnd * pDockSite )) but that one notifies only floating windows and control bars with toolbars inside.

Would it be possible for you to suggest a way of notifying CExtPageNavigatorWnd too?

Thank you,


Technical Support Nov 24, 2011 - 8:54 AM

The "Large icons in toolbars" option changes the CExtToolControlBar::g_bToolbarLargeIcons flag which affects to the CExtToolControlBar windows only. The page navigator control contains icon areas which are not toolbars. They are contracted pages.
You can invoke tge CExtPageNavigatorWnd::ItemGetInfo() API to get pointer to CExtPageNavigatorWnd::PAGE_ITEM_INFO * structure containing data of one item inside page navigator. You can specify bigger icons in the CExtPageNavigatorWnd::PAGE_ITEM_INFO::m_IconCollapsed and/or CExtPageNavigatorWnd::PAGE_ITEM_INFO::m_IconExpanded properties. You may need to override the CExtPageNavigatorWnd::OnQueryCollapsedAreaHeight() and CExtPageNavigatorWnd::OnQueryItemHeight() virtual methods and provide a larger heights in pixels for very large icons.