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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Toolbar on a Dialog without MFC

Status
Not open for further replies.

REWT

Programmer
Aug 10, 2001
12
US
Hello.
I have an ATL com object. I have a dialog in the project created with the ATL object wizard. I want this dialog to have a toolbar that I created in the resource view. How do I do this. With MFC it is easy, but I do not want to use MFC. Thanks in advance for your help and promptness.

Ryan Taylor
 
Try using LoadMenu() to load up your menu resource and get a handle(HMENU) to it, then use SetMenu() to attach it to your current window. It's what I use when I don't use MFC...not sure how it will work for you. Hope this helps.

Niky Williams
Lead Engineer
NTS Marketing, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top