BOOL CMfcDlg::OnInitDialog()
{
    CDialog::OnInitDialog();
    this->SetWindowText("蟒蛇软件站");
    return TRUE;  
}

void CCalcDlg::OnCalc()
{
    CString strText = _T("");
    GetWindowText(strText);
    SetDlgItemText(IDC_EDIT1, strText);
    
    SetWindowText("pythonschool.com");
}

void CDemoDlg::OnTest1() 
{
    CString strText = _T("");

    //获得窗口标题
    GetWindowText(strText);

    SetDlgItemText(IDC_TEXT, strText);
}

void CDemoDlg::OnTest2() 
{
    CString strText = _T("");

    GetDlgItemText(IDC_TEXT, strText);

    //设置窗口标题
    SetWindowText(strText);
}

相关文章:

  • 2022-12-23
  • 2021-10-21
  • 2021-11-06
  • 2021-08-31
  • 2021-11-24
  • 2021-06-14
  • 2021-08-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
相关资源
相似解决方案