Hi,
I am newbie in VC++. CAn anyone tell me how to use toolbar in a dialog box?
:D Kinjal :D
Printable View
Hi,
I am newbie in VC++. CAn anyone tell me how to use toolbar in a dialog box?
:D Kinjal :D
Huh? Newbie in C++? Toolbar in Dialogbox?
Are you really a newbie to C++, then please learn the language first. If you are just a newbie to windows, then say so.
If you are a newbie to windows, this should help you: a toolbar is a common control - search MSDN for common controls. You can use the WM_DLGINIT (or something) message in your DialogProc to create the toolbar and add buttons. Or to load it from a resource.
Hi CornedBee
I think you have made a mistake while reading my post. You better have your eyesight checked. :eek:
I am newbie in "Microsoft Visual C++ 6.0" and have lot of experience programming C++, C and also Microsoft Visual Basic 6.0 . So it is not that I don't know "Windawz" programming at all. The fact is I don't know how to do it in VC++.
Now I think you are clear.
Ok, if you are neither a newbie to C++ neither to windows API you should know how it works ;)
No seriously, just do like I said in my previous post. CreateToolbarEx is the function you need. Look it up in MSDN. To learn how to load a toolbar from a resource, see CToolBar::LoadToolBar in the MFC source code. Even if you don't use MFC, you should be able to find out how to get the info out of the resource. If not, I can help you.