Ignore:
Timestamp:
Nov 14, 1999, 2:07:03 PM (26 years ago)
Author:
sandervl
Message:

SetParent bugfix

File:
1 edited

Legend:

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

    r1540 r1733  
    1 /* $Id: windowclass.cpp,v 1.4 1999-11-01 19:11:46 sandervl Exp $ */
     1/* $Id: windowclass.cpp,v 1.5 1999-11-14 13:07:03 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Code for OS/2
     
    266266{
    267267 Win32BaseWindow *wnd;
    268 
    269     dprintf(("USER32: GetClassNameA\n"));
     268 int rc;
     269
    270270    wnd = Win32BaseWindow::GetWindowFromHandle(hwnd);
    271271    if(!wnd) {
     
    273273        return(0);
    274274    }
     275    *lpszClassName = 0;
     276    rc = (wnd->getClass())->getClassName(lpszClassName, cchClassName);
     277    dprintf(("USER32: GetClassNameA %x %s (%d)", hwnd, lpszClassName, rc));
     278    return rc;
     279}
     280//******************************************************************************
     281//******************************************************************************
     282int WIN32API GetClassNameW(HWND hwnd, LPWSTR lpszClassName, int cchClassName)
     283{
     284 Win32BaseWindow *wnd;
     285
     286    dprintf(("USER32: GetClassNameW\n"));
     287    wnd = Win32BaseWindow::GetWindowFromHandle(hwnd);
     288    if(!wnd) {
     289        dprintf(("GetClassNameA wnd == NULL"));
     290        return(0);
     291    }
    275292    return (wnd->getClass())->getClassName(lpszClassName, cchClassName);
    276293}
    277294//******************************************************************************
    278295//******************************************************************************
    279 int WIN32API GetClassNameW(HWND hwnd, LPWSTR lpszClassName, int cchClassName)
    280 {
    281  Win32BaseWindow *wnd;
    282 
    283     dprintf(("USER32: GetClassNameW\n"));
    284     wnd = Win32BaseWindow::GetWindowFromHandle(hwnd);
    285     if(!wnd) {
    286         dprintf(("GetClassNameA wnd == NULL"));
    287         return(0);
    288     }
    289     return (wnd->getClass())->getClassName(lpszClassName, cchClassName);
    290 }
    291 //******************************************************************************
    292 //******************************************************************************
    293296LONG WIN32API SetClassLongA(HWND hwnd, int nIndex, LONG lNewVal)
    294297{
Note: See TracChangeset for help on using the changeset viewer.