1 | /* $Id: pmwindow.h,v 1.19 2003-03-20 13:20:45 sandervl Exp $ */
|
---|
2 | /*
|
---|
3 | * Win32 Window Managment Code for OS/2
|
---|
4 | *
|
---|
5 | * Copyright 1998-1999 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
6 | *
|
---|
7 | */
|
---|
8 | #ifndef __PMWINDOW_H__
|
---|
9 | #define __PMWINDOW_H__
|
---|
10 |
|
---|
11 | #include <win32wbase.h>
|
---|
12 |
|
---|
13 | #define WIN32_CDCLASS "Win32CDWindowClass"
|
---|
14 | #define WIN32_STDCLASS "Win32WindowClass"
|
---|
15 | #define WIN32_STDFRAMECLASS "Win32FrameClass"
|
---|
16 |
|
---|
17 | #define TIMERID_DRIVEPOLL 0x1717
|
---|
18 |
|
---|
19 | BOOL InitPM();
|
---|
20 |
|
---|
21 | void RegisterSystemClasses(ULONG hModule);
|
---|
22 | void UnregisterSystemClasses();
|
---|
23 |
|
---|
24 | PVOID PMWinSubclassFakeWindow(HWND hwndOS2);
|
---|
25 |
|
---|
26 | extern ULONG ScreenWidth;
|
---|
27 | extern ULONG ScreenHeight;
|
---|
28 | extern ULONG ScreenBitsPerPel;
|
---|
29 | extern BOOL fOS2Look;
|
---|
30 | extern BOOL fForceMonoCursor;
|
---|
31 | extern HWND hwndCD;
|
---|
32 | extern LONG CapsCharHeight;
|
---|
33 | extern BOOL fDragDropActive;
|
---|
34 |
|
---|
35 | //Win32 bitmap handles of the OS/2 min, max and restore buttons
|
---|
36 | extern HBITMAP hBmpMinButton, hBmpMinButtonDown;
|
---|
37 | extern HBITMAP hBmpMaxButton, hBmpMaxButtonDown;
|
---|
38 | extern HBITMAP hBmpRestoreButton, hBmpRestoreButtonDown;
|
---|
39 | extern HBITMAP hBmpCloseButton, hBmpCloseButtonDown;
|
---|
40 |
|
---|
41 | #define TFOS_LEFT 0x0001
|
---|
42 | #define TFOS_TOP 0x0002
|
---|
43 | #define TFOS_RIGHT 0x0004
|
---|
44 | #define TFOS_BOTTOM 0x0008
|
---|
45 | /* TF_MOVE = TF_LEFT | TF_TOP | TF_RIGHT | TF_BOTTOM */
|
---|
46 | #define TFOS_MOVE 0x000F
|
---|
47 |
|
---|
48 | #ifdef __cplusplus
|
---|
49 | VOID FrameTrackFrame(Win32BaseWindow *win32wnd,DWORD flags);
|
---|
50 | void Frame_SysCommandSizeMove(Win32BaseWindow *win32wnd, WPARAM wParam);
|
---|
51 | #endif
|
---|
52 |
|
---|
53 | #endif
|
---|