Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LoadCursor Help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00798912
Message ID:
00799329
Vues:
29
Hi Anatoliy,

Any idea why this isn't changing the size of the text edit control on the screen?
CLEAR

lnhandle=GEThandle()
?lnhandle

DECLARE INTEGER CreateCaret IN user32;
	INTEGER hwnd,;
	INTEGER hBitmap,;
	INTEGER nWidth,;
	INTEGER nHeight

iok=CreateCaret(@lnhandle,0,3,100)

DECLARE INTEGER ShowCaret IN user32 ;
	INTEGER hwnd
	
iok2=ShowCaret(@lnhandle)
	
ACTIVATE SCREEN
myans=.f.
@5,1 sAY "Is this correct the correct caret size?" GET myans PICTURE "Y"
READ
RETURN


FUNCTION GEThandle
DECLARE INTEGER FindWindow in Win32API as FindWindow STRING, STRING
lnhand=FindWindow(0,'Policy Profiler 32')	&& app titlebar
IF lnhand=0
	lnhand=FindWindow(0,VERSION())	&& my development mode title bar
ENDIF
CLEAR DLLS "FindWindow"
RETURN lnhand
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform