MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / OnInitDialog

Method OnInitDialog

Ext2Mgr/Ext2MgrDlg.cpp:97–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97BOOL CAboutDlg::OnInitDialog()
98{
99 CString s;
100 CHAR Version[0x20];
101 CHAR Date[0x20];
102 CHAR Time[0x20];
103
104 CDialog::OnInitDialog();
105
106 m_hBitmap = (HBITMAP)::LoadImage(GetModuleHandle(NULL),
107 MAKEINTRESOURCE(IDB_ABOUT_SMALL),
108 IMAGE_BITMAP, 0, 0, 0);
109
110 if (m_hBitmap) {
111 m_hMemDC = ::CreateCompatibleDC(this->GetDC()->m_hDC);
112 m_hOldBmp = (HBITMAP)::SelectObject(m_hMemDC, m_hBitmap);
113 }
114
115 INT rc = Ext2QueryDrvVersion(Version, Date, Time);
116
117 if (rc < 0) {
118 s.Format("Ext2Fsd: NOT started !\0");
119 } else if (rc > 0) {
120 s.Format("Ext2Fsd: %s (%s)\0", Version, Date);
121 } else {
122 s.Format("Ext2Fsd: < 0.42 (Dec 2007)\0");
123 }
124 SET_TEXT(IDC_DRIVER, s);
125 s = "Ext2Mgr: 3.00 (";
126 s += __DATE__;
127 s += ")\0";
128 SET_TEXT(IDC_PROGRAM, s);
129
130 // Set the target URL
131 // m_lMail.SetLinkUrl("mailto:Matt Wu<matt@ext2fsd.com>?subject=Ext2Fsd Support");
132 // Enable showing the Tooltip
133 // m_lMail.ActiveToolTip(TRUE);
134 // Set the Tooltiptext
135 // m_lMail.SetTootTipText("Write a mail to Ext2Fsd group.");
136
137 return TRUE; // return TRUE unless you set the focus to a control
138 // EXCEPTION: OCX Property Pages should return FALSE
139}
140
141void CAboutDlg::OnPaint()
142{

Callers

nothing calls this directly

Calls 15

Ext2QueryDrvVersionFunction · 0.85
Ext2QuerySysConfigFunction · 0.85
Ext2LoadDisksFunction · 0.85
Ext2LoadCdromsFunction · 0.85
Ext2LoadVolumesFunction · 0.85
Ext2LoadRemovableVolumesFunction · 0.85
Ext2LoadDrvLettersFunction · 0.85
Ext2LoadCdromDrvLettersFunction · 0.85
Ext2ProcessExt2VolumesFunction · 0.85

Tested by

no test coverage detected