Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bindevent to non VFP windows messages
Message
From
16/05/2006 01:20:21
 
 
To
14/05/2006 12:07:38
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01121600
Message ID:
01122122
Views:
66
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform