X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/676d655065f5736d20034e124a9381a9cac8000b..2d4957f2401a8814f90cda21ef945d99bc74596e:/include/wx/msw/wince/missing.h diff --git a/include/wx/msw/wince/missing.h b/include/wx/msw/wince/missing.h index 7c4ca560d0..e0b2286e35 100644 --- a/include/wx/msw/wince/missing.h +++ b/include/wx/msw/wince/missing.h @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: wince/missing.h -// Purpose: Missing things in WinCE 3.0 +// Purpose: Missing things in WinCE // Author: Marco Cavallini // Modified by: // Created: 16/11/2002 @@ -12,6 +12,9 @@ #ifndef _WX_CE_MISSING_H_ #define _WX_CE_MISSING_H_ +#include "wx/msw/private.h" +#include "shellapi.h" + inline BOOL IsIconic( HWND hWnd ) { // Probably not right... @@ -27,6 +30,63 @@ inline BOOL IsIconic( HWND hWnd ) #define SM_CYCURSOR 14 #endif +// Missing from eVC 4 for some reason +#ifndef I_IMAGENONE +#define I_IMAGENONE (-2) +#endif + +#ifndef TBSTYLE_NO_DROPDOWN_ARROW +#define TBSTYLE_NO_DROPDOWN_ARROW 0x0080 +#endif + +#if _WIN32_WCE >= 400 +// aygshell.h missing from eVC 4 for some reason +#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 +#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; + +#ifdef __cplusplus +extern "C" { +#endif + +BOOL SHFullScreen(HWND hwndRequester, DWORD dwState); + +WINSHELLAPI BOOL SHCreateMenuBar(SHMENUBARINFO *pmbi); + +#ifdef __cplusplus +} +#endif + +#endif + /* Most of these are in MSVC++6.0 see also