From: Jacob Czekalla jacobczekalla@gmail.com
--- dlls/comdlg32/itemdlg.c | 6 ++++-- include/commctrl.h | 1 - 2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/comdlg32/itemdlg.c b/dlls/comdlg32/itemdlg.c index 4a030575230..f7c5b17a7dd 100644 --- a/dlls/comdlg32/itemdlg.c +++ b/dlls/comdlg32/itemdlg.c @@ -1898,6 +1898,7 @@ static void init_toolbar(FileDialogImpl *This, HWND hwnd) TBADDBITMAP tbab; TBBUTTON button[3]; int height; + int navUpImgIndex;
htoolbar = CreateWindowExW(0, TOOLBARCLASSNAMEW, NULL, TBSTYLE_FLAT | WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, @@ -1907,7 +1908,8 @@ static void init_toolbar(FileDialogImpl *This, HWND hwnd) tbab.nID = IDB_HIST_LARGE_COLOR; SendMessageW(htoolbar, TB_ADDBITMAP, 0, (LPARAM)&tbab); tbab.nID = IDB_VIEW_LARGE_COLOR; - SendMessageW(htoolbar, TB_ADDBITMAP, 0, (LPARAM)&tbab); + navUpImgIndex = SendMessageW(htoolbar, TB_ADDBITMAP, 0, (LPARAM)&tbab); + navUpImgIndex += VIEW_PARENTFOLDER;
button[0].iBitmap = HIST_BACK; button[0].idCommand = IDC_NAVBACK; @@ -1923,7 +1925,7 @@ static void init_toolbar(FileDialogImpl *This, HWND hwnd) button[1].dwData = 0; button[1].iString = 0;
- button[2].iBitmap = HIST_UP; + button[2].iBitmap = navUpImgIndex; button[2].idCommand = IDC_NAVUP; button[2].fsState = TBSTATE_ENABLED; button[2].fsStyle = BTNS_BUTTON; diff --git a/include/commctrl.h b/include/commctrl.h index b4653fa8fad..a54de13d8b2 100644 --- a/include/commctrl.h +++ b/include/commctrl.h @@ -1472,7 +1472,6 @@ typedef struct tagTBADDBITMAP { #define HIST_FAVORITES 2 #define HIST_ADDTOFAVORITES 3 #define HIST_VIEWTREE 4 -#define HIST_UP 13
typedef struct tagTBSAVEPARAMSA { HKEY hkr;