Controls on dialog-based program remain active when main window loses focus
Posted on 2014-07-17
I have built a dialog-based program in MFC / C++. It works fine. It has a menu bar, a tool bar, and a tab control. The problem is that when I run my program, then switch to a different window (any window), certain controls on my original dialog do not deactivate. The main dialog itself deactivates, but all it takes is one click on the menu, toolbar, or one of the tabs, and they fly into action, just as though the main dialog is totally active. Obviously this is not "normal" Windows behavior. Generally you have to click on a window (anywhere) to activate it, then click on the control or function that you wish to use. Can someone tell me what is going on?