Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Funky behaviour when hiding undocked Dialog Bar

Status
Not open for further replies.

MrSandman666

Programmer
Feb 5, 2001
54
0
0
DE
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top