不一样。 You can set tab stops in a multiline edit control by using the EM_SETTABSTOPS message. The default for a tab stop is eight characters. When you add text to the edit control, tab characters in the text automatically generate space up to the next tab stop. The EM_SETTABSTOPS message does not automatically cause Windows to redraw the text. To do that, you can call the InvalidateRect function. The EM_SETTABSTOPS message applies to multiline edit controls only. The tab order is the order in which the TAB key moves the input focus from one control to the next within a dialog box. Usually the tab order proceeds from left to right in a dialog box, and from top to bottom. Each control has a property page with a Tabstop check box, used to determine whether a control actually receives input focus.
我是这么实现的。 在OnInitDialog()里加入 CEdit * pwnd; pwnd = (CEdit*)GetDlgItem(IDC_EDIT1); pwnd->SetSel(0,-1); pwnd->SetFocus(); return FALSE; // return TRUE unless you set the focus to a control 可以实现这个作用。
在InitalInstance()中加入m_edit.SetFocus()
把它的tab顺序设置为第一个。
You can set tab stops in a multiline edit control by using the EM_SETTABSTOPS message. The default for a tab stop is eight characters. When you add text to the edit control, tab characters in the text automatically generate space up to the next tab stop. The EM_SETTABSTOPS message does not automatically cause Windows to redraw the text. To do that, you can call the InvalidateRect function. The EM_SETTABSTOPS message applies to multiline edit controls only. The tab order is the order in which the TAB key moves the input focus from one control to the next within a dialog box. Usually the tab order proceeds from left to right in a dialog box, and from top to bottom. Each control has a property page with a Tabstop check box, used to determine whether a control actually receives input focus.
在OnInitDialog()里加入
CEdit * pwnd;
pwnd = (CEdit*)GetDlgItem(IDC_EDIT1);
pwnd->SetSel(0,-1);
pwnd->SetFocus();
return FALSE; // return TRUE unless you set the focus to a control
可以实现这个作用。
在编辑对话框时才会出现上面的菜单.
也有相应的工具条
直接就可以编辑Tab Order,方便之极~~