How to define the max size and min size of a floating dockcontrolbar?

How to define the max size and min size of a floating dockcontrolbar?

Anonymous
Not applicable
667 Views
2 Replies
Message 1 of 3

How to define the max size and min size of a floating dockcontrolbar?

Anonymous
Not applicable

Hi,everyone:

    I've got some troubles in defining the max and min size of a floating dockcontrolbar.I overwrite the OnGetMinMaxInfo() function with following code:

void CMyDockControlBarChildDlg::OnGetMinMaxInfo(MINMAXINFO* lpMMI)  
{  
    lpMMI->ptMinTrackSize.x = 500;   
    lpMMI->ptMinTrackSize.y = 500;      
    lpMMI ->ptMaxTrackSize.x = 800;
    lpMMI ->ptMaxTrackSize.y = 800; 
    CAcUiDialog::OnGetMinMaxInfo(lpMMI);  
}  

It didn't work. So I tried in an empty MFC application with CFrameWnd::OnGetMinMaxInfo(), it worked successfully. Meanwhile I noticed that ARXWizardMFCSupport offers a CAdUiDockFrame class, but I can't create a class based on it. So can anybody tell me why the function doesn't work and teach me how to achieve my goal?

Thanks a lot.

0 Likes
668 Views
2 Replies
Replies (2)
Message 2 of 3

thierry_prince
Advocate
Advocate

Hi,

 

In my application, I use some custom palettes.

For this purpose, I derive the CAdUiPaletteSet class for the docking palette set (CAdUiPaletteSet derives itself from CAdUiDockControlBar), and I derive from CAdUiPalette for the palettes.

To control the palette size, I use the GeMinimumSize() and GetMaximumSize() virtual methods.

 

In the case of a CAcUiDockControlBar or CAdUiDockControlBar, I would try the virtual methods GetFloatingMinSize() or OnUserSizing().

 

I hope this helps you.

 

Cheers,

Thierry

0 Likes
Message 3 of 3

Anonymous
Not applicable

It didn't work 😞

thank you all the same

0 Likes