纯新手.求windows程序设计大牛解答一下.不胜感激
硬扳纲 2014-08-20 07:13:55 LRESULT CALLBACK WinSunProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
HDC hdc;
PAINTSTRUCT ps;
switch (uMsg)
{
case WM_PAINT:
hdc=BeginPaint(hwnd,&ps);
TextOut(hdc,0,0,TEXT("中国"),TEXT("你好"));
EndPaint(hwnd,&ps);
break;
}
求问大神: 在hdc=BeginPaint(hwnd,&ps)中, 结构体PAINTSTRUCT ps 并没有赋值. BeginPaint是凭什么返回数据给hdc的?