X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/524b59ff2e7ff9e6f4e3eb4ce856d9497ce650b8..23bf4018750c8e382a601a45740dec53f04fb36c:/include/wx/msw/wince/missing.h diff --git a/include/wx/msw/wince/missing.h b/include/wx/msw/wince/missing.h index 6bb4acd51f..99d6ce7583 100644 --- a/include/wx/msw/wince/missing.h +++ b/include/wx/msw/wince/missing.h @@ -39,9 +39,11 @@ inline BOOL IsIconic( HWND WXUNUSED(hWnd) ) #define TBSTYLE_NO_DROPDOWN_ARROW 0x0080 #endif -#if _WIN32_WCE >= 400 +#if _WIN32_WCE >= 400 && !defined(SHCMBM_GETMENU) // aygshell.h missing from eVC 4 for some reason +// NB not missing from Pocket PC 2003, hence the test for SHCMBM_GETMENU + #define SHCMBM_GETMENU (WM_USER + 402) #define SHCMBM_SETSUBMENU (WM_USER + 400) // wparam == id of button, lParam == hmenu, return is old hmenu #define SHCMBM_GETSUBMENU (WM_USER + 401) // lParam == ID @@ -92,6 +94,21 @@ extern "C" #define HGDI_ERROR ((HANDLE)(0xFFFFFFFFL)) #endif +// some windows styles don't exist in CE SDK, replace them with closest +// equivalents +#ifndef WS_THICKFRAME + #define WS_THICKFRAME WS_BORDER +#endif + +#ifndef WS_MINIMIZE + #define WS_MINIMIZE 0 +#endif + +#ifndef WS_MAXIMIZE + #define WS_MAXIMIZE 0 +#endif + + // global memory functions don't exist under CE (good riddance, of course, but // the existing code still uses them in some places, so make it compile) //