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 Collapse All
Subject Author Date
Fransiscus Herry Mar 2, 2007 - 8:29 PM

Dear Prof-Uis,

I have created a common toolbar using CExtToolControlBar.. succesfully load it and have a command message.. However, my problem, it seems cannot be save its position....every time i execute the program, the toolbar will not in its old position. Could you tell me what is wrong? I think this will be related to Command manager.........i am just beginner :)
thank you.

Fransiscus Herry Mar 5, 2007 - 9:02 PM

Ahaaa........ yeah... that is my mistake. thank you....hopefully not really bothering you. But i will come bakc with other question in the near future. :)

Fransiscus Herry Mar 3, 2007 - 5:09 PM

Hi Prof-Uis,

I would like to send the application to you. I have checked it and do what you have told. but i still get the same result. You may be better to check the program itself. Really appreciate it. while waiting i would like to practice other stuff offered by Prof-uis before deciding to get the commercial one. Thank you for help :)

Technical Support Mar 5, 2007 - 12:10 PM

You should not create toolbars with existing control identifiers. So when creating the m_wndMyToolBar toolbar please choose an identifier which is different from AFX_IDW_TOOLBAR.

Technical Support Mar 3, 2007 - 7:57 AM

Without seeing your code, we can only suggest you check the following items:

1) CExtControlBar::ProfileBarStateLoad() in CMainFrame::OnCreate() loads the position of the main frame’s window and the UI state of all control bars.

2) In CMainFrame::ActivateFrame(), there is code that restores the main frame’s window placement on the desktop.

3) In CMainFrame::CMainFrame(), the window placement information is initialized.

4) CExtControlBar::ProfileBarStateSave() in CMainFrame::DestroyWindow() saves the position of the main frame’s window and the UI state of all control bars.

You compare the above code with the corresponding code in Prof-UIS samples like SDI, MDI, SDIDOCVIEW or MDIDOCVIEW.