tab控件中TCN_SELCHANGING 和TCN_SELCHANGE区别,最好用实例说明。

解决方案 »

  1.   

    TCN_SELCHANGE Notification CodeNotifies a tab control's parent window that the currently selected tab has changed. This notification code is sent in the form of a WM_NOTIFY message.
    复制TCN_SELCHANGE     lpnmhdr = (LPNMHDR) lParam; ParameterslParam    Pointer to an NMHDR structure that contains additional information about this notification. Return ValueNo return value.
    ResTo determine the currently selected tab, use the TabCtrl_GetCurSel macro. TCN_SELCHANGING Notification CodeNotifies a tab control's parent window that the currently selected tab is about to change. This notification code is sent in the form of a WM_NOTIFY message.
    复制TCN_SELCHANGING     lpnmhdr = (LPNMHDR) lParam; ParameterslParam    Pointer to an NMHDR structure that contains additional information about this notification. Return ValueReturns TRUE to prevent the selection from changing, or FALSE to allow the selection to change.
    ResTo determine the currently selected tab, use the TabCtrl_GetCurSel macro. 
      

  2.   

    看看这个
    有实例
    http://blog.csdn.net/xianglitian/archive/2010/05/23/5618814.aspx