Changeset 9072 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Aug 21, 2002, 2:32:41 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r8853 r9072 1 /* $Id: oslibwin.cpp,v 1.12 2 2002-07-11 18:14:20 achimhaExp $ */1 /* $Id: oslibwin.cpp,v 1.123 2002-08-21 12:32:40 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 159 159 minmaxheight = WinQuerySysValue(HWND_DESKTOP, SV_CYMINMAXBUTTON); 160 160 } 161 161 162 162 if(fOS2Look == OS2_APPEARANCE_SYSMENU) { 163 163 hwndControl = WinWindowFromID(hwndFrame, FID_SYSMENU); … … 280 280 //****************************************************************************** 281 281 //****************************************************************************** 282 HWND OSLibWinControlWindow(HWND hwndWindow, INT controlID, HWND controlHWND) 283 { 284 HWND hwnd = NULL, hwndParent = NULL; 285 286 if (controlHWND) 287 { 288 WinSetParent(controlHWND, hwndWindow, TRUE); 289 return NULL; // this is done to minimize assignments 290 } 291 else 292 { 293 hwnd = WinWindowFromID(hwndWindow, controlID); 294 if (hwnd) 295 { 296 WinSetParent(hwnd, HWND_OBJECT, TRUE); 297 return hwnd; 298 } 299 } 300 return NULL; 301 } 302 //****************************************************************************** 303 //****************************************************************************** 282 304 HWND OSLibWinWindowFromID(HWND hwndParent,ULONG id) 283 305 { … … 286 308 //****************************************************************************** 287 309 //****************************************************************************** 310 LONG OSLibWinGetPhysKeyState(LONG scan) 311 { 312 return WinGetPhysKeyState(HWND_DESKTOP,scan); 313 } 314 //****************************************************************************** 315 //****************************************************************************** 288 316 BOOL OSLibWinSetFocus(HWND hwndDeskTop,HWND hwndNewFocus, BOOL activate) 289 317 { … … 314 342 BOOL OSLibWinSetSysValue(LONG iSysValue, ULONG val) 315 343 { 316 return Win QuerySysValue(iSysValue, val);344 return WinSetSysValue(HWND_DESKTOP, iSysValue, val); 317 345 } 318 346 //****************************************************************************** … … 553 581 554 582 rc = WinSetWindowPos(hwnd, 0, 0, 0, 0, 0, SWP_MINIMIZE); 583 555 584 if (rc) { 556 585 rc = WinSetWindowPos(hwnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_DEACTIVATE | SWP_ZORDER); … … 567 596 } 568 597 } 598 569 599 return (rc); 570 600 }
Note:
See TracChangeset
for help on using the changeset viewer.