diff options
Diffstat (limited to 'CPP/Windows/Control/ToolBar.h')
-rwxr-xr-x | CPP/Windows/Control/ToolBar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CPP/Windows/Control/ToolBar.h b/CPP/Windows/Control/ToolBar.h index ff5cafd2..4bd21531 100755 --- a/CPP/Windows/Control/ToolBar.h +++ b/CPP/Windows/Control/ToolBar.h @@ -15,7 +15,7 @@ public: bool GetMaxSize(LPSIZE size) { return LRESULTToBool(SendMessage(TB_GETMAXSIZE, 0, (LPARAM)size)); } bool EnableButton(UINT buttonID, bool enable) - { return LRESULTToBool(SendMessage(TB_ENABLEBUTTON, buttonID, + { return LRESULTToBool(SendMessage(TB_ENABLEBUTTON, buttonID, MAKELONG(BoolToBOOL(enable), 0))); } void ButtonStructSize() { SendMessage(TB_BUTTONSTRUCTSIZE, sizeof(TBBUTTON)); } |