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 


make form on top in a full screen game?delphi

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

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Sat Feb 23, 2008 1:01 pm    Post subject: make form on top in a full screen game?delphi Reply with quote

well i have checked google for a while but i dont know what i should search for

and i really dont know how i should say what i mean eighter ...

but i give it a try and hope some1 could help me Smile

Notice fsStayOnTop wont work in a full screen game

okay lets start
if i open OdinMS.exe the program will popup in full screen
then i open my program and go back to Odin and i want to see my program on the same time i got odin open

(i want StayOnTop in a full screen game)

hope you understand and i hope some 1 know how to do it Very Happy
or know what i should search for
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: Sat Feb 23, 2008 1:29 pm    Post subject: Reply with quote

For some games, SetWindowPos should do the trick, I'm not sure for Maple though, don't play it.

But use HWND_TOPMOST with SetWindowPos with the flags of SWP_NOMOVE Or SWP_NOSIZE

For example:

SetWindowPos(YOUR_WINDOW_HWND, HWND_TOPMOST, 0, 0, 0,0, SWP_NOMOVE|SWP_NOSIZE)

Another possible way, never tested this myself though, would be setting the parent window of your programs window to Maples hWnd so that Maple owns your window and then use SetWindowPos to pull it above Maple. You could also try setting it as a child and have it "render" inside of the Maple window like a Midi window.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Sat Feb 23, 2008 1:49 pm    Post subject: Reply with quote

Wiccaan wrote:
For some games, SetWindowPos should do the trick, I'm not sure for Maple though, don't play it.

But use HWND_TOPMOST with SetWindowPos with the flags of SWP_NOMOVE Or SWP_NOSIZE

For example:

SetWindowPos(YOUR_WINDOW_HWND, HWND_TOPMOST, 0, 0, 0,0, SWP_NOMOVE|SWP_NOSIZE)

Another possible way, never tested this myself though, would be setting the parent window of your programs window to Maples hWnd so that Maple owns your window and then use SetWindowPos to pull it above Maple. You could also try setting it as a child and have it "render" inside of the Maple window like a Midi window.


Thanks Very Happy
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