#include <ExNihilo LauncherDlg.h>
Public Types | |
enum | { IDD = IDD_EXNIHILOLAUNCHER_DIALOG } |
enum | { IDD = IDD_EXNIHILOLAUNCHER_DIALOG } |
Public Methods | |
CExNihiloLauncherDlg (CWnd *pParent=NULL) | |
CExNihiloLauncherDlg (CWnd *pParent=NULL) | |
Protected Methods | |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnInitDialog () |
afx_msg void | OnPaint () |
afx_msg HCURSOR | OnQueryDragIcon () |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnInitDialog () |
afx_msg void | OnPaint () |
afx_msg HCURSOR | OnQueryDragIcon () |
Protected Attributes | |
HICON | m_hIcon |
|
Definition at line 16 of file ExNihilo LauncherDlg.h.
00016 { IDD = IDD_EXNIHILOLAUNCHER_DIALOG }; |
|
Definition at line 16 of file ExNihiloLauncherDlg.h.
00016 { IDD = IDD_EXNIHILOLAUNCHER_DIALOG }; |
|
Definition at line 16 of file ExNihilo LauncherDlg.cpp. References m_hIcon.
00018 : CDialog(CExNihiloLauncherDlg::IDD, pParent) 00019 { 00020 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); |
|
|
|
|
|
Definition at line 22 of file ExNihilo LauncherDlg.cpp. References IDC_COMBORESOLUTION.
00024 { 00025 CDialog::DoDataExchange(pDX); 00026 DDX_Control(pDX, IDC_COMBORESOLUTION, m_CResolution); |
|
|
|
|
|
|
|
Definition at line 77 of file ExNihilo LauncherDlg.cpp. References m_hIcon.
00079 { 00080 if (IsIconic()) 00081 { 00082 CPaintDC dc(this); // device context for painting 00083 00084 SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0); 00085 00086 // Center icon in client rectangle 00087 int cxIcon = GetSystemMetrics(SM_CXICON); 00088 int cyIcon = GetSystemMetrics(SM_CYICON); 00089 CRect rect; 00090 GetClientRect(&rect); 00091 int x = (rect.Width() - cxIcon + 1) / 2; 00092 int y = (rect.Height() - cyIcon + 1) / 2; 00093 00094 // Draw the icon 00095 dc.DrawIcon(x, y, m_hIcon); 00096 } 00097 else 00098 { 00099 CDialog::OnPaint(); 00100 } |
|
|
|
Definition at line 104 of file ExNihilo LauncherDlg.cpp.
00106 {
00107 return static_cast<HCURSOR>(m_hIcon);
|
|
Definition at line 24 of file ExNihiloLauncherDlg.h. Referenced by CExNihiloLauncherDlg(), and OnPaint(). |