X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2fce94e20c94073fda30327c7c835def4415361c..8e62855a3fecf13954e850d64df98033ef48762b:/include/wx/msw/wince/missing.h?ds=sidebyside diff --git a/include/wx/msw/wince/missing.h b/include/wx/msw/wince/missing.h index 1ce4c9624a..4e50b0d87d 100644 --- a/include/wx/msw/wince/missing.h +++ b/include/wx/msw/wince/missing.h @@ -4,7 +4,7 @@ // Author: Marco Cavallini // Modified by: // Created: 16/11/2002 -// RCS-ID: +// RCS-ID: $Id$ // Copyright: (c) KOAN SAS ( www.koansoftware.com ) // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -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,49 +39,30 @@ inline BOOL IsIconic( HWND WXUNUSED(hWnd) ) #define TBSTYLE_NO_DROPDOWN_ARROW 0x0080 #endif -#if _WIN32_WCE >= 400 - -// aygshell.h missing from eVC 4 for some reason +#ifndef SHCMBM_GETMENU #define SHCMBM_GETMENU (WM_USER + 402) +#endif + +#ifndef SHCMBM_SETSUBMENU #define SHCMBM_SETSUBMENU (WM_USER + 400) // wparam == id of button, lParam == hmenu, return is old hmenu +#endif + +#ifndef SHCMBM_GETSUBMENU #define SHCMBM_GETSUBMENU (WM_USER + 401) // lParam == ID -#define SHCMBM_GETMENU (WM_USER + 402) // get the owning hmenu (as specified in the load resource) - -#define SHIDIF_DONEBUTTON 0x0001 -#define SHIDIF_SIZEDLG 0x0002 -#define SHIDIF_SIZEDLGFULLSCREEN 0x0004 -#define SHIDIF_SIPDOWN 0x0008 -#define SHIDIF_FULLSCREENNOMENUBAR 0x0010 -#define SHIDIF_EMPTYMENU 0x0020 - -#define SHFS_SHOWTASKBAR 0x0001 -#define SHFS_HIDETASKBAR 0x0002 -#define SHFS_SHOWSIPBUTTON 0x0004 -#define SHFS_HIDESIPBUTTON 0x0008 -#define SHFS_SHOWSTARTICON 0x0010 -#define SHFS_HIDESTARTICON 0x0020 - -typedef struct tagSHMENUBARINFO -{ - DWORD cbSize; // IN - Indicates which members of struct are valid - HWND hwndParent; // IN - DWORD dwFlags; // IN - Some features we want - UINT nToolBarId; // IN - Which toolbar are we using - HINSTANCE hInstRes; // IN - Instance that owns the resources - int nBmpId; - int cBmpImages; // IN - Count of bitmap images - HWND hwndMB; // OUT - COLORREF clrBk; // IN - background color of the menu bar (excluding sip) -} SHMENUBARINFO, *PSHMENUBARINFO; - -extern "C" -{ - BOOL SHFullScreen(HWND hwndRequester, DWORD dwState); +#endif - WINSHELLAPI BOOL SHCreateMenuBar(SHMENUBARINFO *pmbi); -} +#ifndef LVS_EX_FULLROWSELECT + #define LVS_EX_FULLROWSELECT 0x00000020 +#endif + +#ifndef TVS_FULLROWSELECT + #define TVS_FULLROWSELECT 0x1000 +#endif -#endif // _WIN32_WCE >= 400 +#ifndef TVM_SETBKCOLOR + #define TVM_SETBKCOLOR (TV_FIRST + 29) + #define TVM_SETTEXTCOLOR (TV_FIRST + 30) +#endif // Used in msgdlg.cpp, evtloop.cpp #ifndef MB_TASKMODAL @@ -126,5 +107,34 @@ 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) */ + +#ifndef SS_SUNKEN + #define SS_SUNKEN 0x00001000L +#endif + +// unsupported flags for WINDOWPOS structure +#ifndef SWP_NOCOPYBITS + #define SWP_NOCOPYBITS 0 +#endif + +#ifndef SWP_NOOWNERZORDER + #define SWP_NOOWNERZORDER 0 +#endif + +#ifndef SWP_NOSENDCHANGING + #define SWP_NOSENDCHANGING 0 +#endif + #endif // _WX_CE_MISSING_H_