Changeset 1063 for trunk/src/user32/window.cpp
- Timestamp:
- Sep 26, 1999, 4:44:58 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/window.cpp
r1042 r1063 1 /* $Id: window.cpp,v 1. 9 1999-09-25 14:18:12sandervl Exp $ */1 /* $Id: window.cpp,v 1.10 1999-09-26 14:44:58 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 301 301 if(!window) { 302 302 dprintf(("CreateMDIWindowW, window %x not found", hwndParent)); 303 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 303 304 return 0; 304 305 } … … 326 327 if(!window) { 327 328 dprintf(("DestroyWindow, window %x not found", hwnd)); 329 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 328 330 return 0; 329 331 } … … 340 342 if(!window) { 341 343 dprintf(("SetActiveWindow, window %x not found", hwnd)); 344 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 342 345 return 0; 343 346 } … … 354 357 if(!window) { 355 358 dprintf(("GetParent, window %x not found", hwnd)); 359 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 356 360 return 0; 357 361 } … … 368 372 if(!window) { 369 373 dprintf(("SetParent, window %x not found", hwndChild)); 374 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 370 375 return 0; 371 376 } … … 382 387 if(!window) { 383 388 dprintf(("IsChild, window %x not found", hwnd)); 389 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 384 390 return 0; 385 391 } … … 396 402 if(!window) { 397 403 dprintf(("GetTopWindow, window %x not found", hwnd)); 404 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 398 405 return 0; 399 406 } … … 426 433 if(!window) { 427 434 dprintf(("IsIconic, window %x not found", hwnd)); 435 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 428 436 return 0; 429 437 } … … 440 448 if(!window) { 441 449 dprintf(("GetWindow, window %x not found", hwnd)); 450 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 442 451 return 0; 443 452 } … … 454 463 if(!window) { 455 464 dprintf(("EnableWindow, window %x not found", hwnd)); 465 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 456 466 return 0; 457 467 } … … 480 490 if(!window) { 481 491 dprintf(("ShowWindow, window %x not found", hwnd)); 492 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 482 493 return 0; 483 494 } … … 494 505 if(!window) { 495 506 dprintf(("SetWindowPos, window %x not found", hwnd)); 507 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 496 508 return 0; 497 509 } … … 552 564 if(!window) { 553 565 dprintf(("IsWindowVisible, window %x not found", hwnd)); 566 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 554 567 return 0; 555 568 } … … 569 582 lastFocus_W = Win32BaseWindow::OS2ToWin32Handle (lastFocus); 570 583 571 dprintf((" USER32:SetFocus %x (%x) -> %x (%x)\n", lastFocus_W, lastFocus, hwnd, hwnd_O));584 dprintf(("SetFocus %x (%x) -> %x (%x)\n", lastFocus_W, lastFocus, hwnd, hwnd_O)); 572 585 573 586 return (OSLibWinSetFocus (OSLIB_HWND_DESKTOP, hwnd_O, activate)) ? lastFocus_W : 0; … … 652 665 if(!window) { 653 666 dprintf(("GetWindowRect, window %x not found", hwnd)); 667 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 654 668 return 0; 655 669 } … … 666 680 if(!window) { 667 681 dprintf(("GetWindowTextLength, window %x not found", hwnd)); 682 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 668 683 return 0; 669 684 } … … 681 696 if(!window) { 682 697 dprintf(("GetWindowTextA, window %x not found", hwnd)); 698 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 683 699 return 0; 684 700 } … … 703 719 if(!window) { 704 720 dprintf(("GetWindowTextW, window %x not found", hwnd)); 721 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 705 722 return 0; 706 723 } … … 717 734 if(!window) { 718 735 dprintf(("SetWindowTextA, window %x not found", hwnd)); 736 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 719 737 return 0; 720 738 } … … 731 749 if(!window) { 732 750 dprintf(("SetWindowTextA, window %x not found", hwnd)); 751 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 733 752 return 0; 734 753 } … … 800 819 { 801 820 if(!lpszClass) { 802 SetLastError(ERROR_INVALID_PARAMETER);803 return 0;821 SetLastError(ERROR_INVALID_PARAMETER); 822 return 0; 804 823 } 805 824 if(HIWORD(lpszClass)) { … … 815 834 { 816 835 if(!lpszClass) { 817 SetLastError(ERROR_INVALID_PARAMETER);818 return 0;836 SetLastError(ERROR_INVALID_PARAMETER); 837 return 0; 819 838 } 820 839 if(HIWORD(lpszClass)) { … … 852 871 { 853 872 if(!lpszClass) { 854 SetLastError(ERROR_INVALID_PARAMETER);855 return 0;873 SetLastError(ERROR_INVALID_PARAMETER); 874 return 0; 856 875 } 857 876 dprintf(("USER32: FindWindowExW (%x,%x) %x %s\n", hwndParent, hwndChildAfter, lpszClass, lpszWindow)); … … 888 907 PRECT rcl; 889 908 890 if (!hwnd) return (TRUE); 909 if (!hwnd) { 910 SetLastError(ERROR_INVALID_PARAMETER); 911 return (FALSE); 912 } 891 913 wnd = Win32BaseWindow::GetWindowFromHandle (hwnd); 892 if (!wnd) return (TRUE); 914 if (!wnd) { 915 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 916 return (FALSE); 917 } 893 918 894 919 rcl = wnd->getClientRect(); … … 953 978 if (GetWindowRect (hwndParent, &rect) == 0) { 954 979 // oops, invalid handle 980 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 955 981 return NULL; 956 982 } … … 1016 1042 if(!window) { 1017 1043 dprintf(("CloseWindow, window %x not found", hwnd)); 1044 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 1018 1045 return 0; 1019 1046 } … … 1044 1071 if(!window) { 1045 1072 dprintf(("IsWindowUnicode, window %x not found", hwnd)); 1073 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 1046 1074 return 0; 1047 1075 } … … 1149 1177 if(!parentwindow) { 1150 1178 dprintf(("EnumChildWindows, window %x not found", hwnd)); 1179 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 1151 1180 return FALSE; 1152 1181 }
Note:
See TracChangeset
for help on using the changeset viewer.