// DiCounter.cpp : AvP[ṼNX`܂B
//

#include "stdafx.h"
#include "DiCounter.h"
#include "DiCounterDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CDiCounterApp

BEGIN_MESSAGE_MAP(CDiCounterApp, CWinApp)
	ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
END_MESSAGE_MAP()


// CDiCounterApp RXgNV

CDiCounterApp::CDiCounterApp()
{
	// TODO: ̈ʒuɍ\zpR[hǉĂB
	//  InitInstance ̏dvȏׂċLqĂB
}


// B CDiCounterApp IuWFNgłB

CDiCounterApp theApp;


// CDiCounterApp 

BOOL CDiCounterApp::InitInstance()
{
	// AvP[V }jtFXg visual X^CLɂ邽߂ɁA
	// ComCtl32.dll Version 6 ȍ~̎gpw肷ꍇ́A
	// Windows XP  InitCommonControlsEx() KvłBȂ΁AEBhE쐬ׂ͂Ďs܂B
	INITCOMMONCONTROLSEX InitCtrls;
	InitCtrls.dwSize = sizeof(InitCtrls);
	// AvP[VŎgp邷ׂẴR Rg[ NX܂߂ɂ́A
	// ݒ肵܂B
	InitCtrls.dwICC = ICC_WIN95_CLASSES;
	InitCommonControlsEx(&InitCtrls);

	CWinApp::InitInstance();

	// W
	// ̋@\g킸ɍŏIIȎs\t@C
	// TCYkꍇ́Aȉsvȏ
	// [`폜ĂB
	// ݒ肪i[Ă郌WXg L[ύX܂B
	// TODO: Ж܂͑gDȂǂ̓K؂ȕ
	// ̕ύXĂB
	SetRegistryKey(_T("AvP[V EBU[hŐꂽ[J AvP[V"));

	CDiCounterDlg dlg;
	m_pMainWnd = &dlg;
	INT_PTR nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO: _CAO <OK> ŏꂽ̃R[h
		//  LqĂB
	}
	else if (nResponse == IDCANCEL)
	{
		// TODO: _CAO <LZ> ŏꂽ̃R[h
		//  LqĂB
	}

	// _CAO͕܂BAvP[ṼbZ[W |vJnȂ
	//  AvP[VI邽߂ FALSE ԂĂB
	return FALSE;
}
