]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/statbr95.h
1. wxDialogs are now destroyed when they go out of scope
[wxWidgets.git] / include / wx / msw / statbr95.h
CommitLineData
2bda0e17
KB
1///////////////////////////////////////////////////////////////////////////////
2// Name: msw/statbr95.h
3// Purpose: native implementation of wxStatusBar
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 04.04.98
7// RCS-ID: $Id$
8// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
bbcdf8bc 9// Licence: wxWindows licence
2bda0e17
KB
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _STATBR95_H
13#define _STATBR95_H
14
0d3820b3
JS
15#ifdef __GNUG__
16#pragma interface "statbr95.h"
17#endif
18
47d67540 19#if wxUSE_NATIVE_STATUSBAR
2bda0e17
KB
20
21class WXDLLEXPORT wxStatusBar95 : public wxStatusBar
22{
23 DECLARE_DYNAMIC_CLASS(wxStatusBar95);
24
25public:
26 // ctors
27 wxStatusBar95();
565215b2 28 wxStatusBar95(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
2bda0e17
KB
29
30 // create status line
565215b2 31 bool Create(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
2bda0e17
KB
32
33 // a status line can have several (<256) fields numbered from 0
8b9518ee 34 virtual void SetFieldsCount(int number = 1, const int widths[] = NULL);
2bda0e17
KB
35
36 // each field of status line has it's own text
debe6624 37 virtual void SetStatusText(const wxString& text, int number = 0);
2bda0e17
KB
38 virtual wxString GetStatusText(int number = 0) const;
39
40 // set status line fields' widths
8b9518ee 41 virtual void SetStatusWidths(int n, const int widths_field[]);
2bda0e17
KB
42
43 // we're going to process WM_SIZE (of the parent window)
44 void OnSize(wxSizeEvent& event);
45
46 DECLARE_EVENT_TABLE()
47
48protected:
8b9518ee 49 void CopyFieldsWidth(const int widths[]);
2bda0e17
KB
50 void SetFieldsWidth();
51};
52
47d67540 53#endif // wxUSE_NATIVE_STATUSBAR
2bda0e17
KB
54
55#endif //_STATBR95_H