-
October 14th, 2003, 06:29 AM
#1
how to create buttons during runtime
I want to create buttons during runtime.... the number of buttons may vary... but how can I create them on my dialog ??
-
October 14th, 2003, 06:36 AM
#2
Use CreateWindow with a window class of "button". Pass the dialog window's HWND as the parent window to the button. You will likely need to make the dialog window resizeable to accomodate a large number of buttons.
Of course, instead of a dialog, you could just create your own frame or popup window and host the button controls there.
-rick
-
October 14th, 2003, 10:42 AM
#3
Furthermore, define the ID for the controls at compile-time.
Kuphryn
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
|