How to get text of special symbol font?
-
Hi to all. In combobox control, I modified the context font,e.g. AMDGT_IV25,and display is ok.Now I need to get the item text, used the GetDlgItemText function,but the result was unrecognizable code. :(( Thanks!
-
Hi to all. In combobox control, I modified the context font,e.g. AMDGT_IV25,and display is ok.Now I need to get the item text, used the GetDlgItemText function,but the result was unrecognizable code. :(( Thanks!
-
You do not use
GetDlgItemText()
to get aComboBox
item. Please show the code you are using, and what actual results you see.Veni, vidi, abiit domum
Thanks for your answer first:in CCombobox::DrawItem(LPDRAWITEMSTRUCT pDIStruct) function modified the dc font and dc.DrawText(str,itemRect,DT_LEFT|DT_VCENTER|DT_SINGLELINE);//显示文本 second: in mfc interface, display the special symbol.It's ok.e.g. input a "t",and display the special symbol. third: how to get the special symbol string? E.g. is the "t" string,but other string. Sorry!
-
Thanks for your answer first:in CCombobox::DrawItem(LPDRAWITEMSTRUCT pDIStruct) function modified the dc font and dc.DrawText(str,itemRect,DT_LEFT|DT_VCENTER|DT_SINGLELINE);//显示文本 second: in mfc interface, display the special symbol.It's ok.e.g. input a "t",and display the special symbol. third: how to get the special symbol string? E.g. is the "t" string,but other string. Sorry!