yes, i'm new to DllCall and Struct

.
Thanks for your tips, i made a small change and luckily ,it worked
Code:
Control_GetFont( hwnd ,ByRef Name,ByRef Style,ByRef Size) { ; www.autohotkey.com/forum/viewtopic.php?p=465438#465438
; Mod by nothing
SendMessage 0x31, 0, 0, , ahk_id %hwnd% ; WM_GETFONT
IfEqual,ErrorLevel,FAIL, Return
hFont := Errorlevel, VarSetCapacity( LF, szLF := 60*( A_IsUnicode ? 2:1 ) ), DllCall("GetObject", UInt,hFont, Int,szLF, UInt,&LF ) , hDC := DllCall( "GetDC", UInt,hwnd ), DPI := DllCall( "GetDeviceCaps", UInt,hDC, Int,90 ) , DllCall( "ReleaseDC", Int,0, UInt,hDC )
Name := DllCall( "MulDiv",Int,&LF+28, Int,1,Int,1, Str )
Style := Trim(((W:=NumGet(LF,16,"Int"))=700 ? " Bold" : W=400 ? "" : " w" W ) . (NumGet(LF,20,"UChar") ? " Italic" : "") . (NumGet(LF,21,"UChar") ? " Underline" : "") . (NumGet(LF,22,"UChar") ? " StrikeOut" : ""))
Size := Round( ( -NumGet( LF,0,"Int" )*72 ) / DPI )
}
TYVM.
_________________
nothing is impossible with ahk (_L).
Excuse my bad English.
Now, focus on
X-GUI Creator - an easy,simple,fast way to design GUI.