BOOL CStockSearchDialog::OnInitDialog()
{
CDialog::OnInitDialog();
// テキストボックスにフォーカスをあわせる
CEdit* pEdit = (CEdit*)this->GetDlgItem(IDC_EDIT_QUERY);
pEdit->SetFocus();
pEdit->SetSel(0, -1);
return FALSE;
return TRUE; // return TRUE unless you set the focus to a control
// 例外 : OCX プロパティ ページは必ず FALSE を返します。
}