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 » Toolbar problem Collapse All
Subject Author Date
Paolo Giustinoni Aug 25, 2006 - 6:43 AM

Good morning.
I have a problem with a CExtToolControlBar. I have an SDI Project (with a CMainFrame derived from CExtNCW <CFrameWnd>) with some dialog boxes (derived from CExtResizableDialog) and in these dialogs I have to load a CExtToolControlBar.
I created, in the dialog box, a CExtToolControlBar variable, and associated with a custom control (ProfUIS-ControlBar class), I called the function g_CmdManager->ProfileSetup with the HWND of the dialog box inside the OnInitDialog() function, the m_wndToolBar.LoadToolBar() function, the RepositionBars(0, 0xffff, 0) at the end of the OnInitDialog function and the OnSize() function. but I can’t see the toolbar show in the dialog when I open it.

What’s wrong?

Thanks, Paolo

Technical Support Aug 25, 2006 - 7:03 AM

Did you invoke CExtToolControlBar::LoadToolBar() for initializing the dialog’s toolbar content? Please also compare the properties of the custom control which corresponds to the CExtToolControlBar window on the dialog template resource with the same custom controls on the toolbars page dialog in the ProfUIS_Controls sample. We can guess you simply forgot to mark the toolbar dialog item as being visible.

Paolo Giustinoni Aug 25, 2006 - 7:31 AM

Yes. I invoked LoadToolBar() to initialize the toolbar, and the custom control is visible and with the same style (0x50402034) of th ProfUIS_Controls sample.
The toolbar continue to be not visible.

Thanks, Paolo

Technical Support Aug 25, 2006 - 8:02 AM

Would you send us the source code of your dialog class and part of the resource file with the dialog definition?