ReactOS  0.4.15-dev-1200-gc3b3fcd
DesktopSettingsDlg Struct Reference

"Desktopbar Settings" Property Sheet Dialog More...

#include <settings.h>

Inheritance diagram for DesktopSettingsDlg:
Collaboration diagram for DesktopSettingsDlg:

Public Types

typedef OwnerDrawParent< PropSheetPageDlgsuper
 
- Public Types inherited from OwnerDrawParent< PropSheetPageDlg >
typedef PropSheetPageDlg super
 
- Public Types inherited from PropSheetPageDlg
typedef Dialog super
 
- Public Types inherited from Dialog
typedef Window super
 
- Public Types inherited from Window
typedef map< HWND, Window * > WindowMap
 
typedef Window *(* CREATORFUNC) (HWND)
 
typedef Window *(* CREATORFUNC_INFO) (HWND, const void *)
 

Public Member Functions

 DesktopSettingsDlg (HWND hwnd)
 
- Public Member Functions inherited from OwnerDrawParent< PropSheetPageDlg >
 OwnerDrawParent (HWND hwnd)
 
LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)
 
- Public Member Functions inherited from PropSheetPageDlg
 PropSheetPageDlg (HWND)
 
- Public Member Functions inherited from Dialog
 Dialog (HWND)
 
 ~Dialog ()
 
- Public Member Functions inherited from Window
 Window (HWND hwnd)
 
virtual ~Window ()
 
LRESULT SendParent (UINT nmsg, WPARAM wparam=0, LPARAM lparam=0)
 
LRESULT PostParent (UINT nmsg, WPARAM wparam=0, LPARAM lparam=0)
 
 Window (INT cx, INT cy, BOOL fAutoHide=FALSE)
 
virtual ~Window ()
 
virtual LRESULT CALLBACK WindowProcDx (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
void DoAction ()
 

Protected Member Functions

virtual int Command (int id, int code)
 
virtual int Notify (int id, NMHDR *pnmh)
 
- Protected Member Functions inherited from PropSheetPageDlg
int Command (int id, int code)
 
- Protected Member Functions inherited from Window
virtual LRESULT Init (LPCREATESTRUCT pcs)
 
void OnCommand (HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
 
void OnPaint (HWND hwnd)
 
void OnRButtonDown (HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
 
void OnKey (HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags)
 
void OnAppBarCallback (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
BOOL AppBar_Register (HWND hwnd)
 
BOOL AppBar_UnRegister (HWND hwnd)
 
BOOL AppBar_SetAutoHide (HWND hwnd, BOOL fHide)
 
BOOL AppBar_AutoHide (HWND hwnd)
 
BOOL AppBar_NoAutoHide (HWND hwnd)
 
BOOL AppBar_SetSide (HWND hwnd, UINT uSide)
 
void AppBar_SetAlwaysOnTop (HWND hwnd, BOOL fOnTop)
 
void AppBar_Hide (HWND hwnd)
 
void AppBar_UnHide (HWND hwnd)
 
void AppBar_SetAutoHideTimer (HWND hwnd)
 
void AppBar_SetAutoUnhideTimer (HWND hwnd)
 
void AppBar_Size (HWND hwnd)
 
void AppBar_QueryPos (HWND hwnd, LPRECT lprc)
 
void AppBar_QuerySetPos (UINT uEdge, LPRECT lprc, PAPPBARDATA pabd, BOOL fMove)
 
void AppBar_PosChanged (PAPPBARDATA pabd)
 
BOOL OnCreate (HWND hwnd, LPCREATESTRUCT lpCreateStruct)
 
void OnActivate (HWND hwnd, UINT state, HWND hwndActDeact, BOOL fMinimized)
 
void OnWindowPosChanged (HWND hwnd, const LPWINDOWPOS lpwpos)
 
void OnSize (HWND hwnd, UINT state, int cx, int cy)
 
void OnMove (HWND hwnd, int x, int y)
 
void OnNCDestroy (HWND hwnd)
 
void OnTimer (HWND hwnd, UINT id)
 
UINT OnNCHitTest (HWND hwnd, int x, int y)
 
void OnLButtonDown (HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)
 
void OnMouseMove (HWND hwnd, int x, int y, UINT keyFlags)
 
void OnLButtonUp (HWND hwnd, int x, int y, UINT keyFlags)
 
void GetWorkArea (LPRECT prc) const
 

Protected Attributes

ResBitmap _bmp0
 
ResBitmap _bmp1
 
ResBitmap _bmp2
 
ResBitmap _bmp3
 
ResBitmap _bmp4
 
ResBitmap _bmp5
 
ResBitmap _bmp6
 
ResBitmap _bmp7
 
ResBitmap _bmp8
 
ResBitmap _bmp9
 
ResBitmap _bmp10
 
int _alignment_cur
 
int _alignment_tmp
 
int _display_version_org
 
- Protected Attributes inherited from Window
HWND m_hwnd
 
BOOL m_fAutoHide
 
BOOL m_fOnTop
 
BOOL m_fHiding
 
UINT m_uSide
 
LONG m_cxWidth
 
LONG m_cyHeight
 
LONG m_cxSave
 
LONG m_cySave
 
BOOL m_fAppBarRegd
 
BOOL m_fMoving
 
BOOL m_bDragged
 
POINT m_ptDragOn
 
RECT m_rcAppBar
 
RECT m_rcDrag
 

Additional Inherited Members

- Static Public Member Functions inherited from Dialog
static int DoModal (UINT nid, CREATORFUNC creator, HWND hwndParent=0)
 
static int DoModal (UINT nid, CREATORFUNC_INFO creator, const void *info, HWND hwndParent=0)
 
- Static Public Member Functions inherited from Window
static HWND Create (CREATORFUNC creator, DWORD dwExStyle, LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int w, int h, HWND hwndParent=0, HMENU hMenu=0)
 
static HWND Create (CREATORFUNC_INFO creator, const void *info, DWORD dwExStyle, LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int w, int h, HWND hwndParent=0, HMENU hMenu=0)
 
static Windowcreate_mdi_child (const ChildWndInfo &info, const MDICREATESTRUCT &mcs, CREATORFUNC_INFO creator)
 
static LRESULT CALLBACK WindowWndProc (HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
 
static INT_PTR CALLBACK DialogProc (HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
 
static Windowget_window (HWND hwnd)
 get window controller from window handle More...
 
template<typename CLASS >
static CLASS * get_window (HWND hwnd)
 
static void register_pretranslate (HWND hwnd)
 
static void unregister_pretranslate (HWND hwnd)
 
static BOOL pretranslate_msg (LPMSG pmsg)
 
static void register_dialog (HWND hwnd)
 
static void unregister_dialog (HWND hwnd)
 
static BOOL dispatch_dialog_msg (LPMSG pmsg)
 
static int MessageLoop ()
 
static void CancelModes ()
 
static BOOL DoRegisterClass (HINSTANCE hInstance)
 
static HWND DoCreateMainWnd (HINSTANCE hInstance, LPCTSTR pszText, INT cx, INT cy, DWORD style=WS_POPUP|WS_THICKFRAME|WS_CLIPCHILDREN, DWORD exstyle=WS_EX_WINDOWEDGE|WS_EX_TOOLWINDOW|WS_EX_TOPMOST, BOOL fAutoHide=FALSE)
 
static INT DoMainLoop ()
 
static WindowGetAppbarData (HWND hwnd)
 
static LRESULT CALLBACK WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static DWORD WINAPI ActionThreadFunc (LPVOID args)
 
- Public Attributes inherited from Window
IAccessible IAccessible_iface
 
IOleWindow IOleWindow_iface
 
IEnumVARIANT IEnumVARIANT_iface
 
LONG ref
 
- Static Protected Member Functions inherited from PropSheetPageDlg
static INT_PTR CALLBACK DialogProc (HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
 
- Static Protected Member Functions inherited from Window
static Windowcreate_controller (HWND hwnd)
 create controller for a new window More...
 
static StaticWindowDataGetStaticWindowData ()
 
static LRESULT CALLBACK MDICBTHookProc (int code, WPARAM wparam, LPARAM lparam)
 
static LRESULT CALLBACK PropSheetCBTHookProc (int code, WPARAM wparam, LPARAM lparam)
 
- Static Protected Attributes inherited from Window
static WindowMap s_wnd_map
 
static const voids_new_info = NULL
 
static CREATORFUNC s_window_creator = NULL
 
static HHOOK s_hcbtHook = 0
 
static WindowSet s_pretranslate_windows
 
static WindowSet s_dialogs
 

Detailed Description

"Desktopbar Settings" Property Sheet Dialog

Definition at line 35 of file settings.h.

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ DesktopSettingsDlg()

DesktopSettingsDlg::DesktopSettingsDlg ( HWND  hwnd)

Definition at line 64 of file settings.cpp.

65  : super(hwnd),
77 {
89 
92 
95 }
ResBitmap _bmp5
Definition: settings.h:47
#define IDC_ICON_ALIGN_7
Definition: resource.h:154
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
#define IDB_ICON_ALIGN_2
Definition: resource.h:102
HWND _hwndShellView
Definition: globals.h:288
#define PM_DISPLAY_VERSION
Definition: desktop.h:31
#define IDC_ICON_ALIGN_0
Definition: resource.h:143
#define IDB_ICON_ALIGN_6
Definition: resource.h:108
ResBitmap _bmp4
Definition: settings.h:46
#define IDC_ICON_ALIGN_5
Definition: resource.h:150
#define IDC_ICON_ALIGN_9
Definition: resource.h:158
ResBitmap _bmp0
Definition: settings.h:42
#define IDB_ICON_ALIGN_10
Definition: resource.h:113
ResBitmap _bmp7
Definition: settings.h:49
#define IDB_ICON_ALIGN_7
Definition: resource.h:109
#define IDB_ICON_ALIGN_8
Definition: resource.h:110
ResBitmap _bmp9
Definition: settings.h:51
#define IDB_ICON_ALIGN_3
Definition: resource.h:104
ResBitmap _bmp3
Definition: settings.h:45
ResBitmap _bmp8
Definition: settings.h:50
OwnerDrawParent< PropSheetPageDlg > super
Definition: settings.h:37
#define MAKELONG(a, b)
Definition: typedefs.h:249
#define IDC_ICON_ALIGN_3
Definition: resource.h:147
ResBitmap _bmp6
Definition: settings.h:48
#define IDC_ICON_ALIGN_8
Definition: resource.h:156
#define IDC_ICON_ALIGN_1
Definition: resource.h:144
#define IDC_ICON_ALIGN_2
Definition: resource.h:146
#define IDB_ICON_ALIGN_1
Definition: resource.h:101
#define PM_GET_ICON_ALGORITHM
Definition: desktop.h:30
#define IDB_ICON_ALIGN_5
Definition: resource.h:107
int _display_version_org
Definition: settings.h:57
ResBitmap _bmp2
Definition: settings.h:44
ExplorerGlobals g_Globals
Definition: explorer.cpp:52
#define BST_UNCHECKED
Definition: winuser.h:199
ResBitmap _bmp10
Definition: settings.h:52
#define IDC_ICON_ALIGN_6
Definition: resource.h:152
ResBitmap _bmp1
Definition: settings.h:43
#define IDB_ICON_ALIGN_0
Definition: resource.h:99
#define IDB_ICON_ALIGN_9
Definition: resource.h:111
#define IDB_ICON_ALIGN_4
Definition: resource.h:106
#define BST_CHECKED
Definition: winuser.h:197
#define IDC_ICON_ALIGN_4
Definition: resource.h:148
#define SendMessage
Definition: winuser.h:5818
#define ID_DESKTOP_VERSION
Definition: resource.h:174
#define IDC_ICON_ALIGN_10
Definition: resource.h:160

Member Function Documentation

◆ Command()

int DesktopSettingsDlg::Command ( int  id,
int  code 
)
protectedvirtual

Reimplemented from Window.

Definition at line 126 of file settings.cpp.

127 {
128  if (id>=IDC_ICON_ALIGN_0 && id<=IDC_ICON_ALIGN_10) {
129  int alignment = id - IDC_ICON_ALIGN_0;
130 
131  if (alignment != _alignment_tmp) {
132  _alignment_tmp = alignment;
133 
134  PropSheet_Changed(GetParent(_hwnd), _hwnd);
135 
137  }
138 
139  return 0;
140  }
141 
142  switch(id) {
143  case ID_DESKTOP_VERSION:
144  SendMessage(g_Globals._hwndShellView, PM_DISPLAY_VERSION, 0, MAKELONG(0,1)); // toggle version display flag
145  PropSheet_Changed(GetParent(_hwnd), _hwnd);
146  break;
147 
148  default:
149  return 1;
150  }
151 
152  return 0;
153 }
HWND _hwndShellView
Definition: globals.h:288
#define PM_DISPLAY_VERSION
Definition: desktop.h:31
#define IDC_ICON_ALIGN_0
Definition: resource.h:143
#define MAKELONG(a, b)
Definition: typedefs.h:249
#define PropSheet_Changed(d, w)
Definition: prsht.h:344
#define PM_SET_ICON_ALGORITHM
Definition: desktop.h:29
ExplorerGlobals g_Globals
Definition: explorer.cpp:52
HWND WINAPI GetParent(_In_ HWND)
#define SendMessage
Definition: winuser.h:5818
#define ID_DESKTOP_VERSION
Definition: resource.h:174
#define IDC_ICON_ALIGN_10
Definition: resource.h:160

◆ Notify()

int DesktopSettingsDlg::Notify ( int  id,
NMHDR pnmh 
)
protectedvirtual

Reimplemented from Window.

Definition at line 101 of file settings.cpp.

102 {
103  switch(pnmh->code) {
106  break;
107 
108  case PSN_APPLY:
111  break;
112 
113  case PSN_RESET:
117  break;
118 
119  default:
120  return super::Notify(id, pnmh);
121  }
122 
123  return 0;
124 }
HWND _hwndShellView
Definition: globals.h:288
#define PM_DISPLAY_VERSION
Definition: desktop.h:31
#define IDC_ICON_ALIGN_0
Definition: resource.h:143
#define PSN_APPLY
Definition: prsht.h:117
#define SetWindowLongPtr
Definition: treelist.c:70
#define DWLP_MSGRESULT
Definition: winuser.h:864
UINT code
Definition: winuser.h:3134
#define MAKELONG(a, b)
Definition: typedefs.h:249
LONG_PTR LPARAM
Definition: windef.h:208
virtual int Notify(int id, NMHDR *pnmh)
Definition: window.cpp:290
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define PM_SET_ICON_ALGORITHM
Definition: desktop.h:29
int _display_version_org
Definition: settings.h:57
ExplorerGlobals g_Globals
Definition: explorer.cpp:52
#define PSN_RESET
Definition: prsht.h:118
#define SendMessage
Definition: winuser.h:5818
#define PSN_QUERYINITIALFOCUS
Definition: settings.cpp:98

Member Data Documentation

◆ _alignment_cur

int DesktopSettingsDlg::_alignment_cur
protected

Definition at line 54 of file settings.h.

Referenced by DesktopSettingsDlg(), and Notify().

◆ _alignment_tmp

int DesktopSettingsDlg::_alignment_tmp
protected

Definition at line 55 of file settings.h.

Referenced by Command(), DesktopSettingsDlg(), and Notify().

◆ _bmp0

ResBitmap DesktopSettingsDlg::_bmp0
protected

Definition at line 42 of file settings.h.

Referenced by DesktopSettingsDlg().

◆ _bmp1

ResBitmap DesktopSettingsDlg::_bmp1
protected

Definition at line 43 of file settings.h.

Referenced by DesktopSettingsDlg().

◆ _bmp10

ResBitmap DesktopSettingsDlg::_bmp10
protected

Definition at line 52 of file settings.h.

Referenced by DesktopSettingsDlg().

◆ _bmp2

ResBitmap DesktopSettingsDlg::_bmp2
protected

Definition at line 44 of file settings.h.

Referenced by DesktopSettingsDlg().

◆ _bmp3

ResBitmap DesktopSettingsDlg::_bmp3
protected

Definition at line 45 of file settings.h.

Referenced by DesktopSettingsDlg().

◆ _bmp4

ResBitmap DesktopSettingsDlg::_bmp4
protected

Definition at line 46 of file settings.h.

Referenced by DesktopSettingsDlg().

◆ _bmp5

ResBitmap DesktopSettingsDlg::_bmp5
protected

Definition at line 47 of file settings.h.

Referenced by DesktopSettingsDlg().

◆ _bmp6

ResBitmap DesktopSettingsDlg::_bmp6
protected

Definition at line 48 of file settings.h.

Referenced by DesktopSettingsDlg().

◆ _bmp7

ResBitmap DesktopSettingsDlg::_bmp7
protected

Definition at line 49 of file settings.h.

Referenced by DesktopSettingsDlg().

◆ _bmp8

ResBitmap DesktopSettingsDlg::_bmp8
protected

Definition at line 50 of file settings.h.

Referenced by DesktopSettingsDlg().

◆ _bmp9

ResBitmap DesktopSettingsDlg::_bmp9
protected

Definition at line 51 of file settings.h.

Referenced by DesktopSettingsDlg().

◆ _display_version_org

int DesktopSettingsDlg::_display_version_org
protected

Definition at line 57 of file settings.h.

Referenced by DesktopSettingsDlg(), and Notify().


The documentation for this struct was generated from the following files: