Information générale
Catégorie:
Visual FoxPro Beta
Hi Paul
I'm glad this works for you.
FWIW, if you want to optimize the code (reduce in size, increase in speed), you can avoid creating quite so many objects (GpColor, GpRectangle) - for colours just use the ARGB numeric value directly (eg black is 0xFF000000) and for the rectangle look at GpGraphics::MakeGdipRectF(). I can't remember offhand if you'd need a Rect or a RectF - check the source. Also, you don't need to convert out of Unicode - stay in Unicode and use DrawStringW() instead.
Both things I only briefly mentioned in FoxTalk .. only so much room in one magazine.
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