source: trunk/src/user32/open32wbase.h@ 2013

Last change on this file since 2013 was 1405, checked in by sandervl, 26 years ago

Lots of changes/fixes

File size: 3.2 KB
Line 
1/* $Id: open32wbase.h,v 1.2 1999-10-22 18:11:45 sandervl Exp $ */
2/*
3 * Open32 Window fake Base Class for OS/2
4 *
5 *
6 * Copyright 1999 Daniela Engert (dani@ngrt.de)
7 *
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 */
12#ifndef __OPEN32WINBASE_H__
13#define __OPEN32WINBASE_H__
14
15extern "C" {
16ULONG _System PIEPS (ULONG, ULONG);
17void _System _WinSetDAXData (HWND, PVOID);
18}
19
20inline void _System WinSetDAXData (HWND a, PVOID b)
21{
22 USHORT sel = RestoreOS2FS();
23
24 _WinSetDAXData(a, b);
25 SetFS(sel);
26}
27
28#define PIEPS(x,y)
29
30#pragma pack(1)
31
32class fakeOpen32WinBaseClass
33{
34 public:
35 virtual BOOL ni08(void) { PIEPS (1000,10); return FALSE; }
36 virtual BOOL ni10(void) { PIEPS (1100,10); return FALSE; }
37 virtual BOOL ni18(void) { PIEPS (1200,10); return FALSE; }
38 virtual BOOL ni20(void) { PIEPS (1300,10); return FALSE; }
39 virtual BOOL ni28(void) { PIEPS (1400,10); return FALSE; }
40 virtual BOOL ni30(void) { PIEPS (1500,10); return FALSE; }
41 virtual BOOL ni38(void) { PIEPS (1600,10); return FALSE; }
42 virtual BOOL ni40(void) { PIEPS (1700,10); return FALSE; }
43 virtual BOOL ni48(void) { PIEPS (1800,10); return FALSE; }
44 virtual BOOL ni50(void) { PIEPS (1900,10); return FALSE; }
45 virtual BOOL ni58(void) { PIEPS (2000,10); return FALSE; }
46 virtual BOOL ni60(void) { PIEPS (2100,10); return FALSE; }
47 virtual BOOL ni68(void) { PIEPS (2200,10); return FALSE; }
48 virtual BOOL ni70(void) { PIEPS (2300,10); return FALSE; }
49 virtual BOOL ni78(void) { PIEPS (2400,10); return FALSE; }
50 virtual BOOL ni80(void) { PIEPS (2500,10); return FALSE; }
51 virtual BOOL ni88(void) { PIEPS (2600,10); return FALSE; }
52 virtual BOOL clientArea(PRECTL pRectl) { pRectl=pRectl; return FALSE; }
53 virtual BOOL redraw() { return bRedraw; }
54 virtual VOID setRedraw( BOOL bOn = TRUE ) { bRedraw = bOn; }
55 virtual BOOL niA8(void) { PIEPS (2700,10); return FALSE; }
56 virtual BOOL niB0(void) { PIEPS (2800,10); return FALSE; }
57 virtual BOOL niB8(void) { PIEPS (2900,10); return FALSE; }
58 virtual BOOL niC0(void) { PIEPS (3000,10); return FALSE; }
59 virtual BOOL niC8(void) { PIEPS (3100,10); return FALSE; }
60 virtual BOOL niD0(void) { PIEPS (3200,10); return FALSE; }
61
62 char type;
63 ULONG filler1[1];
64 HWND hwndThis;
65 ULONG filler2[15];
66 Win32WndClass *pWindowClass; /* ptr to window class */
67 ULONG filler3[2];
68 PVOID ownDC;
69 ULONG filler4[3];
70 ULONG bZeroId:1,
71 bInCreate:1,
72 bDragDrop:1,
73 bEraseBkgnd:1,
74 bPSEraseFlag:1,
75 bSupressErase:1,
76 bPaintNow:1,
77 bRedraw:1,
78 bDestroyed:1,
79 bSendSetFocus:1,
80 bGotSetFocus:1,
81 ulReserved:21;
82};
83
84#pragma pack()
85
86#endif
87
Note: See TracBrowser for help on using the repository browser.