Dehighlighting a Tab in TabControl

manmfc's Avatar
Light Poster
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.
Cosmic_egg's Avatar, Join Date: Jul 2008
Go4Expert Member
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.
skinui's Avatar, Join Date: Oct 2008
Newbie Member
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