Changeset 325 for trunk/src/user32/new/window.cpp
- Timestamp:
- Jul 18, 1999, 12:39:52 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/window.cpp
r321 r325 1 /* $Id: window.cpp,v 1. 4 1999-07-17 11:52:23sandervl Exp $ */1 /* $Id: window.cpp,v 1.5 1999-07-18 10:39:52 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 475 475 //****************************************************************************** 476 476 //****************************************************************************** 477 BOOL WIN32API GetWindowRect( HWND arg1, PRECT arg2) 478 { 479 BOOL rc; 480 481 rc = O32_GetWindowRect(arg1, arg2); 482 dprintf(("USER32: GetWindowRect %X returned %d\n", arg1, rc)); 483 return(rc); 484 } 485 //****************************************************************************** 486 //****************************************************************************** 487 BOOL WIN32API SetWindowTextA(HWND arg1, LPCSTR arg2) 488 { 489 #ifdef DEBUG 490 WriteLog("USER32: SetWindowText %s\n", arg2); 491 #endif 492 return O32_SetWindowText(arg1, arg2); 477 BOOL WIN32API GetWindowRect( HWND hwnd, PRECT pRect) 478 { 479 Win32Window *window; 480 481 window = Win32Window::GetWindowFromHandle(hwnd); 482 if(!window) { 483 dprintf(("GetWindowRect, window %x not found", hwnd)); 484 return 0; 485 } 486 dprintf(("GetWindowRect %x", hwnd)); 487 return window->GetWindowRect(pRect); 488 } 489 //****************************************************************************** 490 //****************************************************************************** 491 int WIN32API GetWindowTextLengthA( HWND hwnd) 492 { 493 Win32Window *window; 494 495 window = Win32Window::GetWindowFromHandle(hwnd); 496 if(!window) { 497 dprintf(("GetWindowTextLength, window %x not found", hwnd)); 498 return 0; 499 } 500 dprintf(("GetWindowTextLength %x", hwnd)); 501 return window->GetWindowTextLengthA(); 502 } 503 //****************************************************************************** 504 //****************************************************************************** 505 int WIN32API GetWindowTextA( HWND hwnd, LPSTR lpsz, int cch) 506 { 507 Win32Window *window; 508 509 window = Win32Window::GetWindowFromHandle(hwnd); 510 if(!window) { 511 dprintf(("GetWindowTextA, window %x not found", hwnd)); 512 return 0; 513 } 514 dprintf(("GetWindowTextA %x", hwnd)); 515 return window->GetWindowTextA(lpsz, cch); 516 } 517 //****************************************************************************** 518 //****************************************************************************** 519 BOOL WIN32API SetWindowTextA(HWND hwnd, LPCSTR lpsz) 520 { 521 Win32Window *window; 522 523 window = Win32Window::GetWindowFromHandle(hwnd); 524 if(!window) { 525 dprintf(("SetWindowTextA, window %x not found", hwnd)); 526 return 0; 527 } 528 dprintf(("SetWindowTextA %x %s", hwnd, lpsz)); 529 return window->SetWindowTextA(lpsz); 493 530 } 494 531 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.