diff options
Diffstat (limited to 'Windows/Control/StatusBar.h')
-rwxr-xr-x | Windows/Control/StatusBar.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Windows/Control/StatusBar.h b/Windows/Control/StatusBar.h index 8adf1c05..e8018a56 100755 --- a/Windows/Control/StatusBar.h +++ b/Windows/Control/StatusBar.h @@ -15,12 +15,12 @@ public: bool Create(LONG style, LPCTSTR text, HWND hwndParent, UINT id) { return (_window = ::CreateStatusWindow(style, text, hwndParent, id)) != 0; } bool SetParts(int numParts, const int *edgePostions) - { return BOOLToBool(SendMessage(SB_SETPARTS, numParts, (LPARAM)edgePostions)); } + { return LRESULTToBool(SendMessage(SB_SETPARTS, numParts, (LPARAM)edgePostions)); } bool SetText(LPCTSTR text) { return CWindow::SetText(text); } bool SetText(int index, LPCTSTR text, UINT type) - { return BOOLToBool(SendMessage(SB_SETTEXT, index | type, (LPARAM)text)); } + { return LRESULTToBool(SendMessage(SB_SETTEXT, index | type, (LPARAM)text)); } bool SetText(int index, LPCTSTR text) { return SetText(index, text, 0); } void Simple(bool simple) @@ -32,7 +32,7 @@ public: bool SetText(LPCWSTR text) { return CWindow::SetText(text); } bool SetText(int index, LPCWSTR text, UINT type) - { return BOOLToBool(SendMessage(SB_SETTEXTW, index | type, (LPARAM)text)); } + { return LRESULTToBool(SendMessage(SB_SETTEXTW, index | type, (LPARAM)text)); } bool SetText(int index, LPCWSTR text) { return SetText(index, text, 0); } #endif |