From 6ea56da87a6917dcadf7e28eeb1a150f6ea56f6f Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Tue, 18 Apr 2006 09:48:05 +0000 Subject: [PATCH] 2006-04-18 Eric House PocketPC support. * include/aygshell.h: New file [_WIN32_WCE]. Declare most common functions for using aygshell on PocketPC: SHCreateMenuBar, SHFindMenuBar, SHCreateNewItem, SHFullScreen, SHSipInfo, SHHandleWMActivate, SHHandleWMSettingChange * include/commctrl.h [_WIN32_WCE] Add function prototypes for command bar API on PocketPC: CommandBar_Create, CommandBar_Show, CommandBar_AddBitmap, CommandBar_InsertComboBox, CommandBar_InsertMenubar, CommandBar_InsertMenubarEx, CommandBar_DrawMenuBar, CommandBar_GetMenu, CommandBar_AddAdornments, CommandBar_Height, CommandBar_InsertButton, CommandBar_Destroy. * include/winbase.h [_WIN32_WCE] (WIN32_FIND_DATA{A|W}): Remove fields not present on PocketPC. (GetCurrentThreadId): Conditionally declare as extern function without dllimport attribute on PocketPC. (ResetEvent): Likwise. (SetEvent): Likewise. * include/wingdi.h [_WIN32_WCE] (GetTextExtentPoint32{A|W}): Conditionally declare as extern function without dllimport attribute on PocketPC. * winuser.h [_WIN32_WCE] (DialogBoxParam{A|W}): Conditionally declare as extern function without dllimport attribute on PocketPC. --- winsup/w32api/include/aygshell.h | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 winsup/w32api/include/aygshell.h diff --git a/winsup/w32api/include/aygshell.h b/winsup/w32api/include/aygshell.h new file mode 100755 index 000000000..624ad2961 --- /dev/null +++ b/winsup/w32api/include/aygshell.h @@ -0,0 +1,49 @@ +#ifndef _AYGSHELL_H +#define _AYGSHELL_H +#if __GNUC__ >=3 +#pragma GCC system_header +#endif + +#if _WIN32_WCE >= 400 + +#include /* shellapi needs this */ +#include +#include /* for WINSHELLAPI */ + +typedef struct tagSHMENUBARINFO { + DWORD cbSize; + HWND hwndParent; + DWORD dwFlags; + UINT nToolBarId; + HINSTANCE hInstRes; + int nBmpId; + int cBmpImages; + HWND hwndMB; + COLORREF clrBk; +} SHMENUBARINFO, *PSHMENUBARINFO; + +typedef struct tagSHACTIVATEINFO { + DWORD cbSize; + HWND hwndLastFocus; + UINT fSipUp :1; + UINT fSipOnDeactivation :1; + UINT fActive :1; + UINT fReserved :29; +} SHACTIVATEINFO, *PSHACTIVATEINFO; + +WINSHELLAPI BOOL WINAPI SHCreateMenuBar(SHMENUBARINFO*); +WINSHELLAPI HWND WINAPI SHFindMenuBar(HWND); +WINSHELLAPI HRESULT WINAPI SHCreateNewItem(HWND,REFCLSID); +WINSHELLAPI BOOL WINAPI SHFullScreen(HWND,DWORD); +WINSHELLAPI BOOL WINAPI SHSipInfo(UINT,UINT,PVOID,UINT); +/* next exported by ordinal only: @84 */ +WINSHELLAPI BOOL WINAPI SHHandleWMActivate(HWND,WPARAM,LPARAM,SHACTIVATEINFO*,DWORD); +/* next exported by ordinal only: @83 */ +WINSHELLAPI BOOL WINAPI SHHandleWMSettingChange(HWND,WPARAM,LPARAM,SHACTIVATEINFO*); + +/* The following are not in device ROMs. */ +extern BOOL SHInvokeContextMenuCommand(HWND,UINT,HANDLE); + +#endif /* _WIN32_WCE >= 400 */ + +#endif