Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bindevent to non VFP windows messages
Message
De
16/05/2006 01:20:21
 
 
À
14/05/2006 12:07:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01121600
Message ID:
01122122
Vues:
61
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform