source: trunk/src/user32/pmframe.h@ 2204

Last change on this file since 2204 was 2204, checked in by cbratschi, 26 years ago

non-client fixes, DefWndProc enhancements, several other bugs fixed

File size: 2.2 KB
Line 
1/* $Id: pmframe.h,v 1.5 1999-12-26 17:30:16 cbratschi Exp $ */
2/*
3 * Win32 Frame Managment Code for OS/2
4 *
5 * Copyright 1999 Christoph Bratschi (cbratschi@datacomm.ch)
6 *
7 */
8#ifndef __PMFRAME_H__
9#define __PMFRAME_H__
10
11PVOID FrameSubclassFrameWindow(Win32BaseWindow *win32wnd);
12VOID FrameSetBorderSize(Win32BaseWindow *win32wnd,BOOL resize);
13UINT FrameGetDefSizeBorderSize(VOID);
14VOID FrameTrackFrame(Win32BaseWindow *win32wnd,BOOL lefttop);
15BOOL FrameCreateScrollBars(Win32BaseWindow *win32wnd,BOOL createHorz,BOOL createVert,BOOL updateFrame,DWORD *flags = NULL);
16VOID FrameGetScrollBarHandles(Win32BaseWindow *win32wnd,BOOL getHorz,BOOL getVert);
17BOOL FrameShowScrollBars(Win32BaseWindow *win32wnd,BOOL changeHorz,BOOL changeVert,BOOL fShow,BOOL updateFrame,DWORD *flags = NULL);
18VOID FrameUpdateFrame(Win32BaseWindow *win32wnd,DWORD flags);
19
20#define HTERROR_W (-2)
21#define HTTRANSPARENT_W (-1)
22#define HTNOWHERE_W 0
23#define HTCLIENT_W 1
24#define HTCAPTION_W 2
25#define HTSYSMENU_W 3
26#define HTSIZE_W 4
27#define HTMENU_W 5
28#define HTHSCROLL_W 6
29#define HTVSCROLL_W 7
30#define HTMINBUTTON_W 8
31#define HTMAXBUTTON_W 9
32#define HTLEFT_W 10
33#define HTRIGHT_W 11
34#define HTTOP_W 12
35#define HTTOPLEFT_W 13
36#define HTTOPRIGHT_W 14
37#define HTBOTTOM_W 15
38#define HTBOTTOMLEFT_W 16
39#define HTBOTTOMRIGHT_W 17
40#define HTBORDER_W 18
41#define HTGROWBOX_W HTSIZE_W
42#define HTREDUCE_W HTMINBUTTON_W
43#define HTZOOM_W HTMAXBUTTON_W
44#define HTOBJECT_W 19
45#define HTCLOSE_W 20
46#define HTHELP_W 21
47#define HTSIZEFIRST_W HTLEFT_W
48#define HTSIZELAST_W HTBOTTOMRIGHT_W
49
50DWORD FrameHitTest(Win32BaseWindow *win32wnd,INT x,INT y);
51
52#define TFOS_LEFT 0x0001
53#define TFOS_TOP 0x0002
54#define TFOS_RIGHT 0x0004
55#define TFOS_BOTTOM 0x0008
56/* TF_MOVE = TF_LEFT | TF_TOP | TF_RIGHT | TF_BOTTOM */
57#define TFOS_MOVE 0x000F
58
59VOID FrameTrackFrame(Win32BaseWindow *win32wnd,DWORD flags);
60
61#endif
Note: See TracBrowser for help on using the repository browser.