source: trunk/include/winuser32.h@ 7762

Last change on this file since 7762 was 7762, checked in by sandervl, 24 years ago

CreateFakeWindowEx change

File size: 2.7 KB
Line 
1/*
2 * Internal functions exported by user32
3 *
4 * Project Odin Software License can be found in LICENSE.TXT
5 *
6 */
7#ifndef __WINUSER32_H__
8#define __WINUSER32_H__
9
10#if !defined(NO_DCDATA) && (defined(INCL_GPI) && defined(OS2_INCLUDED))
11
12#include <dcdata.h>
13
14ULONG OSLibGetScreenHeight();
15ULONG OSLibGetScreenWidth();
16
17void WIN32API Calculate1PixelDelta(pDCData pHps);
18void WIN32API TestWideLine (pDCData pHps);
19BOOL WIN32API changePageXForm(pDCData pHps, POINTL *pValue, int x, int y, POINTL *pPrev);
20BOOL WIN32API setPageXForm(pDCData pHps);
21VOID WIN32API selectClientArea(pDCData pHps);
22VOID WIN32API checkOrigin(pDCData pHps);
23VOID WIN32API removeClientArea(pDCData pHps);
24LONG WIN32API clientHeight(HWND hwnd, pDCData pHps);
25int WIN32API setMapModeDC(pDCData pHps, int mode);
26#endif
27
28int WIN32API DIB_GetDIBWidthBytes( int width, int depth );
29int WIN32API BITMAP_GetWidthBytes( INT width, INT depth );
30
31HWND WIN32API Win32ToOS2Handle(HWND hwndWin32);
32HWND WIN32API Win32ToOS2FrameHandle(HWND hwndWin32);
33HWND WIN32API OS2ToWin32Handle(HWND hwnd);
34
35BOOL WIN32API IsSystemPen(HPEN hPen);
36BOOL WIN32API IsSystemBrush(HBRUSH hBrush);
37
38HICON WIN32API GetOS2Icon(HICON hIcon);
39
40//Turns native OS/2 window into window recognized by Odin (with only very
41//limited functionality)
42//Useful for creating an Odin window with an OS/2 window as parent.
43HWND WIN32API CreateFakeWindowEx(HWND hwndOS2, ATOM classAtom);
44
45#define WIN32_APPEARANCE 0
46#define OS2_APPEARANCE 1 //OS/2 look with win32 system menu
47#define OS2_APPEARANCE_SYSMENU 2 //OS/2 look with native system menu
48
49void WIN32API SetWindowAppearance(int fOS2Looks);
50
51BOOL WIN32API OSLibWinCreateObject(LPSTR pszPath, LPSTR pszArgs, LPSTR pszWorkDir, LPSTR pszName,
52 LPSTR pszDescription, LPSTR pszIcoPath, INT iIcoNdx, BOOL fDesktop);
53
54typedef BOOL (* WIN32API VISRGN_NOTIFY_PROC)(HWND hwnd, BOOL fDrawingAllowed, DWORD dwUserData);
55//******************************************************************************
56// WinSetVisibleRgnNotifyProc
57// To set a notification procedure for visible region changes of a specific window.
58// The procedure will be called when a WM_VRNENABLED message is posted
59// with ffVisRgnChanged set to TRUE
60//
61// Parameters:
62// HWND hwnd window handle
63// VISRGN_NOTIFY_PROC lpNotifyProc notification proc or NULL to clear proc
64// DWORD dwUserData value used as 3rd parameter during
65// visible region callback
66//
67// NOTE: Internal API
68//******************************************************************************
69BOOL WIN32API WinSetVisibleRgnNotifyProc(HWND hwnd, VISRGN_NOTIFY_PROC lpNotifyProc, DWORD dwUserData);
70
71#endif //__WINUSER32_H__
Note: See TracBrowser for help on using the repository browser.