需要MFC C ++帮助。 (不知道在哪里发布这个抱歉。) [英] MFC C++ Help needed. (Not sure where to post this sorry.)

查看:69
本文介绍了需要MFC C ++帮助。 (不知道在哪里发布这个抱歉。)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是MFC C ++的新手,我正在创建一个非常简单的基于对话框的应用程序。

Hi there, I am new to MFC C++ and I am creating a very simple dialog based application.

我的第一个对话框只有两个文本字段和两个复选框只是要求你输入你的姓名,年龄和性别选择。

My first dialog is just two text fields and two check boxes this is just for asking you to type your name, age and gender picking.

我的第二个对话框是我想要显示的信息。我已经设置了第二个对话框打开,但是在第二个Dialog类(InfoDialog.cpp)中,我似乎无法找到加载函数的位置。

My second dialog is where I want that information to display. I already have it set up that the second dialog opens but in the second Dialog class(InfoDialog.cpp) I cant seem to find where the load function is.

我用于c#编程但我只需要帮助试图查看加载功能的位置,这样我就可以在对话框打开后应用更改。

I am use to c# Programming but i just need help trying to see where the load function is so i can apply changes once the dialog opens.

InfoDialog.cpp:

InfoDialog.cpp:

// InfoDialog.cpp : implementation file
//

#include "stdafx.h"
#include "SimpleDialog.h"
#include "InfoDialog.h"
#include "afxdialogex.h"

// InfoDialog dialog

IMPLEMENT_DYNAMIC(InfoDialog, CDialogEx)

InfoDialog::InfoDialog(CWnd* pParent /*=NULL*/)
	: CDialogEx(IDD_INFO, pParent)
{

}

InfoDialog::~InfoDialog()
{
	
}

void InfoDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(InfoDialog, CDialogEx)

END_MESSAGE_MAP()


// InfoDialog message handlers

有人请告诉我加载对话框的所有内容:)

Someone please show me where everything can go for on load of the dialog :)

提前致谢!

推荐答案

可以在 OnInitDialog 虚拟函数(与
WM_INITDIALOG 通知相关联)中执行初始化。尝试以下方法之一:从Project菜单中选择"Class Wizard ...",然后在"Class name"组合框中选择
InfoDialog ,然后选择"Virtual Functions"选项卡。选择
OnInitDialog ,然后按"添加功能"。

The initialisation can be performed inside the OnInitDialog virtual function (which is associated with WM_INITDIALOG notification). Try one of the way: select "Class Wizard…" from Project menu, then select InfoDialog in "Class name" combobox, then the "Virtual Functions" tab. Select OnInitDialog, then press "Add Function".


这篇关于需要MFC C ++帮助。 (不知道在哪里发布这个抱歉。)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆