|
|
|
|
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.
Subject |
Author |
Date |
|
Mark Lo Chiano
|
Dec 4, 2006 - 4:50 PM
|
We are in the process of converting applications created prior to securing the ProUI library. One of the initial efforts is to change the standard ’CToolBar’ controls to the ’CExtToolControlBar’. After making the modifications recommended in the Pro documentation (e.g. renaming the classes, and modifying the Create call), the tool bar is created, and does respond to user clicks with the appropriate messages. However, the bit maps are not displayed. If the mouse hovers over where the bitmap ’should be’, the area is hilighted, and the tool tip is presented......just no image. These tool bars were created in the usual manner through Visual Studio, and are loaded via the LoadToolBar method. All Pro calls return success.
|
|
Mark Lo Chiano
|
Dec 5, 2006 - 7:32 AM
|
the g_CmdManager->UpdateFromToolBar is called automatically from within LoadToolBar, but this did provide the neccessary clue. This automatic call was failing (without being reported). The key to getting it to work was the call
g_CmdManager->ProfileSetup( __PROF_UIS_PROJECT_CMD_PROFILE_NAME, GetSafeHwnd() );
in the same method that created the tool bar. In this case that method was CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
Thank you, the problem is now solved.
|
|
Technical Support
|
Dec 5, 2006 - 1:04 PM
|
We guess there must be something incorrect with the sequence of initialization calls the CMainFrame::OnCreate() method. Would you send the source code for your main frame window to us at support@prof-uis.com so we can help you out?
|
|
Suhai Gyorgy
|
Dec 5, 2006 - 1:19 AM
|
Did you call g_CmdManager->UpdateFromToolBar for your toolbar? You can see how it is done in almost every sample which uses CMainFrame.
|
|