// SelMemberCardFund.cpp : implementation file // #include "stdafx.h" #include "ylgl.h" #include "SelMemberCardFund.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // SelMemberCardFund dialog SelMemberCardFund::SelMemberCardFund(CWnd* pParent /*=NULL*/) : CDialog(SelMemberCardFund::IDD, pParent) { //{{AFX_DATA_INIT(SelMemberCardFund) m_radio1 = 0; m_mode=0; //}}AFX_DATA_INIT } void SelMemberCardFund::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(SelMemberCardFund) DDX_Radio(pDX, IDC_RADIO1, m_radio1); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(SelMemberCardFund, CDialog) //{{AFX_MSG_MAP(SelMemberCardFund) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // SelMemberCardFund message handlers void SelMemberCardFund::OnOK() { // TODO: Add extra validation here UpdateData(); CDialog::OnOK(); } BOOL SelMemberCardFund::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here if(m_mode==1) { SetWindowText("打印选择"); GetDlgItem(IDC_RADIO1)->SetWindowText("明细表"); GetDlgItem(IDC_RADIO2)->SetWindowText("派工单"); } return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }