Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Toolbar to Dialog based app

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello there..
I have been working on a dialog based app for a while now ...i now need to add a toolbar to the application but nothing seems to be wokring..
here's what i tried..i created a new SDI app and copied the code related to the toolbar over to my application ...from wat i can see there seems to be no error ..as in.. the toolbar is beign created ..however it doesnt appear on the interface ..No idea how to solve this one...any solns?


 
Override the OnCreate() of the Apps CMainFrame Class. Instansiate your toolbar class and use CreateEx to create it. As the first param pass this for the parent wnd, set your style etc., and in the last param to CreatEx do m_ToolBar.LoadToolBar(MY_TOOLBAR_RESOURSE_ID)

HTH.

William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top