|
Last change
on this file since 330 was 314, checked in by sandervl, 26 years ago |
|
Misc window class changes/bugfixes
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | /* $Id: win32wndchild.h,v 1.1 1999-07-16 11:32:09 sandervl Exp $ */
|
|---|
| 2 | /*
|
|---|
| 3 | * Win32 Child/Parent window class for OS/2
|
|---|
| 4 | *
|
|---|
| 5 | *
|
|---|
| 6 | * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
|
|---|
| 7 | *
|
|---|
| 8 | *
|
|---|
| 9 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 10 | *
|
|---|
| 11 | */
|
|---|
| 12 | #ifndef __WIN32WNDCHILD_H__
|
|---|
| 13 | #define __WIN32WNDCHILD_H__
|
|---|
| 14 |
|
|---|
| 15 | #include <vmutex.h>
|
|---|
| 16 |
|
|---|
| 17 | #ifdef __cplusplus
|
|---|
| 18 |
|
|---|
| 19 | class ChildWindow
|
|---|
| 20 | {
|
|---|
| 21 | public:
|
|---|
| 22 | ChildWindow();
|
|---|
| 23 | virtual ~ChildWindow();
|
|---|
| 24 |
|
|---|
| 25 | protected:
|
|---|
| 26 |
|
|---|
| 27 | ChildWindow *GetParent() { return parent; };
|
|---|
| 28 | ChildWindow *SetParent(ChildWindow *newParent)
|
|---|
| 29 | {
|
|---|
| 30 | ChildWindow *oldparent = parent;
|
|---|
| 31 |
|
|---|
| 32 | parent = newParent;
|
|---|
| 33 | return oldparent;
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | BOOL AddChild(ChildWindow *child);
|
|---|
| 37 | BOOL RemoveChild(ChildWindow *child);
|
|---|
| 38 | ChildWindow *GetNextChild() { return nextchild; };
|
|---|
| 39 | void SetNextChild(ChildWindow *child) { nextchild = child; };
|
|---|
| 40 |
|
|---|
| 41 | BOOL DestroyChildren();
|
|---|
| 42 |
|
|---|
| 43 | private:
|
|---|
| 44 | VMutex mutex;
|
|---|
| 45 |
|
|---|
| 46 | ChildWindow *parent; //GWL_HWNDPARENT
|
|---|
| 47 | ChildWindow *children; //linked list of children of this window
|
|---|
| 48 | ChildWindow *nextchild; //pointer to next child of our parent window
|
|---|
| 49 | };
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 | #endif //__cplusplus
|
|---|
| 53 |
|
|---|
| 54 | #endif //__WIN32WNDCHILD_H__
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.