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 General Discussion » Toolbar buttons missing in SDI Doc/View app Collapse All
Subject Author Date
Carsten Pedersen Jan 22, 2008 - 12:48 AM

I tried making a SDI doc/view MFC project from the app wizard, and adjusting it according to the SDIDOCVIEW sample provided.

However, when replacing the CToolBar with the CExtToolControlBar in the CMainFrame class, the buttons disappear, although one is able to press what should have been the buttons.

Somehow it doesn’t load the resource, it only knows how many there are, and such.

Anyone experienced this before?

Is there a better way when making a Doc/View app than to look in the samples and imitate what’s done there? There’s not a ’recipe’ for what to include and replace when converting a project?

Best regards

Technical Support Jan 23, 2008 - 11:09 AM

Please take a look at the following simplest possible sample applications: SDI, MDI, SDIDOCVIEW, and MDIDOCVIEW. These applications are very similar to those just generated with the MFC Application Wizard. Prof-UIS toolbars bars use the icons stored in the command manager. The icons in your application were not displayed in the toolbar because you forgot to initialize the command manager. Please also read the following article which may be helpful:

Getting Started with Prof-UIS

Unit 3.5 in this article describes how to initialize the command manager. You will find the appropriated code at the beginning of the CMainFrame::OnCreate() method of the sample applications mentioned above.

Suhai Gyorgy Jan 22, 2008 - 1:29 AM

Regarding toolbar buttons, read this FAQ: Icons on toolbar buttons do not show up. What’s wrong?
For ’recipe’, you should check out this Feature article: Getting started with Prof-UIS