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

#include "stdafx.h"
#include "Ajuda.h"
#include "Ajud1dlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAjudaApp

BEGIN_MESSAGE_MAP(CAjudaApp, CWinApp)
	//{{AFX_MSG_MAP(CAjudaApp)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAjudaApp construction

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

/////////////////////////////////////////////////////////////////////////////
// The one and only CAjudaApp object

CAjudaApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CAjudaApp initialization

BOOL CAjudaApp::InitInstance()
{
	#ifdef _AFXDLL
		Enable3dControls();			// Call this when using MFC in a shared DLL
	#else
		Enable3dControlsStatic();	// Call this when linking to MFC statically
	#endif


	// cria caixa de dialogo da ajuda
	CAjud1Dlg
		oDlg;
	
	// define qual eh a janela principal
	m_pMainWnd = &oDlg;
	
	// exibe caixa de dialogo
	oDlg.DoModal();

	// apohs fechar caixa termina aplicacao
	return FALSE;
}
