Click here to Skip to main content
15,897,718 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Video Pin
Usman Tasleem Akshaf28-May-05 6:51
Usman Tasleem Akshaf28-May-05 6:51 
GeneralRe: Video Pin
FlyingTinman31-May-05 9:33
FlyingTinman31-May-05 9:33 
Generalhelp creating. Pin
scoroop26-May-05 3:07
scoroop26-May-05 3:07 
GeneralRe: help creating. Pin
David Crow26-May-05 3:38
David Crow26-May-05 3:38 
GeneralGraphical Active X Control Operation Pin
jerry1211a26-May-05 2:03
jerry1211a26-May-05 2:03 
GeneralMFC - Disabled buttons (not CDialog) Pin
gnilk26-May-05 1:01
gnilk26-May-05 1:01 
GeneralRe: MFC - Disabled buttons (not CDialog) Pin
toxcct26-May-05 1:10
toxcct26-May-05 1:10 
GeneralRe: MFC - Disabled buttons (not CDialog) Pin
Iain Clarke, Warrior Programmer26-May-05 2:20
Iain Clarke, Warrior Programmer26-May-05 2:20 
While its hard to be sure, this is what I think your problem is...

You have created a CDialogBar. During idle moments, MFC tries to synchronise the enable / disable state
of its buttons with the rest of the application. This is the same mechanism that makes your menu items
enabled disabled.

If you look up CDialogBar, you see its inherited from CControlBar. That has a virtual function OnUpdateCmdUI.
If you override that, MFC will no longer enable / disable your controls depending on whether they have
command handlers in other parts of your application.

class CMyDialogBarThatDoesntUpdate : public CDialogBar
{
    ...
    virtual void OnUpdateCmdUI( CFrameWnd* pTarget, BOOL bDisableIfNoHndler )
    {
        // Do nothing.
    }
    ...
};


That should remove this bar from the update mechanism.

Iain.
GeneralRe: MFC - Disabled buttons (not CDialog) Pin
gnilk26-May-05 2:30
gnilk26-May-05 2:30 
GeneralCompile erros using CDOSYS.H Pin
-Dy26-May-05 0:54
-Dy26-May-05 0:54 
GeneralRe: Compile erros using CDOSYS.H Pin
toxcct26-May-05 2:18
toxcct26-May-05 2:18 
GeneralRe: Compile erros using CDOSYS.H Pin
Iain Clarke, Warrior Programmer26-May-05 2:27
Iain Clarke, Warrior Programmer26-May-05 2:27 
GeneralDifference between accelerator and hotkey Pin
SanjaySMK26-May-05 0:00
SanjaySMK26-May-05 0:00 
GeneralRe: Difference between accelerator and hotkey Pin
toxcct26-May-05 0:46
toxcct26-May-05 0:46 
GeneralRe: Difference between accelerator and hotkey Pin
Iain Clarke, Warrior Programmer26-May-05 1:00
Iain Clarke, Warrior Programmer26-May-05 1:00 
GeneralRe: Difference between accelerator and hotkey Pin
toxcct26-May-05 1:03
toxcct26-May-05 1:03 
GeneralRe: Difference between accelerator and hotkey Pin
Iain Clarke, Warrior Programmer26-May-05 2:09
Iain Clarke, Warrior Programmer26-May-05 2:09 
GeneralRe: Difference between accelerator and hotkey Pin
James R. Twine26-May-05 2:33
James R. Twine26-May-05 2:33 
GeneralNetwork Installation Pin
u6ik25-May-05 23:53
u6ik25-May-05 23:53 
GeneralRe: Network Installation Pin
John M. Drescher26-May-05 4:30
John M. Drescher26-May-05 4:30 
GeneralRe: Network Installation Pin
u6ik26-May-05 4:41
u6ik26-May-05 4:41 
GeneralRe: Network Installation Pin
John M. Drescher26-May-05 5:04
John M. Drescher26-May-05 5:04 
GeneralRe: Network Installation Pin
u6ik26-May-05 5:14
u6ik26-May-05 5:14 
Generalshell Pin
boy4uk25-May-05 23:26
boy4uk25-May-05 23:26 
Generalfocus to the current instance of a program Pin
toxcct25-May-05 22:50
toxcct25-May-05 22:50 

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.