Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Child window resizing.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Zand
Master Cheater
Reputation: 0

Joined: 21 Jul 2006
Posts: 424

PostPosted: Sun Jun 21, 2009 10:55 pm    Post subject: Child window resizing. Reply with quote

Using Win32 API only, how do I make it so the child windows resize along with the parent?

For example, without this functionality, this happens.

Back to top
View user's profile Send private message
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Mon Jun 22, 2009 12:38 am    Post subject: Reply with quote

http://winprog.org/tutorial/app_three.html

Scroll down untill you find "Proper Sizing", and example is shown there
Back to top
View user's profile Send private message
LolSalad
Grandmaster Cheater
Reputation: 1

Joined: 26 Aug 2007
Posts: 988
Location: Australia

PostPosted: Mon Jun 22, 2009 12:39 am    Post subject: Reply with quote

Add a WM_SIZE handler and call MoveWindow for the child window from within that handler.

Note that in the WM_SIZE message, HIWORD(lParam) is the new client width and LOWORD(lParam) is the new client height.

_________________
Back to top
View user's profile Send private message MSN Messenger
Zand
Master Cheater
Reputation: 0

Joined: 21 Jul 2006
Posts: 424

PostPosted: Mon Jun 22, 2009 5:16 am    Post subject: Reply with quote

Oops, must have worded my question badly.

I know to handle WM_SIZE and resize/reposition each child window individually, but is there an easier or automated way to do this for all child windows?
Back to top
View user's profile Send private message
LolSalad
Grandmaster Cheater
Reputation: 1

Joined: 26 Aug 2007
Posts: 988
Location: Australia

PostPosted: Mon Jun 22, 2009 7:08 am    Post subject: Reply with quote

I guess you could use EnumChildWindows.
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites