ReactOS  0.4.15-dev-1184-g23e04ae
TaskbarSettingsDlg Struct Reference

"Taskbar Settings" Property Sheet Dialog More...

#include <settings.h>

Inheritance diagram for TaskbarSettingsDlg:
Collaboration diagram for TaskbarSettingsDlg:

Public Types

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

 TaskbarSettingsDlg (HWND hwnd)
 
virtual int Command (int id, int code)
 
virtual int Notify (int id, NMHDR *pnmh)
 
- 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 Attributes

XMLDoc _cfg_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
 
- Protected Member Functions inherited from PropSheetPageDlg
int Command (int id, int code)
 
- Protected Member Functions inherited from Dialog
LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)
 
- 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
 
- 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

"Taskbar Settings" Property Sheet Dialog

Definition at line 65 of file settings.h.

Member Typedef Documentation

◆ super

Definition at line 67 of file settings.h.

Constructor & Destructor Documentation

◆ TaskbarSettingsDlg()

TaskbarSettingsDlg::TaskbarSettingsDlg ( HWND  hwnd)

Definition at line 156 of file settings.cpp.

157  : super(hwnd),
159 {
160  XMLPos options = g_Globals.get_cfg("desktopbar/options");
161 
162  CheckDlgButton(hwnd, ID_SHOW_CLOCK, XMLBool(options, "show-clock", true)? BST_CHECKED: BST_UNCHECKED);
163  CheckDlgButton(hwnd, ID_HIDE_INACTIVE_ICONS, XMLBool(options, "hide-inactive", true)? BST_CHECKED: BST_UNCHECKED);
164 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
#define ID_SHOW_CLOCK
Definition: resource.h:173
PropSheetPageDlg super
Definition: settings.h:67
XMLDoc _cfg
Definition: globals.h:293
ExplorerGlobals g_Globals
Definition: explorer.cpp:52
#define BST_UNCHECKED
Definition: winuser.h:199
XMLPos get_cfg()
Definition: explorer.cpp:119
#define BST_CHECKED
Definition: winuser.h:197
#define ID_HIDE_INACTIVE_ICONS
Definition: resource.h:172

Member Function Documentation

◆ Command()

int TaskbarSettingsDlg::Command ( int  id,
int  code 
)
virtual

Reimplemented from Window.

Definition at line 185 of file settings.cpp.

186 {
187  switch(id) {
190  break;
191 
192  case ID_SHOW_CLOCK: {
193  XMLBoolRef boolRef1(XMLPos(g_Globals.get_cfg("desktopbar/options")), "show-clock", true);
194  boolRef1.toggle();
196  PropSheet_Changed(GetParent(_hwnd), _hwnd);
197  break;}
198 
199  case ID_HIDE_INACTIVE_ICONS: {
200  XMLBoolRef boolRef2(XMLPos(g_Globals.get_cfg("notify-icons/options")), "hide-inactive", true);
201  boolRef2.toggle();
203  PropSheet_Changed(GetParent(_hwnd), _hwnd);
204  break;}
205 
206  default:
207  return 1;
208  }
209 
210  return 0;
211 }
#define WINDOW_CREATOR(WND_CLASS)
Definition: window.h:202
#define ID_SHOW_CLOCK
Definition: resource.h:173
#define ID_CONFIG_NOTIFYAREA
Definition: resource.h:218
#define PM_REFRESH_CONFIG
Definition: explorer.h:70
#define IDD_NOTIFYAREA
Definition: resource.h:103
#define PropSheet_Changed(d, w)
Definition: prsht.h:344
HWND _hwndDesktopBar
Definition: globals.h:287
ExplorerGlobals g_Globals
Definition: explorer.cpp:52
HWND WINAPI GetParent(_In_ HWND)
XMLPos get_cfg()
Definition: explorer.cpp:119
#define SendMessage
Definition: winuser.h:5818
static int DoModal(UINT nid, CREATORFUNC creator, HWND hwndParent=0)
Definition: window.cpp:701
configuration dialog for notification icons
Definition: traynotify.h:198
#define ID_HIDE_INACTIVE_ICONS
Definition: resource.h:172

◆ Notify()

int TaskbarSettingsDlg::Notify ( int  id,
NMHDR pnmh 
)
virtual

Reimplemented from Window.

Definition at line 166 of file settings.cpp.

167 {
168  switch(pnmh->code) {
169  case PSN_APPLY:
171  break;
172 
173  case PSN_RESET:
176  break;
177 
178  default:
179  return super::Notify(id, pnmh);
180  }
181 
182  return 0;
183 }
#define PM_REFRESH_CONFIG
Definition: explorer.h:70
#define PSN_APPLY
Definition: prsht.h:117
UINT code
Definition: winuser.h:3134
virtual int Notify(int id, NMHDR *pnmh)
Definition: window.cpp:290
XMLDoc _cfg
Definition: globals.h:293
HWND _hwndDesktopBar
Definition: globals.h:287
ExplorerGlobals g_Globals
Definition: explorer.cpp:52
#define PSN_RESET
Definition: prsht.h:118
#define SendMessage
Definition: winuser.h:5818

Member Data Documentation

◆ _cfg_org

XMLDoc TaskbarSettingsDlg::_cfg_org
protected

Definition at line 75 of file settings.h.

Referenced by Notify().


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