最近用程序用到了Vista的Aero Glass玻璃效果、里面有个函数BeginBufferedAnimation是实现Vista控件的淡入淡出效果的、现在按钮成功在窗口上显示出来了、问题是怎么在按钮上写字?用DrawThemeText和DrawThemeYextEx函数都无法写字、有什么解决办法么、
部分代码:HTHEME htm = OpenThemeData(hWnd, L"button");

int ifr,ito;
int istatus = SendMessage(hWnd, BM_GETSTATE, 0, 0L);
TCHAR ch[50];
wsprintf(ch, L"%d", istatus);
SetWindowText(GetParent(hWnd), ch);
istatus = GetFormatStatus(istatus, &ifr, &ito);
GetThemeTransitionDuration(htm, BP_PUSHBUTTON, ifr, ito, TMT_TRANSITIONDURATIONS, &ap.dwDuration); hamBuff = ::BeginBufferedAnimation(hWnd, hdc, &re, BPBF_TOPDOWNDIB, 0, &ap, &hdcPaintFirst, &hdcPaintLast);
//BufferedPaintSetAlpha(hamBuff, &re, 0);
GetWindowText(hWnd, ch, 50); //PatBlt(hdc, re.left, re.top, re.right - re.left, re.bottom - re.top, BLACKNESS); DTTOPTS dttopts = {0};
DTTOPTS DttOpts = {sizeof(DTTOPTS)};
DttOpts.dwFlags = DTT_COMPOSITED | DTT_GLOWSIZE;

DrawThemeBackground(htm, hdcPaintFirst, BP_PUSHBUTTON, ifr, &re, NULL);
DrawThemeBackground(htm, hdcPaintLast, BP_PUSHBUTTON, ito, &re, NULL); HFONT hFont = (HFONT)::SendMessage(hWnd, WM_GETFONT, 0, 0);
HFONT hFontOld = (HFONT)SelectObject(hdcPaintFirst, hFont);
DrawThemeTextEx(htm, hdcPaintFirst, BP_PUSHBUTTON, PBS_NORMAL, ch, -1, DT_SINGLELINE | DT_VCENTER | DT_CENTER, &re, &DttOpts);
SelectObject(hdcPaintFirst, hFontOld); hFontOld = (HFONT)SelectObject(hdcPaintLast, hFont);
DrawThemeTextEx(htm, hdcPaintLast, BP_PUSHBUTTON, PBS_NORMAL, ch, -1, DT_SINGLELINE | DT_VCENTER | DT_CENTER, &re, &DttOpts);
SelectObject(hdcPaintLast, hFontOld);