
// libzkfpDemo.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "libzkfpDemo.h"
#include "libzkfpDemoDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// ClibzkfpDemoApp

BEGIN_MESSAGE_MAP(ClibzkfpDemoApp, CWinAppEx)
	ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
END_MESSAGE_MAP()


// ClibzkfpDemoApp construction

ClibzkfpDemoApp::ClibzkfpDemoApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}


// The one and only ClibzkfpDemoApp object

ClibzkfpDemoApp theApp;


// ClibzkfpDemoApp initialization

BOOL ClibzkfpDemoApp::InitInstance()
{
	// If a list of applications running on Windows XP specifies 
      //that ComCtl32.dll version 6 or higher is to be used to enable visualization, then InitCommonControlsEx() is required. 
      //Otherwise, you will not be able to create a window.
	INITCOMMONCONTROLSEX InitCtrls;
	InitCtrls.dwSize = sizeof(InitCtrls);
	//Set it to include all the common control classes 
      //that you want to use in your application.
	InitCtrls.dwICC = ICC_WIN95_CLASSES;
	InitCommonControlsEx(&InitCtrls);

	CWinAppEx::InitInstance();

	AfxEnableControlContainer();

	// Standard Initialization If these features are not 
      //used and you want to reduce the size of the final executable,
      // you should remove the following specific initialization routines 
      //that are not needed to change the registry keys used to store the settings.
	// TODO: The string should be modified as appropriate, 
      //for example to a company or organization name
	SetRegistryKey(_T("Local application generated by the AppWizard"));

	ClibzkfpDemoDlg dlg;
	m_pMainWnd = &dlg;
	INT_PTR nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO: Here, the code that handles 
            //when to close the dialog with "OK" is placed.
	}
	else if (nResponse == IDCANCEL)
	{
		//TODO: Place the code that handles 
            //when to close the dialog with "Cancel"
	}

	//Since the dialog is closed, FALSE will be returned to exit the application 
      //instead of launching the application's message pump.
	return FALSE;
}
