49 lines
1.4 KiB
C++
49 lines
1.4 KiB
C++
// aboutdlg.cpp : implementation of the CAboutDlg class
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "stdafx.h"
|
|
#include "resource.h"
|
|
|
|
#include "aboutdlg.h"
|
|
|
|
extern HINSTANCE g_hInstance;
|
|
|
|
LRESULT CAboutDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
|
|
{
|
|
CenterWindow(GetParent());
|
|
#if 0
|
|
if (FAILED (m_iAbout.CoCreateInstance (L"SLNKDWF.About")))
|
|
{
|
|
::MessageBox(NULL, "Unable to create object SLNKDWF.About", "SLNKDWF Viewer error", MB_ICONEXCLAMATION | MB_OK);
|
|
return FALSE;
|
|
}
|
|
|
|
CComBSTR bDLLPath, bBuildTime, bUserContext, bVersionString;
|
|
m_iAbout->get_DLLPath(&bDLLPath);
|
|
m_iAbout->get_Buildtime(&bBuildTime);
|
|
m_iAbout->get_UserContext(&bUserContext);
|
|
m_iAbout->get_VersionString(&bVersionString);
|
|
SetDlgItemText(IDC_DLLPATH, CString(bDLLPath));
|
|
SetDlgItemText(IDC_DLLBUILDTIME, CString(bBuildTime));
|
|
SetDlgItemText(IDC_DLLVERSION, CString(bVersionString));
|
|
|
|
#endif
|
|
char module[_MAX_PATH]; // HMODULE
|
|
GetModuleFileName(g_hInstance, module, sizeof(module));
|
|
|
|
SetDlgItemText(IDC_DLLPATH, module);
|
|
|
|
SetDlgItemText(IDC_DWFVERSION, _DWFTK_VERSION_STRING);
|
|
SetDlgItemText(IDC_WHIPVERSION, _WHIPTK_VERSION_STRING);
|
|
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
LRESULT CAboutDlg::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
|
|
{
|
|
EndDialog(wID);
|
|
return 0;
|
|
}
|