Is it possible to add a menu to a dialog? If not, is it possilbe to create a dialog without a frame, kinda like a menu, but works like a dialog, receives messages like a dialog, etc.
Is it possible to add a menu to a dialog? If not, is it possilbe to create a dialog without a frame, kinda like a menu, but works like a dialog, receives messages like a dialog, etc.
Last edited by Jaken Veina; 06-27-2005 at 04:38 PM.
Code:void function(void) { function(); }
Yes! Since you are using dialog... (me thinks via resource) you can create one there... see hereOriginally Posted by Jaken Veina
I have that tutorial. It says nothing about putting a menu into a dialog.
Code:void function(void) { function(); }
Yes ofcourse a dialog can have a menu... you can create it using the resource editor, or you can create it at runtime just like you would with any other window
Well, how would you create it in a .rc? Or, since I found out that you can, what style do you use to remove a dialog's title bar?
Code:void function(void) { function(); }
Try LoadMenu, SetMenu APIs
>>how would you create it in a .rc?<<
Use the MENU resource definition statement within the context of a DIALOGEX resource definition statement.
>>what style do you use to remove a dialog's title bar<<
Remove WS_CAPTION and WS_SYSMENU from the STYLE resource definition statement of your DIALOGEX resource definition statement. Also remove the CAPTION resource definition statement.
Full list of resource definition statements.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Thank you. I managed to figure out the second answer, though, and it does not completely remove the title bar. It only removes the buttons from it. Perhaps it is my compiler?
Code:void function(void) { function(); }
And your compiler is?
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Dev-C++.
Code:void function(void) { function(); }
That shouldn't be a problem - just re-read my previous post and follow the instructions exactly.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
I'll remember that. Thanks a lot. I worked everything into a single dialog after all.
Code:void function(void) { function(); }