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 


Size of window

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Wed Aug 20, 2008 3:24 pm    Post subject: Size of window Reply with quote

I'm getting angery tring to figure out the height of the WS_OVERLAPPEDWINDOW bar thingy. I'm tring to make a window the size of an image.

Code:
CreateWindowEx("Class", "Title", WS_OVERLAPPEDWINDOW, 0, 0, 400, 300...


I'm trying to make the height 300 not including the WS_OVERLAPPEDWINDOW bar. I try doing it by adding pixels but it is not working.

_________________
What dosen't kill you, usually does the second time.
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Aug 20, 2008 3:29 pm    Post subject: Reply with quote

WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX

instead of WS_OVERLAPPEDWINDOW

?

btw, CreateWindowEx's first parameter is DWORD dwExStyle, your thinking of CreateWindow

_________________
Back to top
View user's profile Send private message
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Thu Aug 21, 2008 5:08 am    Post subject: Reply with quote

Oh, oops why did I put Ex. What I meant was...


_________________
What dosen't kill you, usually does the second time.
Back to top
View user's profile Send private message
Zand
Master Cheater
Reputation: 0

Joined: 21 Jul 2006
Posts: 424

PostPosted: Thu Aug 21, 2008 6:03 am    Post subject: Reply with quote

Dunno.

Get a magnifying glass and count pixels. Cool
Back to top
View user's profile Send private message
DoomsDay
Grandmaster Cheater
Reputation: 0

Joined: 06 Jan 2007
Posts: 768
Location: %HomePath%

PostPosted: Thu Aug 21, 2008 9:17 am    Post subject: Reply with quote

Zand wrote:
Dunno.

Get a magnifying glass and count pixels. Cool
Bad idea, it changes(skins).
If you don't mind manipulating the window after you've created it, GetDCOrgEx will return a point which is relative to the screen. All you'll have to do is to substract the result from your window's origin.
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