#ifndef MAIN_HPP #define MAIN_HPP #include #include #include #include class Main { public: static HINSTANCE processInstance(HWND hWnd); static HINSTANCE processInstance(void); static OwnerDraw smhBitmap; static HINSTANCE smhInstance; static HINSTANCE smhPrevInstance; static int smnCmdShow; static BWindow *smlpStatusBar; static void hmemcpy(UHUGE *dest,UHUGE *src,unsigned long lenght); static void hmemset(UHUGE *dest,UCHAR ch,unsigned long length); static HGLOBAL upsideDown(WORD width,WORD height,UHUGE *srcPtr); static HGLOBAL rotateRight(UHUGE *srcPtr,WORD width,WORD height); static HGLOBAL rotateLeft(UHUGE *srcPtr,WORD width,WORD height); }; #define WM_REACTIVATE WM_USER+1 inline HINSTANCE Main::processInstance(void) { return smhInstance; } #if defined(__FLAT__) inline HINSTANCE Main::processInstance(HWND hWnd) { return (HINSTANCE)::GetWindowLong(hWnd,GWL_HINSTANCE); } #else inline HINSTANCE Main::processInstance(HWND hWnd) { return (HINSTANCE)::GetWindowWord(hWnd,GWW_HINSTANCE); } #endif #endif