-
November 28th, 2015, 02:42 AM
#1
How create child window?
I create main window by CreateWindowEx() but I want child window like button. Child window should automatically move when parent window moves.
How create it?
-
November 28th, 2015, 01:32 PM
#2
Re: How create child window?
Handle the WM_CREATE message to create a child control. You could use the same CreateWindowEx to do it but passing the correct window class of the control ("button" for button control)
Victor Nijegorodov
-
November 30th, 2015, 05:09 AM
#3
Re: How create child window?
Originally Posted by Borneq
Child window should automatically move when parent window moves.
Any window having WS_CHILD style is moved along with its parent.
PS. To prevent flooding the forum with your other How-to questions I would recommend you to start with reading some good book covering Windows GUI programming basics. Like Petzold's Programming Windows.
Best regards,
Igor
-
December 18th, 2015, 03:40 PM
#4
Re: How create child window?
You can Create child window by using WS_CHILD as mentioned by igor and don't forget to provide the handle of it's parent window while creating the child.
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
|