| |
|
|
| Julian57 (02.04.12)
Ok, así funzt alles. Gracias IF. Usted warst me una große Ayuda. $H Messages.ph
CLS
Struct CREATESTRUCT = lpCreateParams&, hInstance&, hMenu&, hwndParent&, cy%, cx%, y%, x%, style&, lpszName&, lpszClass&, dwExStyle&
var id% = 1
Var static&=CreateW("Static","Das es una Static. \nHier debería Unicode-Signo rein.",$50000000,10,10,width(%hwnd)-20,35,%hwnd,0,%hInstance)
Waitinput
SetText static&,chr$($2192)
Externo("USER32","SetWindowTextW",static&,utf("Test ")+chr$($92)+chr$($21)+utf(" Test"))
Waitinput
End
Proc UTF
parámetros texto$
declarar b#
Dim b#,2*len(texto$)+2
StringW b#,0 = texto$
texto$ = Char$(b#,0,SizeOf(b#)-2)
volver texto$
ENDPROC
Proc CreateW
If %pCount > 10
Parámetros Class$,Name$,style&,x%,y%,dx%,dy%,pWnd&,pid%,hInst&,exstyle&
Más
Parámetros Class$,Name$,style&,x%,y%,dx%,dy%,pWnd&,pid%,hInst&
Var exstyle& = 0
EndIf
Class$ = UTF(Class$)
Name$ = UTF(Name$)
Var cs# = New(CREATESTRUCT)
With cs#
.lpCreateParams& = SizeOf(cs#)
.hInstance& = hInst&
.hMenu& = If(Externo("USER32","IsMenu",id%),id%,0)
.hwndParent& = pWnd&
.cy% = dy%
.cx% = dx%
.y% = y%
.x% = x%
.style& = style&
.lpszName& = Addr(Name$)
.lpszClass& = Addr(Class$)
.dwExStyle& = exstyle&
EndWith
Var handle& = Externo("USER32","CreateWindowExW",exstyle&,Addr(Class$),Addr(Name$),style&,x%,y%,dx%,dy%,pWnd&,id%,hInst&,cs#)
inc id%
Caso negativo handle&
Class$ = WinError$(%WinError)
MessageBox("Es trat folgender Fehler en:\n\n" + Class$,"F E H L E R !!!",4096)
EndIf
Disponer cs#
Volver handle&
ENDPROC
|
|
|
| |
|
|