小编Joe*_*moe的帖子

为什么我的单选按钮不起作用?

我正在使用Visual C++ 2005中的MFC对话框应用程序.我的单选按钮是m_Small,m_Medium和m_Large.它们都没有在我的m_Summary编辑框中显示它们应该显示的内容.可能有什么不对?

这是我的代码.

    // Pizza_ProgramDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Pizza_Program.h"
#include "Pizza_ProgramDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CAboutDlg dialog used for App About

class CAboutDlg : public CDialog
{
public:
    CAboutDlg();

// Dialog Data
    enum { IDD = IDD_ABOUTBOX };

    protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

// Implementation
protected:
    DECLARE_MESSAGE_MAP()
};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
END_MESSAGE_MAP()


// CPizza_ProgramDlg dialog




CPizza_ProgramDlg::CPizza_ProgramDlg(CWnd* pParent /*=NULL*/)
    : …
Run Code Online (Sandbox Code Playgroud)

c++ mfc dialog visual-studio-2005 radio-button

2
推荐指数
1
解决办法
4064
查看次数

标签 统计

c++ ×1

dialog ×1

mfc ×1

radio-button ×1

visual-studio-2005 ×1