If I add a bitmap to the explorer toolbar for a button doing the following:
tbab.hInst = HINST_COMMCTRL;
tbab.nID = (int)IDB_STD_SMALL_COLOR;
hr = m_pShellBrowser->SendControlMsg(FCW_TOOLBAR, TB_ADDBITMAP, 0,
(LPARAM)&tbab, &lOffsetBitmap);
Should I be able to:
Reference the same bitmap on the toolbar using TB_GETBITMAP? (I've tried
this using SendControlMsg with no luck so far)
Remove the bitmap from the toolbar?
What I'm getting as is my extension always just calls SendControlMsg with
TB_ADDBITMAP every time a new shellview is created and the toolbars are
merged. I think this is causing a resource leak I have detected in my
extension, but I'm not 100% sure. All of the MS examples I've seen do it
the way I'm doing it...they don't ever seem to clean up the bitmaps that are
added.