C++
ADUI_PORT CRuntimeClass* AdUiSetFloatingFrameClass( CRuntimeClass* pNewClass );
File
aduiDock.h
Description
When calling CFrameWnd::FloatControlBar(), applications will need to swap the floating frame class if the control bar passed to FloatControlBar() is a kind of CAdUiPaletteSet. Applications can perform this swap by calling AdUiSetFloatingFrameClass() before and after the call to FloatControlBar().
For example:
CMDIFrameWnd* pAcadFrame = acedGetAcadFrame(); CRuntimeClass* pCurrentFloatingFrameClass = AdUiSetFloatingFrameClass(RUNTIME_CLASS(AdUiGetRegisteredPaletteSetFloatingFrameClass()); pAcadFrame->FloatControlBar(pBar, CPoint(50,50)); AdUiSetFloatingFrameClass(pCurrentFloatingFrameClass);
Returns a pointer to the runtime class of the previous floating frame class (which is being replaced by the pNewClass value).
Parameters
Parameters | Description |
---|---|
pNewClass | Input pointer to the runtime class to be used when creating floating frames |