Re: popup Toolbar problem!
I am working on something similar. I am trying to create toolbars to represent "sub-toolbars" to a main toolbar as used in PhotoImpact and Photoshop. A selected button in the main vertical toolbar causes a caption-less horizontal toolbar with subchoices to appear adjacent to the selected button. How do I create a caption-less toolbar that can be positioned at an arbitrary point on the screen??? In creating a floating toolbar, I can't seem to avoid the caption. I can create something very similar to what I want by creating a modeless dialog box without a caption holding the subchoices.
Re: popup Toolbar problem!
Hi bob,
sorry I have taken so long to respond!
I have solved the captionless toolbar problem, derive the flosting tool bar
from CToolBar, then put this code in the on move message handler.
void CMyToolBar::OnMove(int x, int y)
{
CToolBar::OnMove(x, y);
CWnd *pParent = GetParent();
if(pParent) pParent = pParent->GetParent();
if(pParent != NULL && pParent->GetRuntimeClass() == RUNTIME_CLASS(CMiniDockFrameWnd)
&& pParent->GetStyle() & WS_SYSMENU)
{
pParent->ModifyStyle(WS_CAPTION, 0, 0);
}
}
if you wish to work together on this email me
here
[email protected]
orhere
[email protected]
Paul Sharp