kolynet Posted October 19, 2014 Posted October 19, 2014 Hi, Im trying to figure out how can i repaint a remote window in delphi easily, because if i make changes to the window, i always have to minimize and maximize it to take effect. (believe the paint message start going when i maximizing). Is there any workaround? I have read that i should use the invalidate function, but i dont have a clue how to do it on a specific window, outside delphi.
atom0s Posted October 20, 2014 Posted October 20, 2014 You can use the InvalidateRect API for Windows:http://msdn.microsoft.com/en-us/library/windows/desktop/dd145002(v=vs.85).aspx Just give it a valid handle to the window and use 0 / null for the rest of the parameters to force the entire window to refresh. You can use API like FindWindow to get the hWnd needed for InvalidatedRect.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now