windows-nt/Source/XPSP1/NT/sdktools/custcon/custcon.cpp

70 lines
1.4 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//////////////////////////////////////////////////////////////////////
//
// custcon.cpp : <20>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>p<EFBFBD>N<EFBFBD><4E><EFBFBD>X<EFBFBD>̒<EFBFBD><CC92>`<60><><EFBFBD>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82>B
//
// 1998 Jun, Hiro Yamamoto
//
#include "stdafx.h"
#include "custcon.h"
#include "custconDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCustconApp
BEGIN_MESSAGE_MAP(CCustconApp, CWinApp)
//{{AFX_MSG_MAP(CCustconApp)
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCustconApp <20>N<EFBFBD><4E><EFBFBD>X<EFBFBD>̍\<5C>z
CCustconApp::CCustconApp()
{
}
/////////////////////////////////////////////////////////////////////////////
// <20>B<EFBFBD><42><EFBFBD><EFBFBD> CCustconApp <20>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g
CCustconApp theApp;
int gExMode;
/////////////////////////////////////////////////////////////////////////////
// CCustconApp <20>N<EFBFBD><4E><EFBFBD>X<EFBFBD>̏<EFBFBD><CC8F><EFBFBD><EFBFBD><EFBFBD>
inline bool strequ(LPCTSTR a, LPCTSTR b)
{
return !_tcscmp(a, b);
}
BOOL CCustconApp::InitInstance()
{
#ifdef _AFXDLL
Enable3dControls(); // <20><><EFBFBD>L DLL <20><><EFBFBD><EFBFBD> MFC <20><><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD>͂<EFBFBD><CD82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
#else
Enable3dControlsStatic(); // MFC <20>ƐÓI<C393>Ƀ<EFBFBD><C983><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͂<EFBFBD><CD82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
#endif
//
// Parse command line
//
if (strequ(m_lpCmdLine, _T("-e"))) {
gExMode = 1;
}
CCustconDlg dlg;
m_pMainWnd = &dlg;
dlg.DoModal();
return FALSE;
}