diff options
Diffstat (limited to 'winsup/w32api/include/commctrl.h')
-rw-r--r-- | winsup/w32api/include/commctrl.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/winsup/w32api/include/commctrl.h b/winsup/w32api/include/commctrl.h index 46368e010..e5bc46192 100644 --- a/winsup/w32api/include/commctrl.h +++ b/winsup/w32api/include/commctrl.h @@ -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 |