Public Types | Public Member Functions | Protected Attributes

ExplorerAboutDlg Struct Reference

"About Explorer" Dialog More...

Inheritance diagram for ExplorerAboutDlg:
Inheritance graph
Collaboration diagram for ExplorerAboutDlg:
Collaboration graph

List of all members.

Public Types

typedef CtlColorParent
< OwnerDrawParent< Dialog > > 

Public Member Functions

 ExplorerAboutDlg (HWND hwnd)
 ~ExplorerAboutDlg ()
LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)
void Paint ()

Protected Attributes

HFONT _hfont

Detailed Description

"About Explorer" Dialog

Definition at line 864 of file explorer.cpp.

Member Typedef Documentation

Reimplemented from CtlColorParent< OwnerDrawParent< Dialog > >.

Definition at line 871 of file explorer.cpp.

Constructor & Destructor Documentation

ExplorerAboutDlg::ExplorerAboutDlg ( HWND  hwnd ) [inline]

Definition at line 873 of file explorer.cpp.

References _hfont, CenterWindow(), get_windows_version_str(), HWND, IDC_ROS_EXPLORER, IDC_VERSION_TXT, IDC_WIN_VERSION, IDC_WWW, IDI_REACTOS, IDS_EXPLORER_VERSION_STR, IDS_VERSION_STR, SetWindowIcon(), and TEXT.

     :  super(hwnd)
        SetWindowIcon(hwnd, IDI_REACTOS);

        new FlatButton(hwnd, IDOK);

        _hfont = CreateFont(20, 0, 0, 0, FW_BOLD, TRUE, 0, 0, 0, 0, 0, 0, 0, TEXT("Sans Serif"));
        new ColorStatic(hwnd, IDC_ROS_EXPLORER, RGB(32,32,128), 0, _hfont);

        new HyperlinkCtrl(hwnd, IDC_WWW);

        FmtString ver_txt(ResString(IDS_EXPLORER_VERSION_STR), (LPCTSTR)ResString(IDS_VERSION_STR));
        SetWindowText(GetDlgItem(hwnd, IDC_VERSION_TXT), ver_txt);

        HWND hwnd_winver = GetDlgItem(hwnd, IDC_WIN_VERSION);
        SetWindowText(hwnd_winver, get_windows_version_str());
        SetWindowFont(hwnd_winver, GetStockFont(DEFAULT_GUI_FONT), FALSE);


Here is the call graph for this function:

ExplorerAboutDlg::~ExplorerAboutDlg (  ) [inline]

Definition at line 895 of file explorer.cpp.

References _hfont.


Member Function Documentation

void ExplorerAboutDlg::Paint (  ) [inline]

Definition at line 914 of file explorer.cpp.

References ExplorerGlobals::_hInstance, WindowHandle::_hwnd, and IDI_REACTOS_BIG.

Referenced by WndProc().

        PaintCanvas canvas(_hwnd);

        HICON hicon = (HICON) LoadImage(g_Globals._hInstance, MAKEINTRESOURCE(IDI_REACTOS_BIG), IMAGE_ICON, 0, 0, LR_SHARED);

        DrawIconEx(canvas, 20, 10, hicon, 0, 0, 0, 0, DI_NORMAL);

Here is the caller graph for this function:

LRESULT ExplorerAboutDlg::WndProc ( UINT  nmsg,
WPARAM  wparam,
LPARAM  lparam 
) [inline, virtual]

Reimplemented from CtlColorParent< OwnerDrawParent< Dialog > >.

Definition at line 900 of file explorer.cpp.

References Paint(), and CtlColorParent< OwnerDrawParent< Dialog > >::WndProc().

        switch(nmsg) {
          case WM_PAINT:

            return super::WndProc(nmsg, wparam, lparam);

        return 0;

Here is the call graph for this function:

Member Data Documentation

HFONT ExplorerAboutDlg::_hfont [protected]

Definition at line 924 of file explorer.cpp.

Referenced by ExplorerAboutDlg(), and ~ExplorerAboutDlg().

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

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage