Changeset 822 for trunk/src/user32/new/win32wbase.cpp
- Timestamp:
- Sep 4, 1999, 9:51:47 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32wbase.cpp
r821 r822 1 /* $Id: win32wbase.cpp,v 1. 7 1999-09-04 19:42:29sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.8 1999-09-04 19:51:46 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 429 429 #endif 430 430 431 fakeWinBase.hwndThisObject = OS2Hwnd;432 fakeWinBase.pWindowClass = windowClass;433 *(PULONG)&fakeWinBase -= 0x90 - 8;431 // fakeWinBase.hwndThisObject = OS2Hwnd; 432 // fakeWinBase.pWindowClass = windowClass; 433 // *(PULONG)&fakeWinBase -= 0x90 - 8; 434 434 // SetFakeOpen32(); 435 435 … … 1878 1878 //****************************************************************************** 1879 1879 //****************************************************************************** 1880 BOOL Win32BaseWindow::IsWindow()1881 {1882 return TRUE;1883 }1884 //******************************************************************************1885 //******************************************************************************1886 1880 BOOL Win32BaseWindow::IsWindowEnabled() 1887 1881 { … … 1911 1905 //****************************************************************************** 1912 1906 //****************************************************************************** 1913 int Win32BaseWindow::GetWindowTextLengthA() 1914 { 1915 return OSLibWinQueryWindowTextLength(OS2Hwnd); 1916 } 1917 //****************************************************************************** 1918 //****************************************************************************** 1919 int Win32BaseWindow::GetWindowTextA(LPSTR lpsz, int cch) 1920 { 1921 return OSLibWinQueryWindowText(OS2Hwnd, cch, lpsz); 1907 int Win32BaseWindow::GetWindowTextLength() 1908 { 1909 return wndNameLength; 1910 } 1911 //****************************************************************************** 1912 //****************************************************************************** 1913 int Win32BaseWindow::GetWindowText(LPSTR lpsz, int cch) 1914 { 1915 if(isUnicode == FALSE) { 1916 strncpy(lpsz, windowNameA, cch); 1917 } 1918 else { 1919 lstrcpynW((LPWSTR)lpsz, windowNameW, cch); 1920 } 1921 return wndNameLength; 1922 1922 } 1923 1923 //****************************************************************************** … … 1926 1926 { 1927 1927 if(lpsz == NULL) 1928 1928 return FALSE; 1929 1929 1930 1930 if(isUnicode == FALSE) { … … 1942 1942 wndNameLength = strlen(windowNameA)+1; //including 0 terminator 1943 1943 1944 if(OS2Hwnd )1945 return OSLibWinSetWindowText(OS2Hwnd , (LPSTR)windowNameA);1944 if(OS2HwndFrame) 1945 return OSLibWinSetWindowText(OS2HwndFrame, (LPSTR)windowNameA); 1946 1946 1947 1947 return TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.