source: trunk/src/user32/new/win32wndchild.h@ 577

Last change on this file since 577 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
19class ChildWindow
20{
21public:
22 ChildWindow();
23virtual ~ChildWindow();
24
25protected:
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);
38ChildWindow *GetNextChild() { return nextchild; };
39 void SetNextChild(ChildWindow *child) { nextchild = child; };
40
41 BOOL DestroyChildren();
42
43private:
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.