C++windows 中的DrawText输不出内容,急求,万分感谢
caseWM_PAINT:HDChDC;PAINTSTRUCTPaintSt;RECTaRect;hDC=BeginPaint(hWnd,&PaintSt);GetCli...
case WM_PAINT:
HDC hDC;
PAINTSTRUCT PaintSt;
RECT aRect;
hDC=BeginPaint(hWnd, &PaintSt);
GetClientRect(hWnd, &aRect);
SetBkMode(hDC,TRANSPARENT);
DrawText(
hDC,
L"But, soft! What light through?",
-1,
&aRect,
DT_LEFT
);
EndPaint(hWnd, &PaintSt);
break;
case WM_DESTROY: 展开
HDC hDC;
PAINTSTRUCT PaintSt;
RECT aRect;
hDC=BeginPaint(hWnd, &PaintSt);
GetClientRect(hWnd, &aRect);
SetBkMode(hDC,TRANSPARENT);
DrawText(
hDC,
L"But, soft! What light through?",
-1,
&aRect,
DT_LEFT
);
EndPaint(hWnd, &PaintSt);
break;
case WM_DESTROY: 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励20(财富值+成长值)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询