]>
git.saurik.com Git - wxWidgets.git/blob - utils/framelayout/src/dyntbarhnd.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Contrib. demo
4 // Author: Aleksandras Gluchovas
8 // Copyright: (c) Aleksandras Gluchovas
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "dyntbar.cpp"
14 #pragma interface "dyntbar.cpp"
17 // For compilers that support precompilation, includes "wx/wx.h".
18 #include "wx/wxprec.h"
30 #include "dyntbarhnd.h"
32 /***** Implementation for class cbDynToolBarDimHandler *****/
34 IMPLEMENT_DYNAMIC_CLASS( cbDynToolBarDimHandler
, cbBarDimHandlerBase
)
36 void cbDynToolBarDimHandler::OnChangeBarState(cbBarInfo
* pBar
, int newState
)
41 void cbDynToolBarDimHandler::OnResizeBar( cbBarInfo
* pBar
,
45 wxASSERT( pBar
->mpBarWnd
); // DBG:: should be present
47 wxDynamicToolBar
* pTBar
= (wxDynamicToolBar
*)pBar
->mpBarWnd
;
49 pTBar
->GetPreferredDim( given
, preferred
);