compile warnings removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -254,7 +254,9 @@ bool wxToolBar95::CreateTools()
|
|||||||
replaceBitmap.nIDNew = (UINT) (HBITMAP) m_hBitmap;
|
replaceBitmap.nIDNew = (UINT) (HBITMAP) m_hBitmap;
|
||||||
replaceBitmap.nButtons = noButtons;
|
replaceBitmap.nButtons = noButtons;
|
||||||
if (::SendMessage((HWND) GetHWND(), TB_REPLACEBITMAP, (WPARAM) 0, (LPARAM) &replaceBitmap) == -1)
|
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);
|
||||||
|
|
||||||
@@ -273,7 +275,9 @@ bool wxToolBar95::CreateTools()
|
|||||||
addBitmap.hInst = 0;
|
addBitmap.hInst = 0;
|
||||||
addBitmap.nID = (UINT)m_hBitmap;
|
addBitmap.nID = (UINT)m_hBitmap;
|
||||||
if (::SendMessage((HWND) GetHWND(), TB_ADDBITMAP, (WPARAM) noButtons, (LPARAM) &addBitmap) == -1)
|
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.
|
||||||
|
Reference in New Issue
Block a user