- Timestamp:
- Jul 18, 1999, 7:12:52 PM (26 years ago)
- Location:
- trunk/src/user32/new
- Files:
-
- 2 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/makefile
r330 r331 1 # $Id: makefile,v 1. 9 1999-07-18 17:12:02 sandervl Exp $1 # $Id: makefile,v 1.10 1999-07-18 17:12:52 sandervl Exp $ 2 2 3 3 # … … 30 30 windowword.obj gen_object.obj oslibwin.obj win32wndchild.obj \ 31 31 controls.obj button.obj oslibutil.obj oslibmsg.obj windlg.obj \ 32 winprop.obj wingdi.obj oslibgdi.obj winacc .obj winscrollbar.obj32 winprop.obj wingdi.obj oslibgdi.obj winaccel.obj winscrollbar.obj 33 33 34 34 … … 80 80 windowclass.obj: windowclass.cpp win32class.h win32wnd.h win32wndchild.h 81 81 windowword.obj: windowword.cpp win32class.h win32wnd.h win32dlg.h win32wndchild.h 82 winacc .obj: winacc.cpp82 winaccel.obj: winaccel.cpp 83 83 winscrollbar.obj: winscrollbar.cpp 84 84 -
trunk/src/user32/new/window.cpp
r325 r331 1 /* $Id: window.cpp,v 1. 5 1999-07-18 10:39:52sandervl Exp $ */1 /* $Id: window.cpp,v 1.6 1999-07-18 17:12:03 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 19 19 #include <misc.h> 20 20 #include <win32wnd.h> 21 #include <oslibwin.h> 22 #include "user32.h" 23 #include "icon.h" 24 #include "usrcall.h" 21 25 22 26 //****************************************************************************** … … 378 382 //****************************************************************************** 379 383 //****************************************************************************** 384 BOOL WIN32API SetWindowPlacement( HWND arg1, const WINDOWPLACEMENT * arg2) 385 { 386 dprintf(("USER32: SetWindowPlacement\n")); 387 return O32_SetWindowPlacement(arg1, arg2); 388 } 389 //****************************************************************************** 390 //****************************************************************************** 380 391 BOOL WIN32API IsWindow( HWND hwnd) 381 392 { … … 418 429 return window->IsWindowVisible(); 419 430 } 431 //****************************************************************************** 432 //****************************************************************************** 433 HWND WIN32API SetFocus( HWND hwnd) 434 { 435 HWND lastFocus; 436 437 dprintf(("USER32: SetFocus\n")); 438 439 lastFocus = GetFocus(); 440 hwnd = Win32Window::Win32ToOS2Handle(hwnd); 441 return (OSLibWinSetFocus(OSLIB_HWND_DESKTOP,hwnd)) ? lastFocus:0; 442 } 443 //****************************************************************************** 444 //****************************************************************************** 445 HWND WIN32API GetFocus(void) 446 { 447 HWND hwnd; 448 // dprintf(("USER32: GetFocus\n")); 449 450 hwnd = OSLibWinQueryFocus(OSLIB_HWND_DESKTOP); 451 return Win32Window::OS2ToWin32Handle(hwnd); 452 } 453 //****************************************************************************** 454 //****************************************************************************** 420 455 /*********************************************************************** 421 456 * GetInternalWindowPos (USER32.245) … … 434 469 if (O32_GetWindowPlacement( hwnd, &wndpl )) 435 470 { 436 if (rectWnd) *rectWnd = wndpl.rcNormalPosition;437 if (ptIcon) *ptIcon = wndpl.ptMinPosition;438 return wndpl.showCmd;471 if (rectWnd) *rectWnd = wndpl.rcNormalPosition; 472 if (ptIcon) *ptIcon = wndpl.ptMinPosition; 473 return wndpl.showCmd; 439 474 } 440 475 return 0; … … 541 576 return(rc); 542 577 } 578 /******************************************************************* 579 * InternalGetWindowText (USER32.326) 580 */ 581 int WIN32API InternalGetWindowText(HWND hwnd, 582 LPWSTR lpString, 583 INT nMaxCount ) 584 { 585 dprintf(("USER32: InternalGetWindowText(%08xh,%08xh,%08xh) not properly implemented.\n", 586 hwnd, 587 lpString, 588 nMaxCount)); 589 590 return GetWindowTextW(hwnd,lpString,nMaxCount); 591 } 543 592 //****************************************************************************** 544 593 //****************************************************************************** … … 562 611 //****************************************************************************** 563 612 //****************************************************************************** 613 HWND WIN32API GetDesktopWindow(void) 614 { 615 dprintf(("USER32: GetDesktopWindow\n")); 616 return OSLIB_HWND_DESKTOP; 617 } 618 //****************************************************************************** 619 //****************************************************************************** 564 620 HWND WIN32API FindWindowA(LPCSTR arg1, LPCSTR arg2) 565 621 { … … 580 636 //****************************************************************************** 581 637 //****************************************************************************** 582 BOOL WIN32API FlashWindow( HWND arg1, BOOL arg2) 583 { 584 #ifdef DEBUG 585 WriteLog("USER32: FlashWindow\n"); 586 #endif 587 return O32_FlashWindow(arg1, arg2); 638 BOOL WIN32API FlashWindow(HWND hwnd, BOOL fFlash) 639 { 640 dprintf(("FlashWindow %x %d\n", hwnd, fFlash)); 641 return OSLibWinFlashWindow(Win32Window::Win32ToOS2Handle(hwnd), fFlash); 588 642 } 589 643 //****************************************************************************** … … 786 840 //****************************************************************************** 787 841 //****************************************************************************** 842 BOOL WIN32API EnumThreadWindows(DWORD dwThreadId, WNDENUMPROC lpfn, LPARAM lParam) 843 { 844 BOOL rc; 845 EnumWindowCallback *callback = new EnumWindowCallback(lpfn, lParam); 846 847 dprintf(("USER32: EnumThreadWindows\n")); 848 //CB: replace 849 rc = O32_EnumThreadWindows(dwThreadId, callback->GetOS2Callback(), (LPARAM)callback); 850 if(callback) 851 delete callback; 852 return(rc); 853 } 854 //****************************************************************************** 855 //****************************************************************************** 856 BOOL WIN32API GetUpdateRect( HWND hwnd, PRECT lpRect, BOOL bErase) 857 { 858 dprintf(("GetUpdateRect %x %d\n", hwnd, bErase)); 859 if (!lpRect) return FALSE; 860 861 return OSLibWinQueryUpdateRect(Win32Window::Win32ToOS2Handle(hwnd), (PVOID)&lpRect); 862 } 863 //****************************************************************************** 864 //****************************************************************************** 865 BOOL WIN32API EnableScrollBar( HWND arg1, INT arg2, UINT arg3) 866 { 867 #ifdef DEBUG 868 WriteLog("USER32: EnableScrollBar\n"); 869 #endif 870 //CB: implement in window class 871 return O32_EnableScrollBar(arg1, arg2, arg3); 872 } 873 //****************************************************************************** 874 //****************************************************************************** 875 UINT WIN32API ArrangeIconicWindows( HWND arg1) 876 { 877 #ifdef DEBUG 878 WriteLog("USER32: ArrangeIconicWindows\n"); 879 #endif 880 return O32_ArrangeIconicWindows(arg1); 881 } 882 //****************************************************************************** 883 //restores iconized window to previous size/position 884 //****************************************************************************** 885 BOOL WIN32API OpenIcon(HWND hwnd) 886 { 887 #ifdef DEBUG 888 WriteLog("USER32: OpenIcon\n"); 889 #endif 890 if(!IsIconic(hwnd)) 891 return FALSE; 892 ShowWindow(hwnd, SW_SHOWNORMAL); 893 return TRUE; 894 } 895 //****************************************************************************** 896 //****************************************************************************** 897 BOOL WIN32API ShowOwnedPopups( HWND arg1, BOOL arg2) 898 { 899 dprintf(("USER32: ShowOwnedPopups\n")); 900 return O32_ShowOwnedPopups(arg1, arg2); 901 } 902 //****************************************************************************** 903 //****************************************************************************** -
trunk/src/user32/new/windowmsg.cpp
r321 r331 1 /* $Id: windowmsg.cpp,v 1. 6 1999-07-17 11:52:24sandervl Exp $ */1 /* $Id: windowmsg.cpp,v 1.7 1999-07-18 17:12:03 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 414 414 return (FALSE); 415 415 } 416 //****************************************************************************** 417 //****************************************************************************** 416 /***************************************************************************** 417 * Name : long WIN32API BroadcastSystemMessage 418 * Purpose : The BroadcastSystemMessage function sends a message to the given 419 * recipients. The recipients can be applications, installable 420 * drivers, Windows-based network drivers, system-level device 421 * drivers, or any combination of these system components. 422 * Parameters: DWORD dwFlags, 423 LPDWORD lpdwRecipients, 424 UINT uiMessage, 425 WPARAM wParam, 426 LPARAM lParam 427 * Variables : 428 * Result : If the function succeeds, the return value is a positive value. 429 * If the function is unable to broadcast the message, the return value is -1. 430 * If the dwFlags parameter is BSF_QUERY and at least one recipient returned FALSE to the corresponding message, the return value is zero. 431 * Remark : 432 * Status : UNTESTED STUB 433 * 434 * Author : Patrick Haller [Thu, 1998/02/26 11:55] 435 *****************************************************************************/ 436 437 long WIN32API BroadcastSystemMessage(DWORD dwFlags, 438 LPDWORD lpdwRecipients, 439 UINT uiMessage, 440 WPARAM wParam, 441 LPARAM lParam) 442 { 443 dprintf(("USER32:BroadcastSystemMessage(%08xh,%08xh,%08xh,%08xh,%08x) not implemented.\n", 444 dwFlags, 445 lpdwRecipients, 446 uiMessage, 447 wParam, 448 lParam)); 449 450 return (-1); 451 } 452 //****************************************************************************** 453 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.