]> git.saurik.com Git - wxWidgets.git/blob - utils/framelayout/src/dyntbarhnd.cpp
pass correct key code in TREE_KEY_DOWN event
[wxWidgets.git] / utils / framelayout / src / 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 "dyntbar.cpp"
14 #pragma interface "dyntbar.cpp"
15 #endif
16
17 // For compilers that support precompilation, includes "wx/wx.h".
18 #include "wx/wxprec.h"
19
20 /*
21 #ifdef __BORLANDC__
22 #pragma hdrstop
23 #endif
24 */
25
26 #ifndef WX_PRECOMP
27 #include "wx/wx.h"
28 #endif
29
30 #include "dyntbarhnd.h"
31
32 /***** Implementation for class cbDynToolBarDimHandler *****/
33
34 IMPLEMENT_DYNAMIC_CLASS( cbDynToolBarDimHandler, cbBarDimHandlerBase )
35
36 void cbDynToolBarDimHandler::OnChangeBarState(cbBarInfo* pBar, int newState )
37 {
38 // nothing
39 }
40
41 void cbDynToolBarDimHandler::OnResizeBar( cbBarInfo* pBar,
42 const wxSize& given,
43 wxSize& preferred )
44 {
45 wxASSERT( pBar->mpBarWnd ); // DBG:: should be present
46
47 wxDynamicToolBar* pTBar = (wxDynamicToolBar*)pBar->mpBarWnd;
48
49 pTBar->GetPreferredDim( given, preferred );
50 }