Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   Dehighlighting a Tab in TabControl (http://www.go4expert.com/forums/dehighlighting-tab-tabcontrol-t14133/)

manmfc 22Sep2008 19:16

Dehighlighting a Tab in TabControl
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 25Sep2008 18:30

Re: Dehighlighting a Tab in TabControl
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 18Oct2008 19:41

Re: Dehighlighting a Tab in TabControl
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

WEBSite: http://www.skinui.com

All times are GMT +5.5. The time now is 15:55.