<同上>

解决方案 »

  1.   

    在资源 编辑器 下 menu--layout---tab oreder 设置成 第一个。
      

  2.   

    在资源 编辑器 下 menu--layout---tab oreder 设置成 第一个。
      

  3.   

    调整Tab顺序,使之获得第一个tab顺序。
      

  4.   

    用GotoDlgCtrl可以将焦点指向窗口中的任何控件
      

  5.   

    用class wizard给你的Edit设定一个控制变量m_edit1,
    在InitalInstance()中加入m_edit.SetFocus()
      

  6.   

    在初始化时设置焦点,用setfocus();
    把它的tab顺序设置为第一个。
      

  7.   

    难道vc可以象delphi一样的设置tab order?
      

  8.   

    vc里的tab stop和tab order一样吗。。
      

  9.   

    不一样。
    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.
      

  10.   

    vc当然可以设置tab顺序了,而且非常方便。在你编辑对话框的时候,有个菜单里有一个“tab order”项就可以设置了,按照你鼠标点击的顺序就可以设置了。
      

  11.   

    我是这么实现的。
    在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
    可以实现这个作用。
      

  12.   

    layout---tab oreder 
    在编辑对话框时才会出现上面的菜单.
    也有相应的工具条
      

  13.   

    Ctrl+D真的很好用。
    直接就可以编辑Tab Order,方便之极~~