Jump to content
Software FX Community

Enabled property

User (Legacy)

Recommended Posts


I am trying to disable a custom command (and a toolbar button) with the

following code.

ICommandBarPtr pCommandBar = m_pChartFX->Commands;

... // add pictures here

ICommandItemPtr pCommand = pCommandBar->AddCommand(200);

if (pCommand != NULL)


pCommand->Text = "My command";

pCommand->Picture = 1;

pCommand->Enabled = 0; // should make it disabled?


... // add toolbar button here

The toolbar button is added ok but it is not disabled (i.e. it's not greyed

and sends InternalCommand event).

Is it a bug or am I missing something?

I'm using ChartFX DLL,




Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...