i like to show some special graphic characters in a button, some as a hollow upped arrow defined in font of Wingdings with the code of 0f1h.

After create the font with function of CreateFont and WM_SETFONT to the button, i can use SetWindowText("0f1h") to set the button's text under Win98, and it's normally displayed. Otherwise, under windows 2000/xp, it gave me some characters just like the system turns characters to '?', the unknown ones. i tried append some null byte, 00h, to the ending of the string, or use the function SetWindowTextW, it has no effect.

how can i do?

Posted on 2005-07-06 21:33:57 by zara