Changeset 741 for trunk/src/user32/new/winmenu.cpp
- Timestamp:
- Aug 30, 1999, 2:00:12 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/winmenu.cpp
r342 r741 1 /* $Id: winmenu.cpp,v 1. 1 1999-07-20 07:42:36sandervl Exp $ */1 /* $Id: winmenu.cpp,v 1.2 1999-08-30 11:59:54 sandervl Exp $ */ 2 2 3 3 /* … … 18 18 #include <os2win.h> 19 19 #include <stdlib.h> 20 #include <win32w nd.h>20 #include <win32wbase.h> 21 21 22 22 //****************************************************************************** … … 51 51 rc = O32_LoadMenuIndirect(arg1); 52 52 if(astring) 53 53 FreeAsciiString(astring); 54 54 return(rc); 55 55 } … … 62 62 dprintf(("OS2DestroyMenu\n")); 63 63 if(HIWORD(hmenu) == 0) { 64 65 66 } 64 SetLastError(ERROR_INVALID_PARAMETER); 65 return FALSE; 66 } 67 67 winres = (Win32Resource *)hmenu; 68 68 delete winres; … … 83 83 HMENU WIN32API GetMenu( HWND hwnd) 84 84 { 85 Win32 Window *window;86 87 window = Win32 Window::GetWindowFromHandle(hwnd);85 Win32BaseWindow *window; 86 87 window = Win32BaseWindow::GetWindowFromHandle(hwnd); 88 88 if(!window) { 89 90 89 dprintf(("GetMenu, window %x not found", hwnd)); 90 return 0; 91 91 } 92 92 dprintf(("GetMenu %x", hwnd)); … … 97 97 BOOL WIN32API SetMenu( HWND hwnd, HMENU hmenu) 98 98 { 99 Win32 Window *window;100 101 window = Win32 Window::GetWindowFromHandle(hwnd);99 Win32BaseWindow *window; 100 101 window = Win32BaseWindow::GetWindowFromHandle(hwnd); 102 102 if(!window) { 103 104 103 dprintf(("GetMenu, window %x not found", hwnd)); 104 return 0; 105 105 } 106 106 dprintf(("SetMenu %x %x\n", hwnd, hmenu));
Note:
See TracChangeset
for help on using the changeset viewer.