]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/fl/dyntbarhnd.cpp
reverted the fix for Unicode compilation with VC++ as it breaks other ports (and...
[wxWidgets.git] / contrib / src / fl / dyntbarhnd.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: No names yet.
3 // Purpose: Contrib. demo
4 // Author: Aleksandras Gluchovas
5 // Modified by:
6 // Created: 23/01/99
7 // RCS-ID: $Id$
8 // Copyright: (c) Aleksandras Gluchovas
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "dyntbarhnd.h"
14 #endif
15
16 // For compilers that support precompilation, includes "wx/wx.h".
17 #include "wx/wxprec.h"
18
19 #ifdef __BORLANDC__
20 #pragma hdrstop
21 #endif
22
23
24 #ifndef WX_PRECOMP
25 #include "wx/wx.h"
26 #endif
27
28 #include "wx/fl/dyntbarhnd.h"
29
30 /***** Implementation for class cbDynToolBarDimHandler *****/
31
32 IMPLEMENT_DYNAMIC_CLASS( cbDynToolBarDimHandler, cbBarDimHandlerBase )
33
34 void cbDynToolBarDimHandler::OnChangeBarState(cbBarInfo* pBar, int newState )
35 {
36 // nothing
37 }
38
39 void cbDynToolBarDimHandler::OnResizeBar( cbBarInfo* pBar,
40 const wxSize& given,
41 wxSize& preferred )
42 {
43 wxASSERT( pBar->mpBarWnd ); // DBG:: should be present
44
45 wxDynamicToolBar* pTBar = (wxDynamicToolBar*)pBar->mpBarWnd;
46
47 pTBar->GetPreferredDim( given, preferred );
48 }
49