Click here to Skip to main content
15,893,644 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I tried to convert all controls to MFC Feature pack but now toobar is not visible on the frame. I changed CToolBar to CMFCToolBar, CFrameWnd to CFrameWndEx etc.
Any suggestions?
Posted

Please create a simple MFC SDI application by the studio wizard,
then go to the CMainFrame::OnCreate(..) and observe the needed preparing there.

There are some changes at the using of bars... :)
 
Share this answer
 
Thanks for your reply. I observed that if I move the toolbars in modified code then I could see them. Basically while getting created toolbars are created in a position which is not visible on the frame. Is there any function to know the position of the toolbar?
 
Share this answer
 
You could use CWnd::GetWindowRect(..)
for a docked or floating tollbar too.

The "prestart" position of a bar is also saved in the registries,
if its Load-/SaveState(..) methods have been not disabled/modified :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900