Hi All,
I changed windows mobile AKU 23121 today and tested my software.
But I found a bug.
this my code :
case WM_PAINT:
{
hdc = BeginPaint(hWnd, &ps);
HFONT hFontNew, hFontOld;
LOGFONT pFont;
TCHAR szText[100];
RECT rc;
memset(&pFont, 0, sizeof(LOGFONT));
GetObject(GetStockObject(SYSTEM_FONT),sizeof(LOGFONT),&pFont);
pFont.lfHeight = 21;
pFont.lfWeight = FW_HEAVY;
pFont.lfEscapement = 2700;
pFont.lfOrientation = 2700;
_tcscpy(pFont.lfFaceName, L"Tahoma");
hFontNew = CreateFontIndirect(&pFont);
hSetRect(&rc,105, 120, 150, 320);
SetBkMode(hdc, TRANSPARENT);
SetBkColor(hdc,RGB(0, 255,255));
SetTextColor(hdc,RGB(0, 0, 0 ));
SetTextAlign(hdc, TA_CENTER | TA_BOTTOM);
Rectangle(hdc, rc.left, rc.top, rc.right, rc.bottom);
int ret = ExtTextOut(hdc, rc.left, (rc.top+rc.bottom)/2, ETO_CLIPPED, &rc, TEXT("Font 字体FONT字体"),
wcslen(TEXT("Font 字体FONT字体")), NULL);FontOld = (HFONT) SelectObject(hdc, hFontNew);
I want Display "Font 字体FONT字体", but it is "FontFONT" ,
the more ghost is : If I don't Rotate the font , it can display normal. :omg:
please help me ~~~~~