]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/statbr95.h
Added #define wxHelpController to help.h; added wxWinHelpController::Quit code
[wxWidgets.git] / include / wx / msw / statbr95.h
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>
9 // Licence: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _STATBR95_H
13 #define _STATBR95_H
14
15 #if USE_NATIVE_STATUSBAR
16
17 class WXDLLEXPORT wxStatusBar95 : public wxStatusBar
18 {
19 DECLARE_DYNAMIC_CLASS(wxStatusBar95);
20
21 public:
22 // ctors
23 wxStatusBar95();
24 wxStatusBar95(wxWindow *parent, wxWindowID id = -1, long style = wxSB_SIZEGRIP);
25
26 // create status line
27 bool Create(wxWindow *parent, wxWindowID id = -1, long style = wxSB_SIZEGRIP);
28
29 // a status line can have several (<256) fields numbered from 0
30 virtual void SetFieldsCount(int number = 1, const int *widths = NULL);
31
32 // each field of status line has it's own text
33 virtual void SetStatusText(const wxString& text, const int number = 0);
34 virtual wxString GetStatusText(int number = 0) const;
35
36 // set status line fields' widths
37 virtual void SetStatusWidths(int n, const int *widths_field);
38
39 // we're going to process WM_SIZE (of the parent window)
40 void OnSize(wxSizeEvent& event);
41
42 DECLARE_EVENT_TABLE()
43
44 protected:
45 void CopyFieldsWidth(const int *widths);
46 void SetFieldsWidth();
47 };
48
49 #endif // USE_NATIVE_STATUSBAR
50
51 #endif //_STATBR95_H