Ignore:
Timestamp:
Aug 28, 1999, 7:24:45 PM (26 years ago)
Author:
dengert
Message:

reposition child windows when parent height is changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/win32class.h

    r724 r728  
    1 /* $Id: win32class.h,v 1.5 1999-08-28 14:09:30 sandervl Exp $ */
     1/* $Id: win32class.h,v 1.6 1999-08-28 17:24:45 dengert Exp $ */
    22/*
    33 * Win32 Window Class Managment Code for OS/2
     
    1515{
    1616public:
    17         Win32WndClass(WNDCLASSEXA *wndclass, BOOL isUnicode = FALSE);
     17        Win32WndClass(WNDCLASSEXA *wndclass, BOOL isUnicode = FALSE);
    1818       ~Win32WndClass();
    1919
    20          ULONG  getClassLongA(int index, BOOL isUnicode = FALSE);
    21          ULONG  getClassLongW(int index)
    22          {
    23                 return getClassLongA(index, TRUE);
    24         };
    25          WORD   getClassWord(int index);
     20         ULONG  getClassLongA(int index, BOOL isUnicode = FALSE);
     21         ULONG  getClassLongW(int index)
     22         {
     23                return getClassLongA(index, TRUE);
     24        };
     25         WORD   getClassWord(int index);
    2626
    27          ULONG  setClassLongA(int index, LONG lNewVal, BOOL isUnicode = FALSE);
    28          ULONG  setClassLongW(int index, LONG lNewVal)
    29         {
    30                 return setClassLongA(index, lNewVal, TRUE);
    31         }
    32          WORD   setClassWord(int index, WORD wNewVal);
     27         ULONG  setClassLongA(int index, LONG lNewVal, BOOL isUnicode = FALSE);
     28         ULONG  setClassLongW(int index, LONG lNewVal)
     29        {
     30                return setClassLongA(index, lNewVal, TRUE);
     31        }
     32         WORD   setClassWord(int index, WORD wNewVal);
    3333
    34          ATOM   getAtom()       { return (ATOM) classAtom; };
    35         BOOL   getClassInfo(WNDCLASSEXA *wndclass);
    36         BOOL   getClassInfo(WNDCLASSEXW *wndclass);
     34         ATOM   getAtom()       { return (ATOM) classAtom; };
     35        BOOL   getClassInfo(WNDCLASSEXA *wndclass);
     36        BOOL   getClassInfo(WNDCLASSEXW *wndclass);
    3737
    38         ULONG  getClassName(LPSTR  lpszClassName, ULONG cchClassName);
    39         ULONG  getClassName(LPWSTR lpszClassName, ULONG cchClassName);
     38        ULONG  getClassName(LPSTR  lpszClassName, ULONG cchClassName);
     39        ULONG  getClassName(LPWSTR lpszClassName, ULONG cchClassName);
    4040
    41        WNDPROC  getWindowProc()         { return windowProc; };
    42          LPSTR  getMenuNameA()          { return menuNameA; };
    43          DWORD  getExtraWndWords()      { return nrExtraWindowWords; };
     41       WNDPROC  getWindowProc()         { return windowProc; };
     42         LPSTR  getMenuNameA()          { return menuNameA; };
     43         DWORD  getExtraWndWords()      { return nrExtraWindowWords; };
    4444
    45          HICON  getIcon()               { return hIcon; };
     45         HICON  getIcon()               { return hIcon; };
    4646
    4747        HBRUSH  getBackgroundBrush()    { return backgroundBrush; };
     48         ULONG  getStyle()              { return windowStyle; };
    4849
    49           void  setMenuName(LPSTR newMenuName);
     50          void  setMenuName(LPSTR newMenuName);
    5051
    51           void  IncreaseWindowCount()   { cWindows++; };
    52           void  DecreaseWindowCount()   { cWindows--; };
    53           DWORD GetWindowCount()        { return cWindows; };
     52          void  IncreaseWindowCount()   { cWindows++; };
     53          void  DecreaseWindowCount()   { cWindows--; };
     54          DWORD GetWindowCount()        { return cWindows; };
    5455
    5556          BOOL  hasClassName(LPSTR classname, BOOL fUnicode = 0);
    56          
    57  static  void   UnregisterClassA(HINSTANCE hinst, LPSTR id);
     57         
     58 static  void   UnregisterClassA(HINSTANCE hinst, LPSTR id);
    5859
    5960 static Win32WndClass *FindClass(HINSTANCE hinst, LPSTR id);
     
    6364
    6465 //Standard class words/longs
    65  ULONG          nrExtraClassWords;      //GCL_CBCLSEXTRA
    66  ULONG          nrExtraWindowWords;     //GCL_CBWNDEXTRA
    67  HBRUSH         backgroundBrush;        //GCL_HBRBACKGROUND
    68  HCURSOR        hCursor;                //GCL_HCURSOR
    69  HICON          hIcon;                  //GCL_HICON
    70  HINSTANCE      hInstance;              //GCL_HMODULE
    71  PCHAR          menuNameA;              //GCL_MENUNAME
    72  WCHAR         *menuNameW;              //GCL_MENUNAME
    73  ULONG          windowStyle;            //GCL_STYLE
    74  WNDPROC        windowProc;             //GCL_WNDPROC
    75  ULONG          classAtom;              //GCW_ATOM
     66 ULONG          nrExtraClassWords;      //GCL_CBCLSEXTRA
     67 ULONG          nrExtraWindowWords;     //GCL_CBWNDEXTRA
     68 HBRUSH         backgroundBrush;        //GCL_HBRBACKGROUND
     69 HCURSOR        hCursor;                //GCL_HCURSOR
     70 HICON          hIcon;                  //GCL_HICON
     71 HINSTANCE      hInstance;              //GCL_HMODULE
     72 PCHAR          menuNameA;              //GCL_MENUNAME
     73 WCHAR         *menuNameW;              //GCL_MENUNAME
     74 ULONG          windowStyle;            //GCL_STYLE
     75 WNDPROC        windowProc;             //GCL_WNDPROC
     76 ULONG          classAtom;              //GCW_ATOM
    7677
    7778 PCHAR          classNameA;
    7879 WCHAR         *classNameW;
    79  HICON          hIconSm;
     80 HICON          hIconSm;
    8081
    8182 //User data class words/longs
    82  ULONG         *userClassLong;
     83 ULONG         *userClassLong;
    8384
    8485 //nr of windows created with this class
    8586 ULONG          cWindows;
    86  
     87
    8788 static GenericObject *wndclasses;
    8889};
Note: See TracChangeset for help on using the changeset viewer.