]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/fl/dyntbarhnd.cpp
Applied patch [ 1174270 ] small fixes to wxGenericDirCtrl
[wxWidgets.git] / contrib / src / fl / dyntbarhnd.cpp
CommitLineData
8e08b761 1/////////////////////////////////////////////////////////////////////////////
4cbc57f0
JS
2// Name: dyntbarhnd.cpp
3// Purpose: cbDynToolBarDimHandler implementation.
8e08b761
JS
4// Author: Aleksandras Gluchovas
5// Modified by:
6// Created: 23/01/99
7// RCS-ID: $Id$
8// Copyright: (c) Aleksandras Gluchovas
4cbc57f0 9// Licence: wxWindows licence
8e08b761
JS
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
8e08b761
JS
23#ifndef WX_PRECOMP
24#include "wx/wx.h"
25#endif
26
27#include "wx/fl/dyntbarhnd.h"
8e08b761
JS
28/***** Implementation for class cbDynToolBarDimHandler *****/
29
30IMPLEMENT_DYNAMIC_CLASS( cbDynToolBarDimHandler, cbBarDimHandlerBase )
31
196be0f1 32void cbDynToolBarDimHandler::OnChangeBarState(cbBarInfo* WXUNUSED(pBar), int WXUNUSED(newState) )
8e08b761 33{
4cbc57f0 34 // nothing
8e08b761
JS
35}
36
37void cbDynToolBarDimHandler::OnResizeBar( cbBarInfo* pBar,
4cbc57f0
JS
38 const wxSize& given,
39 wxSize& preferred )
8e08b761 40{
4cbc57f0 41 wxASSERT( pBar->mpBarWnd ); // DBG:: should be present
8e08b761 42
4cbc57f0 43 wxDynamicToolBar* pTBar = (wxDynamicToolBar*)pBar->mpBarWnd;
8e08b761 44
4cbc57f0 45 pTBar->GetPreferredDim( given, preferred );
8e08b761
JS
46}
47