Hi all, While porting a desktop app to the Pocket PC, I stumbled on GetSystemMenu. Looking at: http://msdn2.microsoft.com/en-us/library/aa453169.aspx
I implemented GetSystemMenu as: #define GetSystemMenu(hwnd, revert) ((revert)?NULL:(HMENU)(hwnd))And it does work as advertised, so I am positive it is correct, but I'm not 100% sure.
If you have anything to add, please speak up. Cheers, Pedro Alves 2006-11-12 Pedro Alves <[EMAIL PROTECTED]> * include/winuser.h (GetSystemMenu): Implement as macro.
Index: winuser.h =================================================================== --- winuser.h (revision 803) +++ winuser.h (working copy) @@ -3675,7 +3675,11 @@ WINUSERAPI DWORD WINAPI GetSysColor(int); WINUSERAPI HBRUSH WINAPI GetSysColorBrush(int); #define GetSysModalWindow() (NULL) +#ifndef _WIN32_WCE WINUSERAPI HMENU WINAPI GetSystemMenu(HWND,BOOL); +#else +# define GetSystemMenu(hwnd, revert) ((revert)?NULL:(HMENU)(hwnd)) +#endif WINUSERAPI int WINAPI GetSystemMetrics(int); WINUSERAPI DWORD WINAPI GetTabbedTextExtentA(HDC,LPCSTR,int,int,LPINT); WINUSERAPI DWORD WINAPI GetTabbedTextExtentW(HDC,LPCWSTR,int,int,LPINT);
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel