2006-04-18 Eric House <ehouse@eehouse.org>
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.
This commit is contained in:
@@ -15,6 +15,15 @@ extern "C" {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef COMMCTRLAPI
|
||||
#ifdef __W32API_USE_DLLIMPORT__
|
||||
#define COMMCTRLAPI DECLSPEC_IMPORT
|
||||
#else
|
||||
#define COMMCTRLAPI
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef SNDMSG
|
||||
#ifdef __cplusplus
|
||||
#define SNDMSG ::SendMessage
|
||||
@@ -3705,6 +3714,28 @@ typedef REBARBANDINFOA REBARBANDINFO,*LPREBARBANDINFO;
|
||||
#endif
|
||||
#endif /* RC_INVOKED */
|
||||
|
||||
#ifdef _WIN32_WCE /* these are PPC only */
|
||||
|
||||
COMMCTRLAPI HWND WINAPI CommandBar_Create(HINSTANCE, HWND, int);
|
||||
COMMCTRLAPI BOOL WINAPI CommandBar_Show(HWND, BOOL);
|
||||
COMMCTRLAPI int WINAPI CommandBar_AddBitmap(HWND, HINSTANCE, int, int, int, int);
|
||||
COMMCTRLAPI HWND WINAPI CommandBar_InsertComboBox(HWND, HINSTANCE, int, UINT, WORD, WORD);
|
||||
COMMCTRLAPI BOOL WINAPI CommandBar_InsertMenubar(HWND, HINSTANCE, WORD, WORD );
|
||||
COMMCTRLAPI BOOL WINAPI CommandBar_InsertMenubarEx(HWND, HINSTANCE, LPTSTR, WORD);
|
||||
COMMCTRLAPI BOOL WINAPI CommandBar_DrawMenuBar(HWND, WORD);
|
||||
COMMCTRLAPI HMENU WINAPI CommandBar_GetMenu(HWND, WORD);
|
||||
COMMCTRLAPI BOOL WINAPI CommandBar_AddAdornments(HWND, DWORD, DWORD);
|
||||
COMMCTRLAPI int WINAPI CommandBar_Height(HWND hwndCB);
|
||||
|
||||
/* These two are not in the DLL */
|
||||
#define CommandBar_InsertButton(hwnd,i,lptbbutton) \
|
||||
SendMessage((hwnd),TB_INSERTBUTTON,(i),(lptbbutton))
|
||||
#define CommandBar_Destroy(hwnd) \
|
||||
DestroyWindow(hwnd)
|
||||
|
||||
|
||||
#endif /* _WIN32_WCE */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user