>All I want is to do some painting on its window after each WM_PAINT message. But it looks that this is way over my knowledge, there are to many things I should learn to understand how this works.
>
>Even if I was able to bind to the WM_PAINT message, there are many things to consider, the region that needs updating, use BeginPaint instead of GetDC, etc. Too much for what i want to do.
>
>I just want to draw a 1 pixel border around the client area of a window, and i have to do it every time the window redrwas itself.
>
Hi Carlos,
I don't think you can BindEvent to non VFP window procedure. You have to subclass that window procedure then call your custom procedure from the subclass WndProc. You can create the Subclass WndProc yourself (from C/C++) or you may want to look for VFP2C32 (by Christian) in the download area
Another idea:
- Just draw the rectangle from your timer right after "SendMessage( SB_SETTEXT... )"
- Or use Owner-Drawn status bar then draw the rectangle on WM_DRAWITEM
Regards
Herman