ReactOS  0.4.14-dev-845-g8381e29
ExplorerAboutDlg Struct Reference

"About Explorer" Dialog More...

Inheritance diagram for ExplorerAboutDlg:
Collaboration diagram for ExplorerAboutDlg:

Public Types

typedef CtlColorParent< OwnerDrawParent< Dialog > > super
 
- Public Types inherited from CtlColorParent< OwnerDrawParent< Dialog > >
typedef OwnerDrawParent< Dialogsuper
 
- Public Types inherited from OwnerDrawParent< Dialog >
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

 ExplorerAboutDlg (HWND hwnd)
 
 ~ExplorerAboutDlg ()
 
LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)
 
void Paint ()
 
- Public Member Functions inherited from CtlColorParent< OwnerDrawParent< Dialog > >
 CtlColorParent (HWND hwnd)
 
LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)
 
- Public Member Functions inherited from OwnerDrawParent< Dialog >
 OwnerDrawParent (HWND hwnd)
 
LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)
 
- 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)
 

Protected Attributes

HFONT _hfont
 

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 ()
 
- Public Attributes inherited from Window
IAccessible IAccessible_iface
 
IOleWindow IOleWindow_iface
 
IEnumVARIANT IEnumVARIANT_iface
 
LONG ref
 
- Protected Member Functions inherited from Dialog
int Command (int id, int code)
 
- Protected Member Functions inherited from Window
virtual LRESULT Init (LPCREATESTRUCT pcs)
 
virtual int Notify (int id, NMHDR *pnmh)
 
- 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

"About Explorer" Dialog

Definition at line 871 of file explorer.cpp.

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ ExplorerAboutDlg()

ExplorerAboutDlg::ExplorerAboutDlg ( HWND  hwnd)
inline

Definition at line 880 of file explorer.cpp.

881  : super(hwnd)
882  {
884 
885  new FlatButton(hwnd, IDOK);
886 
887  _hfont = CreateFont(20, 0, 0, 0, FW_BOLD, TRUE, 0, 0, 0, 0, 0, 0, 0, TEXT("Sans Serif"));
888  new ColorStatic(hwnd, IDC_ROS_EXPLORER, RGB(32,32,128), 0, _hfont);
889 
890  new HyperlinkCtrl(hwnd, IDC_WWW);
891 
894 
895  HWND hwnd_winver = GetDlgItem(hwnd, IDC_WIN_VERSION);
896  SetWindowText(hwnd_winver, get_windows_version_str());
898 
900  }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define TRUE
Definition: types.h:120
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
#define IDOK
Definition: winuser.h:824
#define IDC_VERSION_TXT
Definition: resource.h:177
#define GetStockFont(i)
Definition: windowsx.h:283
#define SetWindowFont(hwnd, hfont, fRedraw)
Definition: windowsx.h:508
String get_windows_version_str()
Definition: utility.cpp:248
#define IDS_VERSION_STR
Definition: resource.h:185
#define IDC_ROS_EXPLORER
Definition: resource.h:142
#define IDC_WIN_VERSION
Definition: resource.h:178
#define CreateFont
Definition: wingdi.h:4442
#define IDS_EXPLORER_VERSION_STR
Definition: resource.h:186
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define IDC_WWW
Definition: resource.h:161
Hyperlink Controls.
Definition: window.h:816
#define RGB(r, g, b)
Definition: wingdi.h:2939
#define DEFAULT_GUI_FONT
Definition: wingdi.h:908
#define IDI_REACTOS
Definition: osk_res.h:24
CtlColorParent< OwnerDrawParent< Dialog > > super
Definition: explorer.cpp:878
static VOID CenterWindow(HWND hWnd)
Definition: reactos.c:47
void SetWindowIcon(HWND hwnd, UINT nid)
set big and small icons out of the resources for a window
Definition: explorer.cpp:689
#define TEXT(s)
Definition: k32.h:26
#define FW_BOLD
Definition: wingdi.h:377
#define SetWindowText
Definition: winuser.h:5832
convenient loading of string resources
Definition: globals.h:303

◆ ~ExplorerAboutDlg()

ExplorerAboutDlg::~ExplorerAboutDlg ( )
inline

Definition at line 902 of file explorer.cpp.

903  {
905  }
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)

Member Function Documentation

◆ Paint()

void ExplorerAboutDlg::Paint ( )
inline

Definition at line 921 of file explorer.cpp.

922  {
923  PaintCanvas canvas(_hwnd);
924 
926 
927  DrawIconEx(canvas, 20, 10, hicon, 0, 0, 0, 0, DI_NORMAL);
928  }
#define MAKEINTRESOURCE
Definition: winuser.h:591
static HICON
Definition: imagelist.c:84
#define LR_SHARED
Definition: winuser.h:1090
#define IMAGE_ICON
Definition: winuser.h:212
#define IDI_REACTOS_BIG
Definition: resource.h:82
BOOL WINAPI DrawIconEx(_In_ HDC, _In_ int, _In_ int, _In_ HICON, _In_ int, _In_ int, _In_ UINT, _In_opt_ HBRUSH, _In_ UINT)
Definition: cursoricon.c:1997
HINSTANCE _hInstance
Definition: globals.h:270
#define DI_NORMAL
Definition: wingdi.h:72
ExplorerGlobals g_Globals
Definition: explorer.cpp:52
#define LoadImage
Definition: winuser.h:5790

Referenced by WndProc().

◆ WndProc()

LRESULT ExplorerAboutDlg::WndProc ( UINT  nmsg,
WPARAM  wparam,
LPARAM  lparam 
)
inlinevirtual

Reimplemented from Window.

Definition at line 907 of file explorer.cpp.

908  {
909  switch(nmsg) {
910  case WM_PAINT:
911  Paint();
912  break;
913 
914  default:
915  return super::WndProc(nmsg, wparam, lparam);
916  }
917 
918  return 0;
919  }
static UINT WPARAM LPARAM lparam
Definition: combo.c:716
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
Definition: window.h:602
#define WM_PAINT
Definition: winuser.h:1602
static UINT WPARAM wparam
Definition: combo.c:716

Member Data Documentation

◆ _hfont

HFONT ExplorerAboutDlg::_hfont
protected

Definition at line 931 of file explorer.cpp.

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


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