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 


Question on disabling Window resizing in Win32 C

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

Joined: 26 Nov 2007
Posts: 47

PostPosted: Thu Nov 29, 2007 4:08 am    Post subject: Question on disabling Window resizing in Win32 C Reply with quote

I have tried handling WM_SIZE message by adding the case in the message loop and do nothing inside, but it doesn't seem to work. Can anyone tell me how to deal with it?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Nov 29, 2007 5:07 am    Post subject: Reply with quote

Be sure to return FALSE when attempting to null out the effect of a case.

Code:
case WM_SIZE:
   return FALSE;


Edit: Eh, try true and false, I can't remember right now :/ need sleep.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Aikos
Cheater
Reputation: 0

Joined: 26 Nov 2007
Posts: 47

PostPosted: Thu Nov 29, 2007 5:22 am    Post subject: Reply with quote

Thanks a lot. Alternatively, I found that turning off the WS_THICKFRAME flag in the dwStyle flag also disables the resizing. But that doesnt include minimization or maximization though.
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Thu Nov 29, 2007 5:57 am    Post subject: Reply with quote

you want return true so you know the WM_MESSAGESIZE processed the nothing correct
_________________
Back to top
View user's profile Send private message
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