source: trunk/src/user32/win32wndchild.h@ 977

Last change on this file since 977 was 949, checked in by sandervl, 26 years ago

Moved new user32 here

File size: 1.2 KB
Line 
1/* $Id: win32wndchild.h,v 1.1 1999-09-15 23:19:02 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);
38
39ChildWindow *getFirstChild() { return children; };
40ChildWindow *getNextChild() { return nextchild; };
41 void setNextChild(ChildWindow *child) { nextchild = child; };
42
43 BOOL DestroyChildren();
44
45private:
46 VMutex mutex;
47
48 ChildWindow *parent; //GWL_HWNDPARENT
49 ChildWindow *children; //linked list of children of this window
50 ChildWindow *nextchild; //pointer to next child of our parent window
51};
52
53
54#endif //__cplusplus
55
56#endif //__WIN32WNDCHILD_H__
Note: See TracBrowser for help on using the repository browser.