Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

CExNihiloLauncherDlg Class Reference

#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


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 16 of file ExNihilo LauncherDlg.h.

00016 { IDD = IDD_EXNIHILOLAUNCHER_DIALOG };

anonymous enum
 

Enumeration values:
IDD 

Definition at line 16 of file ExNihiloLauncherDlg.h.

00016 { IDD = IDD_EXNIHILOLAUNCHER_DIALOG };


Constructor & Destructor Documentation

CExNihiloLauncherDlg CWnd *    pParent = NULL
 

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);

CExNihiloLauncherDlg CWnd *    pParent = NULL
 


Member Function Documentation

virtual void DoDataExchange CDataExchange *    pDX [protected, virtual]
 

void DoDataExchange CDataExchange *    pDX [protected, virtual]
 

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);

virtual BOOL OnInitDialog   [protected, virtual]
 

virtual BOOL OnInitDialog   [protected, virtual]
 

afx_msg void OnPaint   [protected]
 

void OnPaint   [protected]
 

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         }

afx_msg HCURSOR OnQueryDragIcon   [protected]
 

HCURSOR OnQueryDragIcon   [protected]
 

Definition at line 104 of file ExNihilo LauncherDlg.cpp.

00106 {
00107         return static_cast<HCURSOR>(m_hIcon);


Field Documentation

HICON m_hIcon [protected]
 

Definition at line 24 of file ExNihiloLauncherDlg.h.

Referenced by CExNihiloLauncherDlg(), and OnPaint().


The documentation for this class was generated from the following files:
Generated on Tue Dec 10 18:20:18 2002 for ExNihilo by doxygen1.3-rc1