ReactOS 0.4.15-dev-7924-g5949c20
preview.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IDX_DESKTOP   0
 
#define IDX_INACTIVE_CAPTION   1
 
#define IDX_INACTIVE_BORDER   2
 
#define IDX_ACTIVE_CAPTION   3
 
#define IDX_ACTIVE_BORDER   4
 
#define IDX_MENU   5
 
#define IDX_SELECTION   6
 
#define IDX_WINDOW   7
 
#define IDX_SCROLLBAR   8
 
#define IDX_3D_OBJECTS   9
 
#define IDX_CAPTION_BUTTON   12
 
#define IDX_DIALOG   14
 
#define IDX_APPSPACE   16
 
#define IDX_QUICKINFO   20
 
#define PVM_SETSIZE   (WM_USER+1)
 
#define PVM_GETSIZE   (WM_USER+2)
 
#define PVM_SETFONT   (WM_USER+3)
 
#define PVM_GETFONT   (WM_USER+4)
 
#define PVM_SETCOLOR   (WM_USER+5)
 
#define PVM_GETCOLOR   (WM_USER+6)
 
#define PVM_SET_HDC_PREVIEW   (WM_USER+7)
 
#define PVM_UPDATETHEME   (WM_USER+8)
 

Functions

BOOL RegisterPreviewControl (IN HINSTANCE hInstance)
 
VOID UnregisterPreviewControl (IN HINSTANCE hInstance)
 

Macro Definition Documentation

◆ IDX_3D_OBJECTS

#define IDX_3D_OBJECTS   9

Definition at line 20 of file preview.h.

◆ IDX_ACTIVE_BORDER

#define IDX_ACTIVE_BORDER   4

Definition at line 15 of file preview.h.

◆ IDX_ACTIVE_CAPTION

#define IDX_ACTIVE_CAPTION   3

Definition at line 14 of file preview.h.

◆ IDX_APPSPACE

#define IDX_APPSPACE   16

Definition at line 23 of file preview.h.

◆ IDX_CAPTION_BUTTON

#define IDX_CAPTION_BUTTON   12

Definition at line 21 of file preview.h.

◆ IDX_DESKTOP

#define IDX_DESKTOP   0

Definition at line 11 of file preview.h.

◆ IDX_DIALOG

#define IDX_DIALOG   14

Definition at line 22 of file preview.h.

◆ IDX_INACTIVE_BORDER

#define IDX_INACTIVE_BORDER   2

Definition at line 13 of file preview.h.

◆ IDX_INACTIVE_CAPTION

#define IDX_INACTIVE_CAPTION   1

Definition at line 12 of file preview.h.

◆ IDX_MENU

#define IDX_MENU   5

Definition at line 16 of file preview.h.

◆ IDX_QUICKINFO

#define IDX_QUICKINFO   20

Definition at line 24 of file preview.h.

◆ IDX_SCROLLBAR

#define IDX_SCROLLBAR   8

Definition at line 19 of file preview.h.

◆ IDX_SELECTION

#define IDX_SELECTION   6

Definition at line 17 of file preview.h.

◆ IDX_WINDOW

#define IDX_WINDOW   7

Definition at line 18 of file preview.h.

◆ PVM_GETCOLOR

#define PVM_GETCOLOR   (WM_USER+6)

Definition at line 31 of file preview.h.

◆ PVM_GETFONT

#define PVM_GETFONT   (WM_USER+4)

Definition at line 29 of file preview.h.

◆ PVM_GETSIZE

#define PVM_GETSIZE   (WM_USER+2)

Definition at line 27 of file preview.h.

◆ PVM_SET_HDC_PREVIEW

#define PVM_SET_HDC_PREVIEW   (WM_USER+7)

Definition at line 32 of file preview.h.

◆ PVM_SETCOLOR

#define PVM_SETCOLOR   (WM_USER+5)

Definition at line 30 of file preview.h.

◆ PVM_SETFONT

#define PVM_SETFONT   (WM_USER+3)

Definition at line 28 of file preview.h.

◆ PVM_SETSIZE

#define PVM_SETSIZE   (WM_USER+1)

Definition at line 26 of file preview.h.

◆ PVM_UPDATETHEME

#define PVM_UPDATETHEME   (WM_USER+8)

Definition at line 33 of file preview.h.

Function Documentation

◆ RegisterPreviewControl()

BOOL RegisterPreviewControl ( IN HINSTANCE  hInstance)

Definition at line 539 of file preview.c.

540{
541 WNDCLASSEX wc = {0};
542
543 wc.cbSize = sizeof(wc);
545 wc.hInstance = hInstance;
547 wc.hbrBackground = (HBRUSH)NULL;
549
550 return RegisterClassEx(&wc) != (ATOM)0;
551}
HINSTANCE hInstance
Definition: charmap.c:19
WORD ATOM
Definition: dimm.idl:113
#define NULL
Definition: types.h:112
static const TCHAR szPreviewWndClass[]
Definition: preview.c:11
static LRESULT CALLBACK PreviewWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: preview.c:418
HINSTANCE hInstance
Definition: winuser.h:3206
HCURSOR hCursor
Definition: winuser.h:3208
UINT cbSize
Definition: winuser.h:3201
WNDPROC lpfnWndProc
Definition: winuser.h:3203
LPCSTR lpszClassName
Definition: winuser.h:3211
HBRUSH hbrBackground
Definition: winuser.h:3209
#define IDC_ARROW
Definition: winuser.h:687
#define RegisterClassEx
Definition: winuser.h:5837
#define LoadCursor
Definition: winuser.h:5812

Referenced by DllMain().

◆ UnregisterPreviewControl()

VOID UnregisterPreviewControl ( IN HINSTANCE  hInstance)

Definition at line 555 of file preview.c.

556{
558}
#define UnregisterClass
Definition: winuser.h:5861

Referenced by DllMain().