Ignore:
Timestamp:
May 5, 2000, 1:32:38 PM (25 years ago)
Author:
sandervl
Message:

window property fixes/changes

File:
1 edited

Legend:

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

    r3419 r3493  
    1 /* $Id: win32wbase.h,v 1.93 2000-04-18 11:13:01 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.94 2000-05-05 11:32:37 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    3737        ULONG            win32CreateStruct;      //or dialog create dword
    3838} CUSTOMWNDDATA;
     39
     40typedef struct tagPROPERTY
     41{
     42    struct tagPROPERTY *next;     /* Next property in window list */
     43    HANDLE              handle;   /* User's data */
     44    LPSTR               string;   /* Property string (or atom) */
     45} PROPERTY;
    3946
    4047//PostThreadMessage is done through Open32; which means the message id will be translated
     
    281288         BOOL   isInTasklist()                  { return fTaskList; };
    282289
     290         //window property methods
     291         HANDLE getProp(LPCSTR str);
     292         BOOL   setProp(LPCSTR str, HANDLE handle);
     293         HANDLE removeProp(LPCSTR str);
     294         INT    enumPropsExA(PROPENUMPROCEXA func, LPARAM lParam);
     295         INT    enumPropsExW(PROPENUMPROCEXW func, LPARAM lParam);
     296
    283297    static HWND Win32ToOS2Handle(HWND hwnd);
    284298    static HWND Win32ToOS2FrameHandle(HWND hwnd);
     
    305319       LRESULT  SendInternalMessageW(ULONG msg, WPARAM wParam, LPARAM lParam);
    306320        void    Init();
     321
     322        //called in destructor to remove all (if any) window properties
     323        void    removeWindowProps();
     324    PROPERTY   *findWindowProperty(LPCSTR str);
    307325
    308326        HWND    OS2Hwnd;
     
    368386        RECT    rectWindow; //relative to screen
    369387        RECT    rectClient;  //relative to parent
     388
     389    PROPERTY   *propertyList;
    370390
    371391CREATESTRUCTA  *tmpcs; //temporary pointer to CREATESTRUCT used in CreateWindowEx
Note: See TracChangeset for help on using the changeset viewer.