|
-
Dec 3rd, 2001, 08:12 AM
#1
Thread Starter
Fanatic Member
Toolbar in Dialog
Hi,
I am newbie in VC++. CAn anyone tell me how to use toolbar in a dialog box?
Kinjal
-
Dec 3rd, 2001, 09:15 AM
#2
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 4th, 2001, 07:26 AM
#3
Thread Starter
Fanatic Member
Hi CornedBee
I think you have made a mistake while reading my post. You better have your eyesight checked.
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.
-
Dec 4th, 2001, 09:36 AM
#4
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|