34 // Perform application initialization: 35 if (!InitInstance (hInstance, nCmdShow)) 36 { 37 return FALSE; 38 } 39 40 hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_TESTA); 41 42 // Main message loop: 43 while (GetMessage(&msg, NULL, 0, 0)) 44 { 45 if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) 46 { 47 TranslateMessage(&msg); 48 DispatchMessage(&msg); 49 } 50 } 51 52 return msg.wParam; 53 } 54 55 56 57 // 58 // FUNCTION: MyRegisterClass() 59 // 60 // PURPOSE: Registers the window class. 61 // 62 // COMMENTS: 63 // |
正在阅读:《编程高手箴言》读后感(3)《编程高手箴言》读后感(3)
2004-04-07 10:02
出处:CSDN
责任编辑:sdq
键盘也能翻页,试试“← →”键