Changeset 961 for trunk/src/user32/winmenu.cpp
- Timestamp:
- Sep 16, 1999, 5:14:59 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/winmenu.cpp
r949 r961 1 /* $Id: winmenu.cpp,v 1. 1 1999-09-15 23:19:03 sandervlExp $ */1 /* $Id: winmenu.cpp,v 1.2 1999-09-16 15:14:18 phaller Exp $ */ 2 2 3 3 /* … … 17 17 */ 18 18 #include <os2win.h> 19 #include <odin.h> 20 #include <odinwrap.h> 19 21 #include <stdlib.h> 20 22 #include <string.h> … … 23 25 #include <winresmenu.h> 24 26 27 28 ODINDEBUGCHANNEL(USER32) 29 25 30 //****************************************************************************** 26 31 //****************************************************************************** … … 231 236 //****************************************************************************** 232 237 //****************************************************************************** 233 HMENU WIN32API GetSystemMenu( HWND hMenu, BOOL arg2) 234 { 235 Win32MenuRes *menu = (Win32MenuRes *)hMenu; 236 237 dprintf(("USER32: GetSystemMenu\n")); 238 if(menu == NULL || menu->getOS2Handle() == 0) 239 { 240 SetLastError(ERROR_INVALID_PARAMETER); 241 return 0; 242 } 243 return O32_GetSystemMenu(menu->getOS2Handle(), arg2); 238 ODINFUNCTION2(HMENU,GetSystemMenu,HWND,hSystemWindow, 239 BOOL,bRevert) 240 { 241 dprintf(("USER32: GetSystemMenu not implemented correctly.")); 242 //Win32BaseWindow *window; 243 // 244 //window = Win32BaseWindow::GetWindowFromHandle(hSystemWindow); 245 //if(!window) 246 //{ 247 // dprintf(("GetSystemMenu, window %x not found", hSystemWindow)); 248 // return 0; 249 //} 250 // 251 //dprintf(("GetSystemMenu %x", hSystemWindow)); 252 //return window->GetSystemMenu(); 253 return O32_GetSystemMenu(hSystemWindow, bRevert); 244 254 } 245 255 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.