|
// MainDialog.cpp : implementation file
//
#include "stdafx.h"
#include "MFCSafeActiveX.h"
#include "MainDialog.h"
// CMainDialog dialog
IMPLEMENT_DYNAMIC(CMainDialog, CDialog)
CMainDialog::CMainDialog(CWnd* pParent /*=NULL*/)
: CDialog(CMainDialog::IDD, pParent)
{
}
CMainDialog::~CMainDialog()
{
}
void CMainDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_MSGBOX_EDIT, m_EditMessage);
DDX_Control(pDX, IDC_FLOATPROP_STATIC, m_StaticFloatProperty);
}
BEGIN_MESSAGE_MAP(CMainDialog, CDialog)
ON_BN_CLICKED(IDC_MSGBOX_BN, &CMainDialog::OnBnClickedMsgBoxBn)
END_MESSAGE_MAP()
// CMainDialog message handlers
void CMainDialog::OnBnClickedMsgBoxBn()
{
CString strText;
m_EditMessage.GetWindowText(strText);
MessageBox(strText, TEXT("HelloWorld"), MB_ICONINFORMATION | MB_OK);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Microsoft All-In-One Code Framework delineates the framework and skeleton of Microsoft development techniques through typical sample codes in three popular programming languages (Visual C#, VB.NET, Visual C++). Each sample is elaborately selected, composed, and documented to demonstrate one frequently-asked, tested or used coding scenario based on our support experience in MSDN newsgroups and forums. If you are a software developer, you can fill the skeleton with blood, muscle and soul. If you are a software tester or a support engineer like us, you may extend the sample codes a little to fit your specific test scenario or refer your customer to this project if the customer's question coincides with what we collected.
http://cfx.codeplex.com/