/* * Window definitions * * Copyright 1993 Alexandre Julliard */ #ifndef WIN_H #define WIN_H #include #include #include #include "windows.h" #include "menu.h" #define WND_MAGIC 0x444e4957 /* 'WIND' */ typedef struct tagWND { HWND hwndNext; /* Next sibling */ HWND hwndChild; /* First child */ DWORD dwMagic; /* Magic number (must be WND_MAGIC) */ HWND hwndParent; /* Window parent (from CreateWindow) */ HWND hwndOwner; /* Window owner */ HCLASS hClass; /* Window class */ HANDLE hInstance; /* Window hInstance (from CreateWindow) */ RECT rectClient; /* Window client area screen coords */ RECT rectWindow; /* Window whole area screen coords */ HRGN hrgnUpdate; /* Update region */ HWND hwndLastActive; /* Last active popup hwnd */ FARPROC lpfnWndProc; /* Window procedure */ DWORD dwStyle; /* Window style (from CreateWindow) */ HANDLE hDCE; /* Window DC Entry (if CS_OWNDC) */ HMENU hmenuSystem; /* System menu */ WORD wIDmenu; /* ID or hmenu (from CreateWindow) */ WORD flags; /* Misc. flags */ Widget shellWidget; /* For top-level windows */ Widget winWidget; /* For all windows */ Widget compositeWidget;/* For top-level windows */ LPMENUBAR menuBarPtr; /* Menu bar */ WORD wExtra[1]; /* Window extra bytes */ } WND; /* WND flags values */ #define WIN_ERASE_UPDATERGN 1 /* Update region needs erasing */ /* The caller must GlobalUnlock the pointer returned * by this function (except when NULL). */ WND * WIN_FindWndPtr( HWND hwnd ); #endif /* WIN_H */