Changeset 2289 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Jan 1, 2000, 3:37:35 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r2287 r2289 1 /* $Id: win32wbase.cpp,v 1.13 0 2000-01-01 12:18:07 sandervlExp $ */1 /* $Id: win32wbase.cpp,v 1.131 2000-01-01 14:37:34 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2906 2906 //****************************************************************************** 2907 2907 //****************************************************************************** 2908 CHAR *Win32BaseWindow::getWindowNamePtrA() 2909 { 2910 INT len = GetWindowTextLength(); 2911 CHAR *text; 2912 2913 if (len == 0) return NULL; 2914 len++; 2915 text = (CHAR*)malloc(len*sizeof(CHAR)); 2916 GetWindowTextA(text,len); 2917 2918 return text; 2919 } 2920 //****************************************************************************** 2921 //****************************************************************************** 2922 WCHAR *Win32BaseWindow::getWindowNamePtrW() 2923 { 2924 INT len = GetWindowTextLength(); 2925 WCHAR *text; 2926 2927 if (len == 0) return NULL; 2928 len++; 2929 text = (WCHAR*)malloc(len*sizeof(WCHAR)); 2930 GetWindowTextW(text,len); 2931 2932 return text; 2933 } 2934 //****************************************************************************** 2935 //****************************************************************************** 2936 VOID Win32BaseWindow::freeWindowNamePtr(PVOID namePtr) 2937 { 2938 if (namePtr) free(namePtr); 2939 } 2940 //****************************************************************************** 2941 //****************************************************************************** 2908 2942 int Win32BaseWindow::GetWindowTextLength() 2909 2943 {
Note:
See TracChangeset
for help on using the changeset viewer.