use HWND in tracing messages

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-06 19:14:19 +00:00
parent c74dc1630d
commit 13e4c4d981

View File

@@ -2110,10 +2110,9 @@ 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__
#if wxUSE_LOG wxLogTrace(wxTraceMessages,
wxLogTrace(wxTraceMessages, wxT("Processing %s(wParam=%8lx, lParam=%8lx)"), wxT("Processing %s(hWnd=%08lx, wParam=%8lx, lParam=%8lx)"),
wxGetMessageName(message), (long) wParam, lParam); wxGetMessageName(message), (long)hWnd, (long)wParam, lParam);
#endif // wxUSE_LOG
#endif // __WXDEBUG__ #endif // __WXDEBUG__
wxWindowMSW *wnd = wxFindWinFromHandle((WXHWND) hWnd); wxWindowMSW *wnd = wxFindWinFromHandle((WXHWND) hWnd);
@@ -2756,10 +2755,8 @@ long wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam
if ( !processed ) if ( !processed )
{ {
#ifdef __WXDEBUG__ #ifdef __WXDEBUG__
#if wxUSE_LOG
wxLogTrace(wxTraceMessages, wxT("Forwarding %s to DefWindowProc."), wxLogTrace(wxTraceMessages, wxT("Forwarding %s to DefWindowProc."),
wxGetMessageName(message)); wxGetMessageName(message));
#endif // wxUSE_LOG
#endif // __WXDEBUG__ #endif // __WXDEBUG__
rc.result = MSWDefWindowProc(message, wParam, lParam); rc.result = MSWDefWindowProc(message, wParam, lParam);
} }