www.pudn.com > MediaPlayer.rar > FrameInfoDlg.cpp


// FrameInfoDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "MediaPlayer.h" 
#include "FrameInfoDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// FrameInfoDlg dialog 
 
 
FrameInfoDlg::FrameInfoDlg(CWnd* pParent /*=NULL*/) 
	: CBitmapDialog(FrameInfoDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(FrameInfoDlg) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void FrameInfoDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CBitmapDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(FrameInfoDlg) 
	DDX_Control(pDX, IDC_RESULT, m_SourceBitmap); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(FrameInfoDlg, CBitmapDialog) 
	//{{AFX_MSG_MAP(FrameInfoDlg) 
		// NOTE: the ClassWizard will add message map macros here 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// FrameInfoDlg message handlers 
 
BOOL FrameInfoDlg::OnInitDialog() 
{ 
	 
	CBitmapDialog::OnInitDialog(); 
	CMediaPlayerApp *app = (CMediaPlayerApp *)AfxGetApp(); 
	LoadBitmap(FRAMEINFO); 
	SetTransColor (RGB(255,255,0)); 
	SetTransparent (TRUE); 
    SetStaticTransparent (TRUE); 
	SetClickAnywhereMove (TRUE); 
	m_BtnCancel.AutoLoad(IDCANCEL,this); 
	m_SourceBitmap.GetSafeHwnd(); 
	app->cs=&m_SourceBitmap; 
	return TRUE; 
}