ReactOS 0.4.16-dev-109-gf4cb10f
monslctl.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _MONSL_MONINFO
 
struct  _MONSL_MONNMHDR
 
struct  _MONSL_MONNMBUTTONCLICKED
 
struct  _MONSL_MONNMMONITORCHANGING
 

Macros

#define MSLM_EX_ALLOWSELECTNONE   0x1
 
#define MSLM_EX_ALLOWSELECTDISABLED   0x2
 
#define MSLM_EX_HIDENUMBERONSINGLE   0x4
 
#define MSLM_EX_HIDENUMBERS   0x8
 
#define MSLM_EX_SELECTONRIGHTCLICK   0x10
 
#define MSLM_EX_SELECTBYNUMKEY   0x20
 
#define MSLM_EX_SELECTBYARROWKEY   0x40
 
#define MSL_MIF_DISABLED   0x1
 
#define MSLN_MONITORCHANGING   101
 
#define MSLN_MONITORCHANGED   102
 
#define MSLN_RBUTTONUP   103
 
#define MSLM_SETMONITORSINFO   (WM_USER + 0x10)
 
#define MSLM_GETMONITORSINFO   (WM_USER + 0x11)
 
#define MSLM_GETMONITORINFOCOUNT   (WM_USER + 0x12)
 
#define MSLM_HITTEST   (WM_USER + 0x13)
 
#define MSLM_SETCURSEL   (WM_USER + 0x14)
 
#define MSLM_GETCURSEL   (WM_USER + 0x15)
 
#define MSLM_SETMONITORINFO   (WM_USER + 0x16)
 
#define MSLM_GETMONITORINFO   (WM_USER + 0x17)
 
#define MSLM_SETEXSTYLE   (WM_USER + 0x18)
 
#define MSLM_GETEXSTYLE   (WM_USER + 0x19)
 
#define MSLM_GETMONITORRECT   (WM_USER + 0x20)
 

Typedefs

typedef struct _MONSL_MONINFO MONSL_MONINFO
 
typedef struct _MONSL_MONINFOPMONSL_MONINFO
 
typedef struct _MONSL_MONNMHDR MONSL_MONNMHDR
 
typedef struct _MONSL_MONNMHDRPMONSL_MONNMHDR
 
typedef struct _MONSL_MONNMBUTTONCLICKED MONSL_MONNMBUTTONCLICKED
 
typedef struct _MONSL_MONNMBUTTONCLICKEDPMONSL_MONNMBUTTONCLICKED
 
typedef struct _MONSL_MONNMMONITORCHANGING MONSL_MONNMMONITORCHANGING
 
typedef struct _MONSL_MONNMMONITORCHANGINGPMONSL_MONNMMONITORCHANGING
 

Functions

BOOL RegisterMonitorSelectionControl (IN HINSTANCE hInstance)
 
VOID UnregisterMonitorSelectionControl (IN HINSTANCE hInstance)
 

Macro Definition Documentation

◆ MSL_MIF_DISABLED

#define MSL_MIF_DISABLED   0x1

Definition at line 13 of file monslctl.h.

◆ MSLM_EX_ALLOWSELECTDISABLED

#define MSLM_EX_ALLOWSELECTDISABLED   0x2

Definition at line 5 of file monslctl.h.

◆ MSLM_EX_ALLOWSELECTNONE

#define MSLM_EX_ALLOWSELECTNONE   0x1

Definition at line 4 of file monslctl.h.

◆ MSLM_EX_HIDENUMBERONSINGLE

#define MSLM_EX_HIDENUMBERONSINGLE   0x4

Definition at line 6 of file monslctl.h.

◆ MSLM_EX_HIDENUMBERS

#define MSLM_EX_HIDENUMBERS   0x8

Definition at line 7 of file monslctl.h.

◆ MSLM_EX_SELECTBYARROWKEY

#define MSLM_EX_SELECTBYARROWKEY   0x40

Definition at line 10 of file monslctl.h.

◆ MSLM_EX_SELECTBYNUMKEY

#define MSLM_EX_SELECTBYNUMKEY   0x20

Definition at line 9 of file monslctl.h.

◆ MSLM_EX_SELECTONRIGHTCLICK

#define MSLM_EX_SELECTONRIGHTCLICK   0x10

Definition at line 8 of file monslctl.h.

◆ MSLM_GETCURSEL

#define MSLM_GETCURSEL   (WM_USER + 0x15)

Definition at line 139 of file monslctl.h.

◆ MSLM_GETEXSTYLE

#define MSLM_GETEXSTYLE   (WM_USER + 0x19)

Definition at line 198 of file monslctl.h.

◆ MSLM_GETMONITORINFO

#define MSLM_GETMONITORINFO   (WM_USER + 0x17)

Definition at line 161 of file monslctl.h.

◆ MSLM_GETMONITORINFOCOUNT

#define MSLM_GETMONITORINFOCOUNT   (WM_USER + 0x12)

Definition at line 109 of file monslctl.h.

◆ MSLM_GETMONITORRECT

#define MSLM_GETMONITORRECT   (WM_USER + 0x20)

Definition at line 212 of file monslctl.h.

◆ MSLM_GETMONITORSINFO

#define MSLM_GETMONITORSINFO   (WM_USER + 0x11)

Definition at line 100 of file monslctl.h.

◆ MSLM_HITTEST

#define MSLM_HITTEST   (WM_USER + 0x13)

Definition at line 120 of file monslctl.h.

◆ MSLM_SETCURSEL

#define MSLM_SETCURSEL   (WM_USER + 0x14)

Definition at line 130 of file monslctl.h.

◆ MSLM_SETEXSTYLE

#define MSLM_SETEXSTYLE   (WM_USER + 0x18)

Definition at line 189 of file monslctl.h.

◆ MSLM_SETMONITORINFO

#define MSLM_SETMONITORINFO   (WM_USER + 0x16)

Definition at line 150 of file monslctl.h.

◆ MSLM_SETMONITORSINFO

#define MSLM_SETMONITORSINFO   (WM_USER + 0x10)

Definition at line 89 of file monslctl.h.

◆ MSLN_MONITORCHANGED

#define MSLN_MONITORCHANGED   102

Definition at line 66 of file monslctl.h.

◆ MSLN_MONITORCHANGING

#define MSLN_MONITORCHANGING   101

Definition at line 56 of file monslctl.h.

◆ MSLN_RBUTTONUP

#define MSLN_RBUTTONUP   103

Definition at line 78 of file monslctl.h.

Typedef Documentation

◆ MONSL_MONINFO

◆ MONSL_MONNMBUTTONCLICKED

◆ MONSL_MONNMHDR

◆ MONSL_MONNMMONITORCHANGING

◆ PMONSL_MONINFO

◆ PMONSL_MONNMBUTTONCLICKED

◆ PMONSL_MONNMHDR

◆ PMONSL_MONNMMONITORCHANGING

Function Documentation

◆ RegisterMonitorSelectionControl()

BOOL RegisterMonitorSelectionControl ( IN HINSTANCE  hInstance)

Definition at line 1638 of file monslctl.c.

1639{
1640 WNDCLASS wc = {0};
1641
1642 wc.style = CS_DBLCLKS;
1644 wc.cbWndExtra = sizeof(PMONITORSELWND);
1645 wc.hInstance = hInstance;
1647 (LPWSTR)IDC_ARROW);
1648 wc.hbrBackground = (HBRUSH)(COLOR_APPWORKSPACE + 1);
1650
1651 return RegisterClass(&wc) != 0;
1652}
HINSTANCE hInstance
Definition: charmap.c:19
#define NULL
Definition: types.h:112
struct _MONITORSELWND * PMONITORSELWND
static const TCHAR szMonitorSelWndClass[]
Definition: monslctl.c:3
static LRESULT CALLBACK MonitorSelWndProc(IN HWND hwnd, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
Definition: monslctl.c:1168
HBRUSH hbrBackground
Definition: winuser.h:3173
HINSTANCE hInstance
Definition: winuser.h:3170
HCURSOR hCursor
Definition: winuser.h:3172
int cbWndExtra
Definition: winuser.h:3169
UINT style
Definition: winuser.h:3166
LPCSTR lpszClassName
Definition: winuser.h:3175
WNDPROC lpfnWndProc
Definition: winuser.h:3167
#define IDC_ARROW
Definition: winuser.h:687
#define CS_DBLCLKS
Definition: winuser.h:651
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2157
#define COLOR_APPWORKSPACE
Definition: winuser.h:928
#define RegisterClass
Definition: winuser.h:5848
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by SettingsPageCallbackProc().

◆ UnregisterMonitorSelectionControl()

VOID UnregisterMonitorSelectionControl ( IN HINSTANCE  hInstance)

Definition at line 1655 of file monslctl.c.

1656{
1658 hInstance);
1659}
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)

Referenced by SettingsPageCallbackProc().