+ ControlTabInfoRec tie ;
+ Boolean enabled = true ;
+ if ( nPage + 1 > GetControlMaximum( m_macControl ) )
+ {
+ SetControlMaximum( m_macControl , nPage + 1 ) ;
+ }
+
+ tie.version = 0 ;
+ tie.iconSuiteID = 0 ;
+ c2pstrcpy( (StringPtr) tie.name , strText ) ;
+ SetControlData( m_macControl, nPage + 1, kControlTabInfoTag , sizeof( ControlTabInfoRec) , (char*) &tie ) ;
+ SetControlData( m_macControl, m_nSelection + 1, kControlTabEnabledFlagTag, sizeof( Boolean ), (Ptr)&enabled );