Ignore:
Timestamp:
Jan 1, 2000, 3:37:35 PM (26 years ago)
Author:
cbratschi
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wbase.cpp

    r2287 r2289  
    1 /* $Id: win32wbase.cpp,v 1.130 2000-01-01 12:18:07 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.131 2000-01-01 14:37:34 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    29062906//******************************************************************************
    29072907//******************************************************************************
     2908CHAR *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//******************************************************************************
     2922WCHAR *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//******************************************************************************
     2936VOID Win32BaseWindow::freeWindowNamePtr(PVOID namePtr)
     2937{
     2938    if (namePtr) free(namePtr);
     2939}
     2940//******************************************************************************
     2941//******************************************************************************
    29082942int Win32BaseWindow::GetWindowTextLength()
    29092943{
Note: See TracChangeset for help on using the changeset viewer.