摘要:
1 #include 2 #include "resource.h" 3 4 LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); 5 6 int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstace, PSTR szCmdLine, int iCmdShow) 7 { 8 static TCHAR szAppName[] = TEXT ("stick1"); 9 HWND hwnd; 10 MSG ... 阅读全文
摘要:
1 #include 2 #include "resource.h" 3 4 LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); 5 6 int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstace, PSTR szCmdLine, int iCmdShow) 7 { 8 static TCHAR szAppName[] = TEXT ("Stick1"); 9 HWND hwnd;10 MSG msg;11 ... 阅读全文
摘要:
1 #include 2 #include "resource.h" 3 4 LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); 5 6 int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstace, PSTR szCmdLine, int iCmdShow) 7 { 8 static TCHAR szAppName[] = TEXT ("Stick1"); 9 HWND hwnd; 10 MSG ... 阅读全文
摘要:
1 /* 双键的使用 */ 2 3 #include 4 5 6 LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); 7 8 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 9 PSTR szCmdLine, int iCmdShow) 10 { 11 static TCHAR szAppName[] = TEXT ("HelloWin"); 12 HWND ... 阅读全文
摘要:
1 #include 2 3 //#define WM_MYMSG (WM_USER +100) 4 5 LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM); 6 7 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 8 PSTR szCmdLine, int iCmdShow) 9 {10 static TCHAR szAppName[] = TEXT ("HelloWin");11 HWND ... 阅读全文
摘要:
1 #include 2 3 int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, 4 5 PSTR szCmdLine, int iCmdShow) 6 { 7 MessageBox(NULL, TEXT("HELLO WINDOWS98!"), TEXT("HelloMsg"), 0); 8 return 0; 9 } 阅读全文