以下の内容はhttps://blog.systemjp.net/entry/20120223/p3より取得しました。


起動時、特定アイテムにフォーカスをあわせる

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 を返します。
}



以上の内容はhttps://blog.systemjp.net/entry/20120223/p3より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14