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 


Graphics Windows

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
r3xce
How do I cheat?
Reputation: 0

Joined: 03 Jul 2015
Posts: 7
Location: 127

PostPosted: Fri Jul 17, 2015 11:45 am    Post subject: Graphics Windows Reply with quote

Hi,

I have a nearly complete project, but in the end had a problem.
I will explain, I used GDI and Canvas to write a text on top of other open application (using FindWindow to get the DC), but when I change the text in the same place, the texts are on top of another.

some solution or tip? (the other program uses OpenGL, but has protection hook, and one job would be simple become difficult, my goal is just writing).

Note: I've used UpdateWindow(), ReleaseDC() as methods to work around this, but it not worked.

_________________
Eternal Apprentice
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Jul 17, 2015 8:48 pm    Post subject: Reply with quote

You need to invalidate the remote window to force it to refresh/redraw.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
r3xce
How do I cheat?
Reputation: 0

Joined: 03 Jul 2015
Posts: 7
Location: 127

PostPosted: Fri Jul 17, 2015 10:37 pm    Post subject: Reply with quote

Thanks atom0s, but my problem was the canvas object build order and free buffer, had already used the InvalidateRect() and had not worked (in the old code).
But those who have problem with the question above the atom0s refers is:


Code:
BOOL RedrawWindow(
  _In_  HWND hWnd,
  _In_  const RECT *lprcUpdate,
  _In_  HRGN hrgnUpdate,
  _In_  UINT flags
);

_________________
Eternal Apprentice
Back to top
View user's profile Send private message AIM Address Yahoo Messenger 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