I had finally found a happy end to my problem
What I had to do was to subclass the existing window to a new function to handle the messages (like WM_PAINT) using
SetWindowLong with the hwnd, GWL_WNDPROC argument, and the name of the new function to handle messages, than it handle only the...
I found that on MFC applications, u can't use WndProc to handle the WM_PAINT messages, u need to use the AfxRegisterWndClass function, but the help didn't help me that much
so, anyone know something about handling window messages on a MFC dll?
thanks
Daniel
This code have worked on THE application, but when I tried to implement a dll that gets the hwnd from a window of another application, it won't hook to process the WM_PAINT message
is there any way to make it goes thru the dll?
u just have to handle the WM_PAINT messages, give a look at that:
http://www.flipcode.com/articles/article_win32skins.shtml
then just look at the skinning part, and u can download the code too
and there is one example from the MSDN library at...
Yes, the window is a PictureBox object from VB, but I will create an activeX_dll that will modify that PictureBox.
I tried to handle the WM_PAINT message, re-painting the graphics, but it didn't work
that's what I use:
LRESULT CALLBACK WndProc(HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM...
I am having problems trying to modify the persistent graphics of a window (the window already exist) using it hWnd and the Device Context.
I can already paint on the window, but when another window goes on top of this window, it erases the paint
So, can I paint to the background of the window...
I am having problems trying to modify the persistent graphics of a window (the window already exist) using it hWnd
I can already paint on the window, but another window goes on top of this window, it erases the paint
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.