source: trunk/include/winuser32.h@ 10367

Last change on this file since 10367 was 10136, checked in by sandervl, 22 years ago

Send focus messages when we receive the undocumented WM_FOCUSCHANGED PM message. Removes the need for the ugly hack to deal with nested focus changes.

File size: 3.4 KB
RevLine 
[3707]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
[6903]10#if !defined(NO_DCDATA) && (defined(INCL_GPI) && defined(OS2_INCLUDED))
[4860]11
[4591]12#include <dcdata.h>
13
[3707]14ULONG OSLibGetScreenHeight();
15ULONG OSLibGetScreenWidth();
16
[4556]17void WIN32API Calculate1PixelDelta(pDCData pHps);
18void WIN32API TestWideLine (pDCData pHps);
[4591]19BOOL WIN32API changePageXForm(pDCData pHps, POINTL *pValue, int x, int y, POINTL *pPrev);
[4556]20BOOL WIN32API setPageXForm(pDCData pHps);
[4595]21VOID WIN32API selectClientArea(pDCData pHps);
[5604]22VOID WIN32API checkOrigin(pDCData pHps);
[4556]23VOID WIN32API removeClientArea(pDCData pHps);
24LONG WIN32API clientHeight(HWND hwnd, pDCData pHps);
[6411]25int WIN32API setMapModeDC(pDCData pHps, int mode);
[4860]26#endif
[4556]27
[4591]28int WIN32API DIB_GetDIBWidthBytes( int width, int depth );
[4600]29int WIN32API BITMAP_GetWidthBytes( INT width, INT depth );
[4591]30
[4848]31HWND WIN32API Win32ToOS2Handle(HWND hwndWin32);
[6903]32HWND WIN32API Win32ToOS2FrameHandle(HWND hwndWin32);
[4848]33HWND WIN32API OS2ToWin32Handle(HWND hwnd);
34
[4855]35BOOL WIN32API IsSystemPen(HPEN hPen);
36BOOL WIN32API IsSystemBrush(HBRUSH hBrush);
37
[6167]38HICON WIN32API GetOS2Icon(HICON hIcon);
39
[5263]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.
[7762]43HWND WIN32API CreateFakeWindowEx(HWND hwndOS2, ATOM classAtom);
[7765]44HWND WIN32API DestroyFakeWindow(HWND hwndWin32);
[5263]45
[5991]46#define WIN32_APPEARANCE 0
[7061]47#define OS2_APPEARANCE 1 //OS/2 look with win32 system menu
48#define OS2_APPEARANCE_SYSMENU 2 //OS/2 look with native system menu
[5991]49
[7061]50void WIN32API SetWindowAppearance(int fOS2Looks);
51
[6479]52BOOL WIN32API OSLibWinCreateObject(LPSTR pszPath, LPSTR pszArgs, LPSTR pszWorkDir, LPSTR pszName,
53 LPSTR pszDescription, LPSTR pszIcoPath, INT iIcoNdx, BOOL fDesktop);
54
[6904]55typedef BOOL (* WIN32API VISRGN_NOTIFY_PROC)(HWND hwnd, BOOL fDrawingAllowed, DWORD dwUserData);
[6903]56//******************************************************************************
57// WinSetVisibleRgnNotifyProc
58// To set a notification procedure for visible region changes of a specific window.
59// The procedure will be called when a WM_VRNENABLED message is posted
60// with ffVisRgnChanged set to TRUE
61//
62// Parameters:
63// HWND hwnd window handle
64// VISRGN_NOTIFY_PROC lpNotifyProc notification proc or NULL to clear proc
65// DWORD dwUserData value used as 3rd parameter during
66// visible region callback
67//
68// NOTE: Internal API
69//******************************************************************************
70BOOL WIN32API WinSetVisibleRgnNotifyProc(HWND hwnd, VISRGN_NOTIFY_PROC lpNotifyProc, DWORD dwUserData);
71
[9461]72
73//
74// PM message definitions for Odin
75//
76
77//PostThreadMessage is done through Open32; which means the message id will be translated
78//(0xc00 added)
79#define OPEN32_MSGDIFF 0xC00
80#define WIN32APP_POSTMSG (0x1000+OPEN32_MSGDIFF)
81
82//PM doesn't allow SetFocus during WM_SETFOCUS message processing; must delay
83//this by posting a message
84//NOTE Must be smaller than WIN32APP_POSTMSG!
85#define WIN32APP_POSTPONEDESTROY (WIN32APP_POSTMSG-2)
86#define WIN32APP_DDRAWFULLSCREEN (WIN32APP_POSTMSG-3)
[9864]87#define WIN32APP_CHNGEFRAMECTRLS (WIN32APP_POSTMSG-4)
[9461]88
89#define WIN32MSG_MAGICA 0x12345678
90#define WIN32MSG_MAGICW 0x12345679
91
92typedef struct
93{
94 ULONG wParam;
95 ULONG lParam;
96} POSTMSG_PACKET;
97
[3707]98#endif //__WINUSER32_H__
Note: See TracBrowser for help on using the repository browser.