aboutsummaryrefslogtreecommitdiff
path: root/CPP/Windows/Control/StatusBar.h
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/Windows/Control/StatusBar.h')
-rw-r--r--CPP/Windows/Control/StatusBar.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/CPP/Windows/Control/StatusBar.h b/CPP/Windows/Control/StatusBar.h
index 988b847..38aca47 100644
--- a/CPP/Windows/Control/StatusBar.h
+++ b/CPP/Windows/Control/StatusBar.h
@@ -1,7 +1,7 @@
1// Windows/Control/StatusBar.h 1// Windows/Control/StatusBar.h
2 2
3#ifndef __WINDOWS_CONTROL_STATUSBAR_H 3#ifndef ZIP7_INC_WINDOWS_CONTROL_STATUSBAR_H
4#define __WINDOWS_CONTROL_STATUSBAR_H 4#define ZIP7_INC_WINDOWS_CONTROL_STATUSBAR_H
5 5
6#include "../Window.h" 6#include "../Window.h"
7 7
@@ -12,7 +12,7 @@ class CStatusBar: public NWindows::CWindow
12{ 12{
13public: 13public:
14 bool Create(LONG style, LPCTSTR text, HWND hwndParent, UINT id) 14 bool Create(LONG style, LPCTSTR text, HWND hwndParent, UINT id)
15 { return (_window = ::CreateStatusWindow(style, text, hwndParent, id)) != 0; } 15 { return (_window = ::CreateStatusWindow(style, text, hwndParent, id)) != NULL; }
16 bool SetText(LPCTSTR text) 16 bool SetText(LPCTSTR text)
17 { return CWindow::SetText(text); } 17 { return CWindow::SetText(text); }
18 bool SetText(unsigned index, LPCTSTR text, UINT type) 18 bool SetText(unsigned index, LPCTSTR text, UINT type)
@@ -22,7 +22,7 @@ public:
22 22
23 #ifndef _UNICODE 23 #ifndef _UNICODE
24 bool Create(LONG style, LPCWSTR text, HWND hwndParent, UINT id) 24 bool Create(LONG style, LPCWSTR text, HWND hwndParent, UINT id)
25 { return (_window = ::CreateStatusWindowW(style, text, hwndParent, id)) != 0; } 25 { return (_window = ::CreateStatusWindowW(style, text, hwndParent, id)) != NULL; }
26 bool SetText(LPCWSTR text) 26 bool SetText(LPCWSTR text)
27 { return CWindow::SetText(text); } 27 { return CWindow::SetText(text); }
28 bool SetText(unsigned index, LPCWSTR text, UINT type) 28 bool SetText(unsigned index, LPCWSTR text, UINT type)
@@ -34,7 +34,7 @@ public:
34 bool SetParts(unsigned numParts, const int *edgePostions) 34 bool SetParts(unsigned numParts, const int *edgePostions)
35 { return LRESULTToBool(SendMsg(SB_SETPARTS, numParts, (LPARAM)edgePostions)); } 35 { return LRESULTToBool(SendMsg(SB_SETPARTS, numParts, (LPARAM)edgePostions)); }
36 void Simple(bool simple) 36 void Simple(bool simple)
37 { SendMsg(SB_SIMPLE, BoolToBOOL(simple), 0); } 37 { SendMsg(SB_SIMPLE, (WPARAM)BoolToBOOL(simple), 0); }
38}; 38};
39 39
40}} 40}}