source: trunk/src/user32/new/oslibwin.h@ 322

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

USER32 API

File size: 3.3 KB
Line 
1/* $Id: oslibwin.h,v 1.6 1999-07-17 12:49:41 cbratschi Exp $ */
2/*
3 * Window API wrappers for OS/2
4 *
5 *
6 * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
7 *
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 */
12#ifndef __OSLIBWIN_H__
13#define __OSLIBWIN_H__
14
15#define OS2TOWIN32POINT(height, y) (height - y)
16
17#define OSLIB_HWND_DESKTOP 0
18BOOL OSLibWinSetParent(HWND hwnd, HWND hwndParent, ULONG fRedraw = TRUE);
19
20
21HWND OSLibWinCreateWindow(HWND hwndParent, ULONG dwWinStyle, ULONG dwFrameStyle,
22 char *pszName, ULONG x, ULONG y, ULONG cx, ULONG cy,
23 HWND Owner, ULONG fHWND_BOTTOM, HWND *hwndFrame);
24
25BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG *OSWinStyle, ULONG *OSFrameStyle);
26
27BOOL OSLibWinSetWindowULong(HWND hwnd, ULONG offset, ULONG value);
28ULONG OSLibWinGetWindowULong(HWND hwnd, ULONG offset);
29
30BOOL OSLibPostMessage(HWND hwnd, ULONG msg, ULONG wParam, ULONG lParam);
31
32HWND OSLibWinCreateMenu(HWND hwndParent, PVOID menutemplate);
33
34#define WA_WARNING 0
35#define WA_NOTE 1
36#define WA_ERROR 2
37#define WA_CWINALARMS 13 /* count of valid alarms 53304*/
38
39BOOL OSLibWinAlarm(HWND hwndDeskTop,ULONG flStyle);
40ULONG OSLibDosBeep(ULONG freg,ULONG dur);
41LONG OSLibWinQueryWindowTextLength(HWND hwnd);
42LONG OSLibWinQueryWindowText(HWND hwnd,LONG lLength,char* pun);
43
44#define SWPOS_SIZE 0x0001
45#define SWPOS_MOVE 0x0002
46#define SWPOS_ZORDER 0x0004
47#define SWPOS_SHOW 0x0008
48#define SWPOS_HIDE 0x0010
49#define SWPOS_NOREDRAW 0x0020
50#define SWPOS_NOADJUST 0x0040
51#define SWPOS_ACTIVATE 0x0080
52#define SWPOS_DEACTIVATE 0x0100
53#define SWPOS_EXTSTATECHANGE 0x0200
54#define SWPOS_MINIMIZE 0x0400
55#define SWPOS_MAXIMIZE 0x0800
56#define SWPOS_RESTORE 0x1000
57#define SWPOS_FOCUSACTIVATE 0x2000
58#define SWPOS_FOCUSDEACTIVATE 0x4000
59#define SWPOS_NOAUTOCLOSE 0x8000 /* Valid in PROGDETAILS struct only */
60
61#define HWNDOS_TOP (HWND)3
62#define HWNDOS_BOTTOM (HWND)4
63
64BOOL OSLibWinSetWindowPos(HWND hwnd, HWND hwndInsertBehind, LONG x, LONG y, LONG cx, LONG cy, ULONG fl);
65BOOL OSLibWinShowWindow(HWND hwnd, ULONG fl);
66
67BOOL OSLibWinDestroyWindow(HWND hwnd);
68BOOL OSLibWinQueryUpdateRect(HWND hwnd, PVOID pRect); //must be RECTL pointer!
69BOOL OSLibWinIsIconic(HWND hwnd);
70BOOL OSLibWinSetActiveWindow(HWND hwnd);
71BOOL OSLibWinSetFocus(HWND hwnd);
72BOOL OSLibWinEnableWindow(HWND hwnd, BOOL fEnable);
73BOOL OSLibWinIsWindowEnabled(HWND hwnd);
74BOOL OSLibWinIsWindowVisible(HWND hwnd);
75BOOL OSLibWinQueryActiveWindow();
76
77#define QWOS_NEXT 0
78#define QWOS_PREV 1
79#define QWOS_TOP 2
80#define QWOS_BOTTOM 3
81#define QWOS_OWNER 4
82#define QWOS_PARENT 5
83#define QWOS_NEXTTOP 6
84#define QWOS_PREVTOP 7
85#define QWOS_FRAMEOWNER 8
86
87HWND OSLibWinQueryWindow(HWND hwnd, ULONG lCode);
88
89
90void OSLibWinPostQuitMessage(ULONG nExitCode);
91LONG OSLibWinDispatchMsg(MSG *msg, BOOL isUnicode = FALSE);
92
93BOOL OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, BOOL isUnicode = FALSE);
94
95#endif //__OSLIBWIN_H__
Note: See TracBrowser for help on using the repository browser.