"About Explorer" Dialog More...
Public Types | |
typedef CtlColorParent < OwnerDrawParent< Dialog > > | super |
Public Member Functions | |
ExplorerAboutDlg (HWND hwnd) | |
~ExplorerAboutDlg () | |
LRESULT | WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam) |
void | Paint () |
Protected Attributes | |
HFONT | _hfont |
"About Explorer" Dialog
Definition at line 864 of file explorer.cpp.
typedef CtlColorParent< OwnerDrawParent<Dialog> > ExplorerAboutDlg::super |
Reimplemented from CtlColorParent< OwnerDrawParent< Dialog > >.
Definition at line 871 of file explorer.cpp.
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); CenterWindow(hwnd); }
ExplorerAboutDlg::~ExplorerAboutDlg | ( | ) | [inline] |
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); }
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: Paint(); break; default: return super::WndProc(nmsg, wparam, lparam); } return 0; }
HFONT ExplorerAboutDlg::_hfont [protected] |
Definition at line 924 of file explorer.cpp.
Referenced by ExplorerAboutDlg(), and ~ExplorerAboutDlg().
ROS Explorer Source Code Documentation
generated on 02.01.2013 by ![]() |