Dehighlighting a Tab in TabControl

Discussion in 'MFC' started by manmfc, Sep 22, 2008.

  1. manmfc

    manmfc New Member

    Sep 22, 2008
    Likes Received:
    Trophy Points:
    I have created a tab control in MFC(VC++). While user is doing something in a tab, then I should restrict the user to change to another till the work started in a tab has been completed.
    Eg: In Tab A on some button click a thread will be launched, at that point of time user should not be able to move to another tab from Tab A.

    I tried it. But I couldn't make it up. Help me out.
  2. Cosmic_egg

    Cosmic_egg New Member

    Jul 21, 2008
    Likes Received:
    Trophy Points:
    I think you can set a global flag which indicates work on current tab.
    When User Click on the other tab and flag is on. Do not let that particular MSG be passed for processing.
    WindowProc is the function where you could block that message.
    You Could use Spy++ to figure out the window message.
    I think it should be pretty simple after that.
  3. skinui

    skinui New Member

    Oct 18, 2008
    Likes Received:
    Trophy Points:
    SkinFeature developer library improves the visual appearance of your applications by adding originality and uniqueness.

    SkinFeature developer library is a powerful library that changes the visual appearance of windows or dialogs, providing developers with full-featured support for 'application skins', or 'application look and feel'. Skinfeature makes it easy to create programs with visually stunning, fully interactive user interfaces.

    When it comes to impressing your clients and your software users, nothing is more helpful than SkinFeature skin creator software. With innovative features and superior simplicity of use, you'll agree that no other GUI design tool comes close.


    With SkinFeature you could make your program look exactly like it was from another OS, or create your own user WinAmp-like "skinned" interfaces, or just give it a different, distinctive look.
    ¦ support all Windows standard control
    ¦ support Windows 98/NT4/2000/XP/2003
    ¦ support MDI/SDI/Dialog/Shape style window
    ¦ support Windows's common dialog
    ¦ support custom control
    ¦ support UNICODE
    ¦ WYSWYG skin editor
    ¦ include all source


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice