1 #pragma once 2 3 #include <windows.h> 4 #include <commctrl.h> 5 6 /* Global instance handle */ 7 extern HINSTANCE g_hInstance; 8 9 /* Window procedure for our main window */ 10 LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); 11 12 /* Register a class for our main window */ 13 BOOL RegisterMainWindowClass(void); 14 15 /* Create an instance of our main window */ 16 HWND CreateMainWindow(void); 17 18 /* Dialog procedure for our "about" dialog */ 19 INT_PTR CALLBACK AboutDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); 20 21 /* Show our "about" dialog */ 22 void ShowAboutDialog(HWND owner); 23 24 25 #define IDI_APPICON 101 26 #define IDR_MAINMENU 102 27 #define IDR_ACCELERATOR 103 28 #define IDD_ABOUTDIALOG 104 29 #define ID_FILE_EXIT 40001 30 #define ID_HELP_ABOUT 40002 31 32 #ifndef IDC_STATIC 33 #define IDC_STATIC -1 34 #endif 35