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