MrSandman666
Programmer
Hello again.
I'm having this dialog bar in my application and I want it to be hideable, so I added an item to my menu which is supposed to show/hide the dialog bar.
This works fine as long as the bar is docked. However, when it's floating it doesn't hide completely. There's still a portion of the title bar remaining, together with the close box (that little 'x' in the upper right corner to close the window).
This is my code:
if(cMenu->GetMenuState(ID_VIEW_DICEROLLER, MF_BYCOMMAND) == MF_CHECKED)
{
m_wndDlgBar.ShowWindow(SW_HIDE);
FloatControlBar(&m_wndDlgBar, (CPoint)(0,0), CBRS_ALIGN_RIGHT | CBRS_ALIGN_LEFT);
cMenu->CheckMenuItem(ID_VIEW_DICEROLLER, MF_BYCOMMAND|MF_UNCHECKED);
}
Any ideas?
I'm having this dialog bar in my application and I want it to be hideable, so I added an item to my menu which is supposed to show/hide the dialog bar.
This works fine as long as the bar is docked. However, when it's floating it doesn't hide completely. There's still a portion of the title bar remaining, together with the close box (that little 'x' in the upper right corner to close the window).
This is my code:
if(cMenu->GetMenuState(ID_VIEW_DICEROLLER, MF_BYCOMMAND) == MF_CHECKED)
{
m_wndDlgBar.ShowWindow(SW_HIDE);
FloatControlBar(&m_wndDlgBar, (CPoint)(0,0), CBRS_ALIGN_RIGHT | CBRS_ALIGN_LEFT);
cMenu->CheckMenuItem(ID_VIEW_DICEROLLER, MF_BYCOMMAND|MF_UNCHECKED);
}
Any ideas?