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 » CExtToolControlBar::SetButtonInfo Collapse All
Subject Author Date
Ulrich Kallenbach Jul 19, 2004 - 5:16 PM

Hi,
within a project, we are updating an existing (old) MFC-based app. Decision was to use Prof-UIS framework for the new version. The old uses the MFC "all button images in one bitmap" approach for a number of toolbars. I’ve now noticed that CExtToolControlBar::SetButtonInfo come with only three parameters (instead of 4 in MFC’s CToolBar::SetButtonInfo). So, it seems, I cannot assign an iImage when setting the nID in Prof-UIS. Am I right or just missing something? Help appreciated.

Best regards,

Ulrich

Technical Support Jul 20, 2004 - 3:11 AM

The MFC toolbar is based on image lists. So each button in an MFC toolbar is assigned an image index.

The Prof-UIS toolbar operates with the global command manager component and each button knows only its command identifier value. To get additional information about this command, the button requests g_CmdManager and gets a pointer to the corresponding CExtCmdItem object, which completely describes the command. The article Getting started with Prof-UIS may be useful for you as well as the basic samples provided with the library (SDI, SDIDOCVIEW, MDI, and MDIDOCVIEW). First of all, pay attention to the CMainFrame::OnCreate method in the library samples. And do not hesitate to contact us in this forum or via support@fossware.com.

Ulrich Kallenbach Jul 20, 2004 - 6:56 AM

Thank you very much!
Ulrich