CStatusBar member function problem!

I want to use the status bar in my Dialog based app!
but this code doesn't show the status bar!

m_SB.Create(this); // m_SB is a CStatusBar object
m_SB.SetIndicators(indicator, sizeof(indicators)/sizeof(UINT));

I wrote it in OnInitDialog()

but there is no control when my app is running!
Is there more inits to do before a status bar can be shown....? (hope you understod that!

HELP!!!!!!!!!

[blue]Nikado[/blue][grey]BETA[/grey]

Comments

  • probably you need to m_SB.ShowWindow(SW_SHOW), also, you need to give it a position and size with m_SB.SetWindowPos.

    but why not use the resource editor?

    : I want to use the status bar in my Dialog based app!
    : but this code doesn't show the status bar!
    :
    : m_SB.Create(this); // m_SB is a CStatusBar object
    : m_SB.SetIndicators(indicator, sizeof(indicators)/sizeof(UINT));
    :
    : I wrote it in OnInitDialog()
    :
    : but there is no control when my app is running!
    : Is there more inits to do before a status bar can be shown....? (hope you understod that!
    :
    : HELP!!!!!!!!!
    : [blue]Nikado[/blue][grey]BETA[/grey]
    :




Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion