git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2840
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
replaceBitmap.nIDNew = (UINT) (HBITMAP) m_hBitmap;
replaceBitmap.nButtons = noButtons;
if (::SendMessage((HWND) GetHWND(), TB_REPLACEBITMAP, (WPARAM) 0, (LPARAM) &replaceBitmap) == -1)
replaceBitmap.nIDNew = (UINT) (HBITMAP) m_hBitmap;
replaceBitmap.nButtons = noButtons;
if (::SendMessage((HWND) GetHWND(), TB_REPLACEBITMAP, (WPARAM) 0, (LPARAM) &replaceBitmap) == -1)
wxFAIL_MSG(_T("Could not add bitmap to toolbar"));
wxFAIL_MSG(_T("Could not add bitmap to toolbar"));
::DeleteObject((HBITMAP) oldToolBarBitmap);
::DeleteObject((HBITMAP) oldToolBarBitmap);
addBitmap.hInst = 0;
addBitmap.nID = (UINT)m_hBitmap;
if (::SendMessage((HWND) GetHWND(), TB_ADDBITMAP, (WPARAM) noButtons, (LPARAM) &addBitmap) == -1)
addBitmap.hInst = 0;
addBitmap.nID = (UINT)m_hBitmap;
if (::SendMessage((HWND) GetHWND(), TB_ADDBITMAP, (WPARAM) noButtons, (LPARAM) &addBitmap) == -1)
wxFAIL_MSG(_T("Could not add bitmap to toolbar"));
wxFAIL_MSG(_T("Could not add bitmap to toolbar"));
}
// Now add the buttons.
}
// Now add the buttons.