hi
first sorry for my English
i try to get a word under mouse
now my problem how to get the font of button
i try to use
IntPtr dc= GetDC(button1.Handle);
IntPtr last_font = SelectObject(dc, Font.ToHfont());
Font fon = Font.FromHdc(dc);
but it gave me the font of the form
and some time gave me error
Only TrueType fonts are supported. This is not a TrueType font
after some trying with ch0kee answer
i get new result with this
StringBuilder Buff = new StringBuilder(1024);
IntPtr fxx = GetTextFace(dc, 1024, Buff);
but Buff always return "system"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…