¡¾Àý4-5¡¿»æÍ¼ÓëˢС£Öƶ©Ò»ÖÖÖØÐ»æÖÆÍ¼ÐεÄˢз½Ê½£¬½«Í¼ÐλæÖÆÄ£¿é·ÅÔÚÏûÏ¢WM_PAINTµÄ´¦Àí¹ý³ÌÖУ¬µ±´°¿ÚÐèҪˢÐÂʱ£¬Í¨Öª´°¿Úº¯ÊýÖØÐ»æÖÆÍ¼ÐÎÒÔÍê³Éˢй¤×÷¡£±¾ÀýÒªÇóÏÈʹÓû±ÊºÍ»Ë¢»æÖÆÒ»¸ö¾ØÐΣ¬È»ºóʹÓúìÉ«Íø¸ñ»æÖÆÒ»¸öÍÖÔ²£¬ÔÙʹÓÃÂÌÉ«µã»®Ïß»æÖÆÍÖÔ²µÄÖáÏß¡£
#include
LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,
LPSTR lpszCmdLine,int nCmdShow)
{HWND hwnd;MSG Msg;WNDCLASS wndclass;char lpszClassName[] = \»ù±¾»æÍ¼\char lpszTitle[]= \wndclass.style = 0;¡¡//ÌîдÊôÐÔ
wndclass.lpszClassName = lpszClassName ;
if(!RegisterClass(&wndclass))
{ MessageBeep(0); return FALSE; }
hwnd = CreateWindow(¡,¡¡¡,¡);ShowWindow(hwnd, nCmdShow) ;UpdateWindow(hwnd);while( GetMessage(&Msg, NULL, 0, 0))
{TranslateMessage(&Msg); DispatchMessage(&Msg);}
return Msg.wParam;}