Changeset 391 for trunk/src/user32/new/window.cpp
- Timestamp:
- Jul 25, 1999, 11:19:22 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/window.cpp
r385 r391 1 /* $Id: window.cpp,v 1. 9 1999-07-24 14:01:45sandervl Exp $ */1 /* $Id: window.cpp,v 1.10 1999-07-25 09:19:22 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 299 299 //****************************************************************************** 300 300 //****************************************************************************** 301 HDC WIN32API GetWindowDC(HWND arg1)302 {303 #ifdef DEBUG304 WriteLog("USER32: GetWindowDC\n");305 #endif306 return O32_GetWindowDC(arg1);307 }308 //******************************************************************************309 //******************************************************************************310 301 BOOL WIN32API EnableWindow( HWND hwnd, BOOL fEnable) 311 302 { … … 374 365 dprintf(("USER32: SetWindowPlacement\n")); 375 366 return O32_SetWindowPlacement(arg1, arg2); 367 } 368 //****************************************************************************** 369 //****************************************************************************** 370 BOOL WIN32API GetWindowPlacement( HWND arg1, LPWINDOWPLACEMENT arg2) 371 { 372 #ifdef DEBUG 373 WriteLog("USER32: GetWindowPlacement\n"); 374 #endif 375 return O32_GetWindowPlacement(arg1, arg2); 376 376 } 377 377 //****************************************************************************** … … 455 455 ptIcon)); 456 456 457 if ( O32_GetWindowPlacement( hwnd, &wndpl ))457 if (GetWindowPlacement( hwnd, &wndpl )) 458 458 { 459 459 if (rectWnd) *rectWnd = wndpl.rcNormalPosition; … … 537 537 dprintf(("GetWindowTextA %x", hwnd)); 538 538 return window->GetWindowTextA(lpsz, cch); 539 } 540 //****************************************************************************** 541 //****************************************************************************** 542 int WIN32API GetWindowTextLengthW( HWND hwnd) 543 { 544 dprintf(("USER32: GetWindowTextLengthW\n")); 545 return GetWindowTextLengthA(hwnd); 546 } 547 //****************************************************************************** 548 //****************************************************************************** 549 int WIN32API GetWindowTextW(HWND hwnd, LPWSTR lpsz, int cch) 550 { 551 char title[128]; 552 int rc; 553 554 rc = O32_GetWindowText(hwnd, title, sizeof(title)); 555 #ifdef DEBUG 556 WriteLog("USER32: GetWindowTextW returned %s\n", title); 557 #endif 558 if(rc > cch) { 559 title[cch-1] = 0; 560 rc = cch; 561 } 562 AsciiToUnicode(title, lpsz); 563 return(rc); 539 564 } 540 565 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.