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