Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

DesktopSettingsDlg Struct Reference

"Desktopbar Settings" Property Sheet Dialog More...

#include <settings.h>

Inheritance diagram for DesktopSettingsDlg:
Inheritance graph
[legend]
Collaboration diagram for DesktopSettingsDlg:
Collaboration graph
[legend]

List of all members.

Public Types

typedef OwnerDrawParent
< PropSheetPageDlg
super

Public Member Functions

 DesktopSettingsDlg (HWND hwnd)

Protected Member Functions

virtual int Command (int id, int code)
virtual int Notify (int id, NMHDR *pnmh)

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

Detailed Description

"Desktopbar Settings" Property Sheet Dialog

Definition at line 35 of file settings.h.


Member Typedef Documentation

Reimplemented from OwnerDrawParent< PropSheetPageDlg >.

Definition at line 37 of file settings.h.


Constructor & Destructor Documentation

DesktopSettingsDlg::DesktopSettingsDlg ( HWND  hwnd )

Definition at line 66 of file settings.cpp.

References _alignment_cur, _alignment_tmp, _bmp0, _bmp1, _bmp10, _bmp2, _bmp3, _bmp4, _bmp5, _bmp6, _bmp7, _bmp8, _bmp9, _display_version_org, WindowHandle::_hwnd, ExplorerGlobals::_hwndShellView, g_Globals, ID_DESKTOP_VERSION, IDC_ICON_ALIGN_0, IDC_ICON_ALIGN_1, IDC_ICON_ALIGN_10, IDC_ICON_ALIGN_2, IDC_ICON_ALIGN_3, IDC_ICON_ALIGN_4, IDC_ICON_ALIGN_5, IDC_ICON_ALIGN_6, IDC_ICON_ALIGN_7, IDC_ICON_ALIGN_8, IDC_ICON_ALIGN_9, PM_DISPLAY_VERSION, and PM_GET_ICON_ALGORITHM.


Member Function Documentation

int DesktopSettingsDlg::Command ( int  id,
int  code 
) [protected, virtual]

Reimplemented from PropSheetPageDlg.

Definition at line 128 of file settings.cpp.

References _alignment_tmp, WindowHandle::_hwnd, ExplorerGlobals::_hwndShellView, g_Globals, ID_DESKTOP_VERSION, IDC_ICON_ALIGN_0, IDC_ICON_ALIGN_10, PM_DISPLAY_VERSION, and PM_SET_ICON_ALGORITHM.

{
    if (id>=IDC_ICON_ALIGN_0 && id<=IDC_ICON_ALIGN_10) {
        int alignment = id - IDC_ICON_ALIGN_0;

        if (alignment != _alignment_tmp) {
            _alignment_tmp = alignment;

            PropSheet_Changed(GetParent(_hwnd), _hwnd);

            SendMessage(g_Globals._hwndShellView, PM_SET_ICON_ALGORITHM, alignment, 0);
        }

        return 0;
    }

    switch(id) {
      case ID_DESKTOP_VERSION:
        SendMessage(g_Globals._hwndShellView, PM_DISPLAY_VERSION, 0, MAKELONG(0,1));    // toggle version display flag
        PropSheet_Changed(GetParent(_hwnd), _hwnd);
        break;

      default:
        return 1;
    }

    return 0;
}
int DesktopSettingsDlg::Notify ( int  id,
NMHDR *  pnmh 
) [protected, virtual]

Reimplemented from Window.

Definition at line 103 of file settings.cpp.

References _alignment_cur, _alignment_tmp, _display_version_org, WindowHandle::_hwnd, ExplorerGlobals::_hwndShellView, g_Globals, IDC_ICON_ALIGN_0, Window::Notify(), PM_DISPLAY_VERSION, PM_SET_ICON_ALGORITHM, and PSN_QUERYINITIALFOCUS.

{
    switch(pnmh->code) {
      case PSN_QUERYINITIALFOCUS:
        SetWindowLong(_hwnd, DWL_MSGRESULT, (LPARAM)GetDlgItem(_hwnd, IDC_ICON_ALIGN_0+_alignment_cur));
        break;

      case PSN_APPLY:
        _alignment_cur = _alignment_tmp;
        _display_version_org = SendMessage(g_Globals._hwndShellView, PM_DISPLAY_VERSION, 0, MAKELONG(0,0));
        break;

      case PSN_RESET:
        if (_alignment_tmp != _alignment_cur)
            SendMessage(g_Globals._hwndShellView, PM_SET_ICON_ALGORITHM, _alignment_cur, 0);
        SendMessage(g_Globals._hwndShellView, PM_DISPLAY_VERSION, _display_version_org, MAKELONG(1,0));
        break;

      default:
        return super::Notify(id, pnmh);
    }

    return 0;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 54 of file settings.h.

Referenced by DesktopSettingsDlg(), and Notify().

Definition at line 55 of file settings.h.

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

Definition at line 42 of file settings.h.

Referenced by DesktopSettingsDlg().

Definition at line 43 of file settings.h.

Referenced by DesktopSettingsDlg().

Definition at line 52 of file settings.h.

Referenced by DesktopSettingsDlg().

Definition at line 44 of file settings.h.

Referenced by DesktopSettingsDlg().

Definition at line 45 of file settings.h.

Referenced by DesktopSettingsDlg().

Definition at line 46 of file settings.h.

Referenced by DesktopSettingsDlg().

Definition at line 47 of file settings.h.

Referenced by DesktopSettingsDlg().

Definition at line 48 of file settings.h.

Referenced by DesktopSettingsDlg().

Definition at line 49 of file settings.h.

Referenced by DesktopSettingsDlg().

Definition at line 50 of file settings.h.

Referenced by DesktopSettingsDlg().

Definition at line 51 of file settings.h.

Referenced by DesktopSettingsDlg().

Definition at line 57 of file settings.h.

Referenced by DesktopSettingsDlg(), and Notify().


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

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage