diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2017-09-17 16:25:09 +0300 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2017-09-17 16:25:09 +0300 |
commit | 4b42369bedd87f02c959303a817e7974bfd580c6 (patch) | |
tree | 6ab28fb01d5dca0a76094dea38fc8f2ed932d679 /plugins/TopToolBar/src/topbutton.cpp | |
parent | 11627574479496d731b5c8954e13c459d6bba8ba (diff) |
TopToolBar: all icons added to icolib (fixes #303)
Diffstat (limited to 'plugins/TopToolBar/src/topbutton.cpp')
-rw-r--r-- | plugins/TopToolBar/src/topbutton.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/TopToolBar/src/topbutton.cpp b/plugins/TopToolBar/src/topbutton.cpp index 75a39c03a4..4faef0753d 100644 --- a/plugins/TopToolBar/src/topbutton.cpp +++ b/plugins/TopToolBar/src/topbutton.cpp @@ -151,9 +151,8 @@ void TopButtonInt::SetBitmap() curstyle &= (~SS_ICON);
if (dwFlags & TTBBF_ISSEPARATOR) {
- SetWindowLongPtr(hwnd, GWL_STYLE, curstyle | SS_BITMAP);
- SendMessage(hwnd, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBmpSeparator);
- SendMessage(hwnd, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBmpSeparator);
+ SetWindowLongPtr(hwnd, GWL_STYLE, curstyle | SS_ICON);
+ SendMessage(hwnd, BM_SETIMAGE, IMAGE_ICON, (LPARAM)IcoLib_GetIconByHandle(iconList[9].hIcolib));
}
else {
if (GetWindowLongPtr(hwnd, GWL_STYLE) & SS_ICON)
|