Information générale
Catégorie:
Fonctions Windows API
>Hi Vinod,
>
>As a friend of mine once said, you're comparing apples (VB) and basketballs (VFP) here.
>
>In VB the picture control is actually a window displaying the picture. Because it's a window it has it's own window handle (usually referred to as an hWnd) and device context (referred to as hDC).
>
>In VFP, the image control is not a window and as such does not have a window hand nor device context. Therefore, by getting the window handle of the form, using that to get its device context, you can use that (the window's hDC) to call CreateCompatibleDC().
>
>Does this help?
Yes, it helped a little bit.. I guess will have to explain the whole thing which I'm planning to do..
I'm converting a vb app in vfp (which uses win 32 api calls...)
Basically the vb app does following :-
1. Loads a user defined image in image control
2. Gets its dc, create compatible bitmap,
3. transfers it to another location
(In the whole process, it uses all these functions like bitblt, selectobject etc..
As this being my first win32api app, i just wanted to see whether the same thing can be done in vfp or not...
From ur old threads only i came to know to use foxtools api funcitons to get window thread.. otherwise vb was simply using me.hwnd..
Pls advs. ur comments...
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement