IDM_ABOUTBOX must be in the
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTestMyCtrlDlg)
DDX_Text(pDX, IDC_MESSAGE, m_Message);
DDX_Control(pDX, IDC_MYCTRL, m_MyCtrl);
DDX_Text(pDX, IDC_NEWTEXT, m_newText);
DDX_Text(pDX, IDC_TICK, m_Tick);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTestMyCtrlDlg, CDialog)
//{{AFX_MSG_MAP(CTestMyCtrlDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_TEXT, OnText)
ON_BN_CLICKED(IDC_TIMER, OnTimer)
ON_BN_CLICKED(IDC_SHAPE, OnShape)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTestMyCtrlDlg message handlers
BOOL CTestMyCtrlDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Add "About..." menu item to system menu.
// IDM_ABOUTBOX must be in the system command range.
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);
CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
Ñîäåðæàíèå Íàçàä Âïåðåä