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 » CExtPageNavigatorWnd - inserting items and setting the active item Collapse All
Subject Author Date
Cyndi Chatman Jan 29, 2007 - 7:24 AM

am using the CExtPageNavigatorWnd and inserting items and panes in CMainFrame::OnCreateClient() function. Here is a code snippet:



CExtPageNavigatorWnd::PAGE_ITEM_INFO * pPII =

m_wndPageNavigator.ItemInsert(

-1,

_T("Item 1"),

(HICON)::LoadImage( ::AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_NO_IMAGE), IMAGE_ICON, 24, 24, 0 ),

(HICON)::LoadImage( ::AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_NO_IMAGE), IMAGE_ICON, 16, 16, 0 )

);



If I insert a number of items, lets say 4, how do I make the second item the default (or active item) when the program starts? That is, I donaˆ™t want the user to have to click a certain tab (and to handle via the CExtPageNavigatorWnd::g_nMsgSelectionNotification message handler). I want the program to make this tab active, regardless of the order that the items were inserted. Is there a function I can call at the end of OnCreateClient() to do this?

Cyndi Chatman Jan 29, 2007 - 9:57 AM

Tech support answered this question for me via email - the answer is that there is a SelectionSet() method