LRESULT CALLBACK WindowProc( HWND hwnd,//发送方的窗口句柄 UINT msg,//消息id,即消息的种类 WPARAM wparam,//详细信息 LPARAM lparam);//详细信息
hdc = BeginPaint(hWnd, &ps); // TODO: 在此添加任意绘图代码... EndPaint(hWnd, &ps);
typedef struct tagPAINTSTRUCT {
HDC hdc;
BOOL fErase;
RECT rcPaint;
BOOL fRestore;
BOOL fIncUpdate;
BYTE rgbReserved[32];
} PAINTSTRUCT
原文地址:http://blog.csdn.net/luo_xianming/article/details/40452981