Removed compilation warnings (mostly mismatches between the format string
for debug/trace printfs and the actual parameters, e.g. int vs long, etc) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -966,7 +966,7 @@ bool wxBitmap::Create(void *data, long type, int width, int height, int depth)
|
|||||||
|
|
||||||
if ( !handler )
|
if ( !handler )
|
||||||
{
|
{
|
||||||
wxLogDebug(wxT("Failed to create bitmap: no bitmap handler for type %d defined."), type);
|
wxLogDebug(wxT("Failed to create bitmap: no bitmap handler for type %ld defined."), type);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@@ -194,7 +194,7 @@ bool wxPrinterDC::StartDoc(const wxString& message)
|
|||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
{
|
{
|
||||||
DWORD lastError = GetLastError();
|
DWORD lastError = GetLastError();
|
||||||
wxLogDebug(wxT("wxDC::StartDoc failed with error: %d\n"), lastError);
|
wxLogDebug(wxT("wxDC::StartDoc failed with error: %ld\n"), lastError);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -554,7 +554,7 @@ STDMETHODIMP wxIDataObject::QueryGetData(FORMATETC *pformatetc)
|
|||||||
// the only one allowed by current COM implementation
|
// the only one allowed by current COM implementation
|
||||||
if ( pformatetc->lindex != -1 ) {
|
if ( pformatetc->lindex != -1 ) {
|
||||||
wxLogTrace(wxTRACE_OleCalls,
|
wxLogTrace(wxTRACE_OleCalls,
|
||||||
wxT("wxIDataObject::QueryGetData: bad lindex %d"),
|
wxT("wxIDataObject::QueryGetData: bad lindex %ld"),
|
||||||
pformatetc->lindex);
|
pformatetc->lindex);
|
||||||
|
|
||||||
return DV_E_LINDEX;
|
return DV_E_LINDEX;
|
||||||
@@ -563,7 +563,7 @@ STDMETHODIMP wxIDataObject::QueryGetData(FORMATETC *pformatetc)
|
|||||||
// we don't support anything other (THUMBNAIL, ICON, DOCPRINT...)
|
// we don't support anything other (THUMBNAIL, ICON, DOCPRINT...)
|
||||||
if ( pformatetc->dwAspect != DVASPECT_CONTENT ) {
|
if ( pformatetc->dwAspect != DVASPECT_CONTENT ) {
|
||||||
wxLogTrace(wxTRACE_OleCalls,
|
wxLogTrace(wxTRACE_OleCalls,
|
||||||
wxT("wxIDataObject::QueryGetData: bad dwAspect %d"),
|
wxT("wxIDataObject::QueryGetData: bad dwAspect %ld"),
|
||||||
pformatetc->dwAspect);
|
pformatetc->dwAspect);
|
||||||
|
|
||||||
return DV_E_DVASPECT;
|
return DV_E_DVASPECT;
|
||||||
|
@@ -864,7 +864,7 @@ bool wxToolBar::MSWOnNotify(int WXUNUSED(idCtrl),
|
|||||||
// the tooltips control created by the toolbar is sometimes Unicode, even
|
// the tooltips control created by the toolbar is sometimes Unicode, even
|
||||||
// in an ANSI application - this seems to be a bug in comctl32.dll v5
|
// in an ANSI application - this seems to be a bug in comctl32.dll v5
|
||||||
UINT code = hdr->code;
|
UINT code = hdr->code;
|
||||||
if ( (code != TTN_NEEDTEXTA) && (code != TTN_NEEDTEXTW) )
|
if ( (code != (UINT) TTN_NEEDTEXTA) && (code != (UINT) TTN_NEEDTEXTW) )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
HWND toolTipWnd = (HWND)::SendMessage((HWND)GetHWND(), TB_GETTOOLTIPS, 0, 0);
|
HWND toolTipWnd = (HWND)::SendMessage((HWND)GetHWND(), TB_GETTOOLTIPS, 0, 0);
|
||||||
|
@@ -735,7 +735,7 @@ void wxTopLevelWindowMSW::OnActivate(wxActivateEvent& event)
|
|||||||
if ( event.GetActive() )
|
if ( event.GetActive() )
|
||||||
{
|
{
|
||||||
// restore focus to the child which was last focused
|
// restore focus to the child which was last focused
|
||||||
wxLogTrace(_T("focus"), _T("wxTLW %08x activated."), m_hWnd);
|
wxLogTrace(_T("focus"), _T("wxTLW %08x activated."), (int) m_hWnd);
|
||||||
|
|
||||||
wxWindow *parent = m_winLastFocused ? m_winLastFocused->GetParent()
|
wxWindow *parent = m_winLastFocused ? m_winLastFocused->GetParent()
|
||||||
: NULL;
|
: NULL;
|
||||||
@@ -770,9 +770,9 @@ void wxTopLevelWindowMSW::OnActivate(wxActivateEvent& event)
|
|||||||
|
|
||||||
wxLogTrace(_T("focus"),
|
wxLogTrace(_T("focus"),
|
||||||
_T("wxTLW %08x deactivated, last focused: %08x."),
|
_T("wxTLW %08x deactivated, last focused: %08x."),
|
||||||
m_hWnd,
|
(int) m_hWnd,
|
||||||
m_winLastFocused ? GetHwndOf(m_winLastFocused)
|
(int) (m_winLastFocused ? GetHwndOf(m_winLastFocused)
|
||||||
: NULL);
|
: NULL));
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
@@ -2249,7 +2249,7 @@ LRESULT WXDLLEXPORT APIENTRY _EXPORT wxWndProc(HWND hWnd, UINT message, WPARAM w
|
|||||||
// trace all messages - useful for the debugging
|
// trace all messages - useful for the debugging
|
||||||
#ifdef __WXDEBUG__
|
#ifdef __WXDEBUG__
|
||||||
wxLogTrace(wxTraceMessages, wxT("Processing %s(wParam=%8lx, lParam=%8lx)"),
|
wxLogTrace(wxTraceMessages, wxT("Processing %s(wParam=%8lx, lParam=%8lx)"),
|
||||||
wxGetMessageName(message), wParam, lParam);
|
wxGetMessageName(message), (long) wParam, lParam);
|
||||||
#endif // __WXDEBUG__
|
#endif // __WXDEBUG__
|
||||||
|
|
||||||
wxWindowMSW *wnd = wxFindWinFromHandle((WXHWND) hWnd);
|
wxWindowMSW *wnd = wxFindWinFromHandle((WXHWND) hWnd);
|
||||||
@@ -2852,7 +2852,7 @@ void wxAssociateWinWithHandle(HWND hWnd, wxWindowMSW *win)
|
|||||||
if ( oldWin && (oldWin != win) )
|
if ( oldWin && (oldWin != win) )
|
||||||
{
|
{
|
||||||
wxLogDebug(wxT("HWND %X already associated with another window (%s)"),
|
wxLogDebug(wxT("HWND %X already associated with another window (%s)"),
|
||||||
hWnd, win->GetClassInfo()->GetClassName());
|
(int) hWnd, win->GetClassInfo()->GetClassName());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif // __WXDEBUG__
|
#endif // __WXDEBUG__
|
||||||
|
Reference in New Issue
Block a user