X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2fce94e20c94073fda30327c7c835def4415361c..8397cab4dafee82a887785a80ab8f588a68d9f27:/include/wx/msw/wince/missing.h diff --git a/include/wx/msw/wince/missing.h b/include/wx/msw/wince/missing.h index 1ce4c9624a..33bfc6eab3 100644 --- a/include/wx/msw/wince/missing.h +++ b/include/wx/msw/wince/missing.h @@ -25,7 +25,7 @@ inline BOOL IsIconic( HWND WXUNUSED(hWnd) ) return FALSE; } -#ifdef WIN32_PLATFORM_PSPC +#ifdef __POCKETPC__ #define SM_CXCURSOR 13 #define SM_CYCURSOR 14 #endif @@ -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 @@ -126,5 +128,17 @@ extern "C" void * bsearch(const void *key, const void *base, size_t num, size_t size, int (wxCMPFUNC_CONV *cmp)(const void *, const void *)); +#define O_RDONLY 0x0000 /* open for reading only */ +#define O_WRONLY 0x0001 /* open for writing only */ +#define O_RDWR 0x0002 /* open for reading and writing */ +#define O_APPEND 0x0008 /* writes done at eof */ + +#define O_CREAT 0x0100 /* create and open file */ +#define O_TRUNC 0x0200 /* open and truncate */ +#define O_EXCL 0x0400 /* open only if file doesn't already exist */ + +#define O_TEXT 0x4000 /* file mode is text (translated) */ +#define O_BINARY 0x8000 /* file mode is binary (untranslated) */ + #endif // _WX_CE_MISSING_H_