Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form - resize rubber band
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00944495
Message ID:
00945274
Vues:
25
Herman,

>
> You also doesn't need to create & destroy the brush anytime it draws.
> Just create it one time, use it subsequently until you don't need it
> anymore ( or end of the application ) then destroy it.
>

Ah, good. Then I'll create it in the MouseDown and keep the handle until MouseUp

>
> Glad you can make it worked. Now you know it's not too hard, right ;-)
>

Well, the problem is not the coding itself. It's that You have to know how to
get there. Finding the functions in the SDK is the easiest job; knowing how
to use witch of them in order to achieve the goal is the problem.

I think Its like getting on a submarine and trying to drive it. I'd know what
I want and I basicly know how it works. But I would not know witch buttons to
press in witch order to make it work properly.

>
> I think you already know this, but I just want to tell about this line:
> nLeft = Buff2Num( cRect, (4*0)+1, .F. )
> The rectangle value actually is a type of LONG . But I use WORD conversion
> instead, because I think windows rectangle will never reach the highest WORD
> value (0xFFFF). So it's up to you which one you want to use.
>

My String2Long-Method is already a member of the class and I think, I'll take that.
I want this class to be completely standalone, as I'd like to publish it here, so
others can download it.

I don't like using other's classes where You have a big overhead, procedures and vcx's
that need to be part of the project, just to implement a single functionality.

At the moment I use a Bitmap for the corner (dots) but I think I'll better paint the
dots using the windows system colors for Button Sun and Shade (I know how to get those ;-) ).

Win2K (or Themes switched off) does not use Dots in the lower left corner, it has diagonal lines

I'll tell You, when it's done.

Frank
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform