Skip to main content
gamedev.net
🔒 Locked

tool windows

Started by Enselic Dec 7, 2002 at 9:54 AM 1 replies 200+ views
Original Post
Enselic
Enselic
In MSVC++ you can form a dialog resource so it looks like a typical toolbox window. But how do you use that toolbox? A call to DialogBox() will only concern the messageproc for the toolbox right? Q: How can I have a toolbox window active at the same time as the main window i.e. handle messages in both the message procs?
quasar3d
quasar3d
Use CreateDialog
TheBlackJester
TheBlackJester
Create your tool window dialog template in the resources...

Use CreateDialog(hInstance, templateID, hWnd, DLGPROC) to create your dialog. If you created it as a resource than templateID should be something like IDD_MYDIALOG

Create a proc, such as: DLGPROC(HWND hDialogHandle, UINT msg, WPARAM wParam, LPARAM lParam) That will hangle your messages to your dialog.



"With my feet upon the ground I lose myself between the sounds and open wide to suck it in, I feel it move across my skin. I''m reaching up and reaching out. I''m reaching for the random or what ever will bewilder me, what ever will bewilder me. And following our will and wind we may just go where no one''s been. We''ll ride the spiral to the end and may just go where no one''s been." - Maynard James Keenan
Name: TheBlackJester
Team: Wildfire Studios

Projects
O A.D.
The Last Alliance

"With my feet upon the ground I lose myself between the sounds and open wide to suck it in, I feel it move across my skin. I'm reaching up and reaching out. I'm reaching for the random or what ever will bewilder me, what ever will bewilder me. And following our will and wind we may just go where no one's been. We'll ride the spiral to the end and may just go where no one's been." - Maynard James Keenan <

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.