From: <ped...@us...> - 2007-05-31 20:35:31
|
Revision: 923 http://svn.sourceforge.net/cegcc/?rev=923&view=rev Author: pedroalves Date: 2007-05-31 13:35:30 -0700 (Thu, 31 May 2007) Log Message: ----------- * include/commctrl.h (tagREBARBANDINFOA, tagREBARBANDINFOW) [_WIN32_WCE]: Hide cxHeader field. (CMDBAR_HELP, CMDBAR_OK): Define. (tagCOMMANDBANDSRESTOREINFO, COMMANDBANDSRESTOREINFO, (LPCOMMANDBANDSRESTOREINFO): Define. (CommandBands_AddAdornments, CommandBands_AddBands, CommandBands_Create, CommandBands_GetCommandBar, CommandBands_GetRestoreInformation, CommandBands_Show): Define. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/commctrl.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-05-31 20:24:51 UTC (rev 922) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-05-31 20:35:30 UTC (rev 923) @@ -1,3 +1,14 @@ +2007-05-31 Carsten S\xF8rensen <sur...@ri...> + + * include/commctrl.h (tagREBARBANDINFOA, tagREBARBANDINFOW) + [_WIN32_WCE]: Hide cxHeader field. + (CMDBAR_HELP, CMDBAR_OK): Define. + (tagCOMMANDBANDSRESTOREINFO, COMMANDBANDSRESTOREINFO, + (LPCOMMANDBANDSRESTOREINFO): Define. + (CommandBands_AddAdornments, CommandBands_AddBands, + CommandBands_Create, CommandBands_GetCommandBar, + CommandBands_GetRestoreInformation, CommandBands_Show): Define. + 2007-05-31 Pedro Alves <ped...@po...> * include/commctrl.h: Formatting fixes. Modified: trunk/cegcc/src/w32api/include/commctrl.h =================================================================== --- trunk/cegcc/src/w32api/include/commctrl.h 2007-05-31 20:24:51 UTC (rev 922) +++ trunk/cegcc/src/w32api/include/commctrl.h 2007-05-31 20:35:30 UTC (rev 923) @@ -2823,8 +2823,10 @@ UINT cyIntegral; UINT cxIdeal; LPARAM lParam; +#if !defined(_WIN32_WCE) UINT cxHeader; #endif +#endif } REBARBANDINFOA,*LPREBARBANDINFOA; typedef struct tagREBARBANDINFOW { UINT cbSize; @@ -2847,8 +2849,10 @@ UINT cyIntegral; UINT cxIdeal; LPARAM lParam; +#if !defined(_WIN32_WCE) UINT cxHeader; #endif +#endif } REBARBANDINFOW,*LPREBARBANDINFOW; typedef REBARBANDINFOA const *LPCREBARBANDINFOA; typedef REBARBANDINFOW const *LPCREBARBANDINFOW; @@ -3716,6 +3720,21 @@ #define RB_INSERTBAND RB_INSERTBANDA #define RB_SETBANDINFO RB_SETBANDINFOA #endif + +#if (_WIN32_WCE >= 0x200) + +#define CMDBAR_HELP 0x000B +#define CMDBAR_OK 0xF000 + +typedef struct tagCOMMANDBANDSRESTOREINFO { + UINT cbSize; + UINT wID; + UINT fStyle; + UINT cxRestored; + BOOL fMaximized; +} COMMANDBANDSRESTOREINFO, *LPCOMMANDBANDSRESTOREINFO; +#endif /* _WIN32_WCE >= 0x200 */ + #endif /* RC_INVOKED */ #ifdef _WIN32_WCE @@ -3737,6 +3756,19 @@ #endif /* _WIN32_WCE */ +#if (_WIN32_WCE >= 0x0200) + +COMMCTRLAPI BOOL WINAPI CommandBands_AddAdornments(HWND,HINSTANCE,DWORD,LPREBARBANDINFO); +COMMCTRLAPI BOOL WINAPI CommandBands_AddBands(HWND,HINSTANCE,UINT,LPREBARBANDINFO); +COMMCTRLAPI HWND WINAPI CommandBands_Create(HINSTANCE,HWND,UINT,DWORD,HIMAGELIST); +COMMCTRLAPI HWND WINAPI CommandBands_GetCommandBar(HWND,UINT); +COMMCTRLAPI BOOL WINAPI CommandBands_GetRestoreInformation(HWND,UINT,LPCOMMANDBANDSRESTOREINFO); +COMMCTRLAPI BOOL WINAPI CommandBands_Show(HWND,BOOL); + +#define CommandBands_Height(hwnd) ((UINT)SendMessage((hwnd),RB_GETBARHEIGHT,0,0)) + +#endif /* _WIN32_WCE >= 0x200 */ + #ifdef __cplusplus } #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |