]>
Commit | Line | Data |
---|---|---|
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 | ||
8e08b761 JS |
12 | // For compilers that support precompilation, includes "wx/wx.h". |
13 | #include "wx/wxprec.h" | |
14 | ||
15 | #ifdef __BORLANDC__ | |
16 | #pragma hdrstop | |
17 | #endif | |
18 | ||
8e08b761 JS |
19 | #ifndef WX_PRECOMP |
20 | #include "wx/wx.h" | |
21 | #endif | |
22 | ||
23 | #include "wx/fl/dyntbarhnd.h" | |
8e08b761 JS |
24 | /***** Implementation for class cbDynToolBarDimHandler *****/ |
25 | ||
26 | IMPLEMENT_DYNAMIC_CLASS( cbDynToolBarDimHandler, cbBarDimHandlerBase ) | |
27 | ||
196be0f1 | 28 | void cbDynToolBarDimHandler::OnChangeBarState(cbBarInfo* WXUNUSED(pBar), int WXUNUSED(newState) ) |
8e08b761 | 29 | { |
4cbc57f0 | 30 | // nothing |
8e08b761 JS |
31 | } |
32 | ||
33 | void cbDynToolBarDimHandler::OnResizeBar( cbBarInfo* pBar, | |
4cbc57f0 JS |
34 | const wxSize& given, |
35 | wxSize& preferred ) | |
8e08b761 | 36 | { |
4cbc57f0 | 37 | wxASSERT( pBar->mpBarWnd ); // DBG:: should be present |
8e08b761 | 38 | |
4cbc57f0 | 39 | wxDynamicToolBar* pTBar = (wxDynamicToolBar*)pBar->mpBarWnd; |
8e08b761 | 40 | |
4cbc57f0 | 41 | pTBar->GetPreferredDim( given, preferred ); |
8e08b761 JS |
42 | } |
43 |