00001
00002
00003
00004
00005
00006 #define dim(x) (sizeof(x) / sizeof(x[0]))
00007
00008
00009
00010
00011 struct decodeUINT {
00012 UINT Code;
00013
00014 LRESULT (*Fxn)(HWND, UINT, WPARAM, LPARAM);
00015 };
00016 struct decodeCMD {
00017 UINT Code;
00018 LRESULT (*Fxn)(HWND, WORD, HWND, WORD);
00019 };
00020
00021
00022
00023 #define IDC_CMDBAR 1 // Command bar ID
00024
00025
00026
00027
00028 int InitApp (HINSTANCE);
00029 HWND InitInstance (HINSTANCE, LPWSTR, int);
00030 int TermInstance (HINSTANCE, int);
00031
00032
00033 LRESULT CALLBACK MainWndProc (HWND, UINT, WPARAM, LPARAM);
00034
00035
00036 LRESULT DoCreateMain (HWND, UINT, WPARAM, LPARAM);
00037 LRESULT DoPaintMain (HWND, UINT, WPARAM, LPARAM);
00038 LRESULT DoHibernateMain (HWND, UINT, WPARAM, LPARAM);
00039 LRESULT DoActivateMain (HWND, UINT, WPARAM, LPARAM);
00040 LRESULT DoDestroyMain (HWND, UINT, WPARAM, LPARAM);
00041
00042
00043 int RecordAudioThread (PVOID pARG);