fixed more printf() warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-07-16 14:23:24 +00:00
parent 344d296530
commit 993eebf1ba

View File

@@ -285,8 +285,8 @@ void wxControlContainer::HandleOnWindowDestroy(wxWindowBase *child)
bool wxControlContainer::DoSetFocus() bool wxControlContainer::DoSetFocus()
{ {
wxLogTrace(_T("focus"), _T("SetFocus on wxPanel 0x%08x."), wxLogTrace(_T("focus"), _T("SetFocus on wxPanel 0x%08lx."),
m_winParent->GetHandle()); (unsigned long)m_winParent->GetHandle());
// If the panel gets the focus *by way of getting it set directly* // If the panel gets the focus *by way of getting it set directly*
// we move the focus to the first window that can get it. // we move the focus to the first window that can get it.
@@ -337,8 +337,8 @@ bool wxControlContainer::DoSetFocus()
void wxControlContainer::HandleOnFocus(wxFocusEvent& event) void wxControlContainer::HandleOnFocus(wxFocusEvent& event)
{ {
wxLogTrace(_T("focus"), _T("OnFocus on wxPanel 0x%08x, name: %s"), wxLogTrace(_T("focus"), _T("OnFocus on wxPanel 0x%08lx, name: %s"),
m_winParent->GetHandle(), (unsigned long)m_winParent->GetHandle(),
m_winParent->GetName().c_str() ); m_winParent->GetName().c_str() );
// If we panel got the focus *by way of getting clicked on* // If we panel got the focus *by way of getting clicked on*
@@ -371,8 +371,8 @@ bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused)
if ( (*childLastFocused)->GetParent() == win ) if ( (*childLastFocused)->GetParent() == win )
{ {
wxLogTrace(_T("focus"), wxLogTrace(_T("focus"),
_T("SetFocusToChild() => last child (0x%08x)."), _T("SetFocusToChild() => last child (0x%08lx)."),
(*childLastFocused)->GetHandle()); (unsigned long)(*childLastFocused)->GetHandle());
// not SetFocusFromKbd(): we're restoring focus back to the old // not SetFocusFromKbd(): we're restoring focus back to the old
// window and not setting it as the result of a kbd action // window and not setting it as the result of a kbd action
@@ -395,8 +395,8 @@ bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused)
if ( child->AcceptsFocusFromKeyboard() && !child->IsTopLevel() ) if ( child->AcceptsFocusFromKeyboard() && !child->IsTopLevel() )
{ {
wxLogTrace(_T("focus"), wxLogTrace(_T("focus"),
_T("SetFocusToChild() => first child (0x%08x)."), _T("SetFocusToChild() => first child (0x%08lx)."),
child->GetHandle()); (unsigned long)child->GetHandle());
*childLastFocused = child; // should be redundant, but it is not *childLastFocused = child; // should be redundant, but it is not
child->SetFocusFromKbd(); child->SetFocusFromKbd();