Changeset 2289 for trunk/src


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

* empty log message *

Location:
trunk/src/user32
Files:
4 edited

Legend:

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

    r2257 r2289  
    1 /* $Id: pmframe.cpp,v 1.31 1999-12-29 22:54:01 cbratschi Exp $ */
     1/* $Id: pmframe.cpp,v 1.32 2000-01-01 14:37:34 cbratschi Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    230230  switch(msg)
    231231  {
     232    case WM_FORMATFRAME:
     233      dprintf(("PMFRAME: WM_FORMATFRAME %x",hwnd));
     234      //CB: call WM_NCCALCSIZE and set client pos
     235      //    WM_PAINT -> WM_NCPAINT
     236      //    WM_HITTEST -> MsgHitTest()
     237      //    mouse messages -> MsgButton()
     238      goto RunDefFrameProc;
     239
     240    case WM_QUERYBORDERSIZE:
     241      //CB: todo: set to 0
     242      goto RunDefFrameProc;
     243
    232244    case WM_ADJUSTWINDOWPOS:
    233245    {
     
    429441    case WM_PAINT:
    430442      #ifdef PMFRAMELOG
    431        dprintf(("PMFRAME: WM_PAINT"));
     443       dprintf(("PMFRAME: WM_PAINT %x",hwnd));
    432444      #endif
    433445      if (!win32wnd->isChild())
  • 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{
  • trunk/src/user32/win32wbase.h

    r2269 r2289  
    1 /* $Id: win32wbase.h,v 1.62 1999-12-30 18:33:00 cbratschi Exp $ */
     1/* $Id: win32wbase.h,v 1.63 2000-01-01 14:37:35 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    194194         BOOL   SetWindowTextW(LPWSTR lpsz);
    195195         BOOL   hasWindowName(LPSTR wndname, BOOL fUnicode = 0);
     196         CHAR  *getWindowNamePtrA();
     197         WCHAR *getWindowNamePtrW();
     198         VOID   freeWindowNamePtr(PVOID namePtr);
     199         CHAR  *getWindowNameA()              { return windowNameA; }; //only for MDI windows!
     200         WCHAR *getWindowNameW()              { return windowNameW; }; //only for MDI windows!
    196201Win32WndClass  *getClass()  { return windowClass; };
    197         //CB: windowNameA isn't always the window name!
    198         char   *getWindowNameA()                    { return windowNameA; };
    199202Win32BaseWindow *getOwner()                         { return owner; };
    200203        void    setOwner(Win32BaseWindow *newOwner) { owner = newOwner; };
  • trunk/src/user32/win32wnd.cpp

    r2114 r2289  
    1 /* $Id: win32wnd.cpp,v 1.4 1999-12-18 16:31:52 cbratschi Exp $ */
     1/* $Id: win32wnd.cpp,v 1.5 2000-01-01 14:37:35 cbratschi Exp $ */
    22/*
    33 * Win32 Window Class for OS/2
     
    6969        case WM_SETTEXT:
    7070            //CB: infinite loop
    71             //window->updateFrameText(MDI_REPAINTFRAME,(LPCSTR)lParam);
     71            window->updateFrameText(MDI_REPAINTFRAME,(LPCSTR)lParam);
    7272            return 0;
    7373#endif
Note: See TracChangeset for help on using the changeset viewer.