Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.5 KiB

  1. //////////////////////////////////////////////////////////////////////
  2. //
  3. // custcon.cpp : �A�v���P�[�V�����p�N���X�̒��`���s���܂��B
  4. //
  5. // 1998 Jun, Hiro Yamamoto
  6. //
  7. #include "stdafx.h"
  8. #include "custcon.h"
  9. #include "custconDlg.h"
  10. #ifdef _DEBUG
  11. #define new DEBUG_NEW
  12. #undef THIS_FILE
  13. static char THIS_FILE[] = __FILE__;
  14. #endif
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CCustconApp
  17. BEGIN_MESSAGE_MAP(CCustconApp, CWinApp)
  18. //{{AFX_MSG_MAP(CCustconApp)
  19. //}}AFX_MSG
  20. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  21. END_MESSAGE_MAP()
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CCustconApp �N���X�̍\�z
  24. CCustconApp::CCustconApp()
  25. {
  26. }
  27. /////////////////////////////////////////////////////////////////////////////
  28. // �B���� CCustconApp �I�u�W�F�N�g
  29. CCustconApp theApp;
  30. int gExMode;
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CCustconApp �N���X�̏�����
  33. inline bool strequ(LPCTSTR a, LPCTSTR b)
  34. {
  35. return !_tcscmp(a, b);
  36. }
  37. BOOL CCustconApp::InitInstance()
  38. {
  39. #ifdef _AFXDLL
  40. Enable3dControls(); // ���L DLL ���� MFC ���g���ꍇ�͂������R�[�����Ă��������B
  41. #else
  42. Enable3dControlsStatic(); // MFC �ƐÓI�Ƀ����N�����ꍇ�͂������R�[�����Ă��������B
  43. #endif
  44. //
  45. // Parse command line
  46. //
  47. if (strequ(m_lpCmdLine, _T("-e"))) {
  48. gExMode = 1;
  49. }
  50. CCustconDlg dlg;
  51. m_pMainWnd = &dlg;
  52. dlg.DoModal();
  53. return FALSE;
  54. }