我使用
CWnd* pWndNext = GetNextDlgTabItem(pWndFocus);
获得 tab顺序中的【下】一个窗口对象 
如果我想获得tab顺序中的【上】一个窗口对象,请问该怎么办?

解决方案 »

  1.   

    CWnd* GetNextDlgTabItem( CWnd* pWndCtl, BOOL bPrevious = FALSE ) const;
    看看这个函数的定义你就明白了。bPrevious=FALSE表示向后,bPrevious=TRUE表示向前。
    所以GetNextDlgTabItem(pWndCtl,TRUE);就是获取上一个tab顺序窗口对象了
      

  2.   

    CWnd* GetNextDlgTabItem( CWnd* pWndCtl, BOOL bPrevious = FALSE) const;Specifies how the function is to search the dialog box. If TRUE, the function searches for the previous control in the dialog box; if FALSE, it searches for the next control. 通过修改第二个参数的值来判断是向前还是向后