// AjudODlg.cpp : implementation file
//

#include "stdafx.h"
#include "ajuda.h"
#include "AjudODlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAjudODlg dialog


CAjudODlg::CAjudODlg(CWnd* pParent /*=NULL*/)
	: CDialog(CAjudODlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAjudODlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CAjudODlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAjudODlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAjudODlg, CDialog)
	//{{AFX_MSG_MAP(CAjudODlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAjudODlg message handlers

BOOL CAjudODlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	
   // tenta carregar bitmaps
	if ( /*! m_oBmp.LoadBitmaps ( _T ( "BMP_POLUIDOR" ), NULL, NULL ) ||*/
        ! m_oBmpExA.LoadBitmaps ( _T ( "BMP_EXPOLUIDOR_A" ), NULL, NULL ) 
        /*! m_oBmpExB.LoadBitmaps ( _T ( "BMP_EXPOLUIDOR_B" ), NULL, NULL )*/ ) {

		TRACE0 ( "Impossível ler bitmaps.\n ");
		AfxThrowResourceException ();
	}
	
	// define qual controle da caixa de dialogo vai ter qual bitmap
	//VERIFY ( m_oBmp.SubclassDlgItem ( IDC_AJUDA_POLUIDOR, this ) );
	VERIFY ( m_oBmpExA.SubclassDlgItem ( IDC_AJUDA_EXPOLUIDOR_A, this ) );
	//VERIFY ( m_oBmpExB.SubclassDlgItem ( IDC_AJUDA_EXPOLUIDOR_B, this ) );

	// muda tamanho dos controles para caber os bitmaps
	//m_oBmp.SizeToContent ();
	m_oBmpExA.SizeToContent ();
	//m_oBmpExB.SizeToContent ();

	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
