Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Regular Expression Pin
Alexandru Savescu10-May-02 12:25
Alexandru Savescu10-May-02 12:25 
QuestionDialog?? Pin
HoldMe10-May-02 4:41
HoldMe10-May-02 4:41 
AnswerRe: Dialog?? Pin
Dana Holt10-May-02 4:46
Dana Holt10-May-02 4:46 
AnswerRe: Dialog?? Pin
Ravi Bhavnani10-May-02 8:46
professionalRavi Bhavnani10-May-02 8:46 
GeneralTab Control Pin
Max Santos10-May-02 4:07
Max Santos10-May-02 4:07 
GeneralRe: Tab Control Pin
Prem Kumar10-May-02 4:09
Prem Kumar10-May-02 4:09 
GeneralRe: Tab Control Pin
Martin Ziacek10-May-02 4:21
Martin Ziacek10-May-02 4:21 
GeneralRe: Tab Control Pin
Tom Archer10-May-02 7:55
Tom Archer10-May-02 7:55 
I cover this in a demo in my MFC book (see sig). It's a fairly involved process, but here are the basic steps. Let me know if you need any additional help and I'll send you a demo app.


  1. Create a member variable to store the current tab index.
  2. Create an array member variable to hold all of the index values for the currently disabled tabs.
  3. Handle the TCN_SELCHANGING notification message to set the current tab index.
  4. Handle the TCN_SELCHANGED notification message to decide if you want to enable the tab to be activated. If you don’t, you must post a PSM_SETCURSEL message. In this message, the last active tab index is specified.


Let me know if you need it and I'll send you the demo app from the book

Cheers,
Tom Archer
Author - Inside C#, Visual C++.NET Bible
GeneralRe: Tab Control Pin
Max Santos10-May-02 8:56
Max Santos10-May-02 8:56 
GeneralRe: Tab Control Pin
Tom Archer10-May-02 11:20
Tom Archer10-May-02 11:20 
GeneralAVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 3:57
Zizilamoroso10-May-02 3:57 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 4:07
Dana Holt10-May-02 4:07 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 4:19
Zizilamoroso10-May-02 4:19 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 4:43
Dana Holt10-May-02 4:43 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 5:04
Zizilamoroso10-May-02 5:04 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 5:46
Dana Holt10-May-02 5:46 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 6:01
Zizilamoroso10-May-02 6:01 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 6:32
Dana Holt10-May-02 6:32 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 6:08
Zizilamoroso10-May-02 6:08 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 6:38
Dana Holt10-May-02 6:38 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 6:17
Zizilamoroso10-May-02 6:17 
GeneralRe: AVIFILE and KEYFRAME Pin
Dana Holt10-May-02 6:31
Dana Holt10-May-02 6:31 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 6:51
Zizilamoroso10-May-02 6:51 
Generalpopup keyboard Pin
jimNLX10-May-02 3:56
jimNLX10-May-02 3:56 
QuestionWhere is the project's path? Pin
Hans Ruck10-May-02 3:31
Hans Ruck10-May-02 3:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.