SetWindowTextで設定できます。
1 2 | // CDialog m_Dialog; m_Dialog.SetWindowText(”あたらしいタイトル”); |
1 2 3 4 5 6 | BOOLCTestDlg::OnInitDialog() { ・ ・ // TODO: 初期化をここに追加します。 SetWindowText("test"); // タイトルが「test」になる。 |
1 2 3 4 5 | CButton *pOkbutton=(CButton*)GetDlgItem(IDOK); pOkbutton->EnableWindow(FALSE);// 使用禁止 CButton *pCabutton=(CButton*)GetDlgItem(IDCANCEL); pCabutton->EnableWindow(FALSE);// 使用禁止 |