1 // Windows/Control/StatusBar.h 2 3 #ifndef __WINDOWS_CONTROL_STATUSBAR_H 4 #define __WINDOWS_CONTROL_STATUSBAR_H 5 6 #include "Windows/Window.h" 7 #include "Windows/Defs.h" 8 9 class wxStatusBar; 10 11 namespace NWindows { 12 namespace NControl { 13 14 class CStatusBar // : public NWindows::CWindow 15 { 16 wxStatusBar * _statusBar; 17 public: CStatusBar()18 CStatusBar() : _statusBar(0) {} 19 20 void Attach(wxWindow * newWindow); 21 wxWindow * Detach(); 22 23 void SetText(int index, LPCTSTR text); 24 25 /* FIXME 26 bool Create(LONG style, LPCTSTR text, HWND hwndParent, UINT id) 27 { return (_window = ::CreateStatusWindow(style, text, hwndParent, id)) != 0; } 28 bool SetParts(int numParts, const int *edgePostions) 29 { return LRESULTToBool(SendMessage(SB_SETPARTS, numParts, (LPARAM)edgePostions)); } 30 bool SetText(LPCTSTR text) 31 { return CWindow::SetText(text); } 32 33 bool SetText(int index, LPCTSTR text, UINT type) 34 { return LRESULTToBool(SendMessage(SB_SETTEXT, index | type, (LPARAM)text)); } 35 bool SetText(int index, LPCTSTR text) 36 { return SetText(index, text, 0); } 37 void Simple(bool simple) 38 { SendMessage(SB_SIMPLE, BoolToBOOL(simple), 0); } 39 40 #ifndef _UNICODE 41 bool Create(LONG style, LPCWSTR text, HWND hwndParent, UINT id) 42 { return (_window = ::CreateStatusWindowW(style, text, hwndParent, id)) != 0; } 43 bool SetText(LPCWSTR text) 44 { return CWindow::SetText(text); } 45 bool SetText(int index, LPCWSTR text, UINT type) 46 { return LRESULTToBool(SendMessage(SB_SETTEXTW, index | type, (LPARAM)text)); } 47 bool SetText(int index, LPCWSTR text) 48 { return SetText(index, text, 0); } 49 #endif 50 */ 51 }; 52 53 }} 54 55 #endif 56 57