git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33965
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- // this code is unreachable but put it here to suppress warnings
+#ifndef __VISUALC__
+ // this code is unreachable but put it here to suppress warnings in some compilers
+ // and disable for others to supress warnings too
// if our parent had prepared a defer window handle for us, use it (unless
// we are a top level window)
// if our parent had prepared a defer window handle for us, use it (unless
// we are a top level window)
- wxWindowMSW *parent = GetParent();
+ wxWindowMSW *parent = GetParent();
HDWP hdwp = parent && !IsTopLevel() ? (HDWP)parent->m_hDWP : NULL;
#else
HDWP hdwp = 0;
HDWP hdwp = parent && !IsTopLevel() ? (HDWP)parent->m_hDWP : NULL;
#else
HDWP hdwp = 0;
wxMoveWindowDeferred(hdwp, this, GetHwnd(), xx, yy, width, height);
wxMoveWindowDeferred(hdwp, this, GetHwnd(), xx, yy, width, height);
// associate the text window with the spin button
(void)::SendMessage(GetHwnd(), UDM_SETBUDDY, (WPARAM)m_hwndBuddy, 0);
// associate the text window with the spin button
(void)::SendMessage(GetHwnd(), UDM_SETBUDDY, (WPARAM)m_hwndBuddy, 0);
- if ( !value.IsEmpty() )
long n;
if ( (wxSscanf(val, wxT("%lu"), &n) != 1) )
n = INT_MIN;
long n;
if ( (wxSscanf(val, wxT("%lu"), &n) != 1) )
n = INT_MIN;
if (n < m_min) n = m_min;
if (n > m_max) n = m_max;
if (n < m_min) n = m_min;
if (n > m_max) n = m_max;
// if our parent had prepared a defer window handle for us, use it (unless
// we are a top level window)
wxWindowMSW *parent = GetParent();
// if our parent had prepared a defer window handle for us, use it (unless
// we are a top level window)
wxWindowMSW *parent = GetParent();
#if USE_DEFERRED_SIZING
HDWP hdwp = parent && !IsTopLevel() ? (HDWP)parent->m_hDWP : NULL;
#else
HDWP hdwp = 0;
#if USE_DEFERRED_SIZING
HDWP hdwp = parent && !IsTopLevel() ? (HDWP)parent->m_hDWP : NULL;
#else
HDWP hdwp = 0;
// 1) The buddy window
wxMoveWindowDeferred(hdwp, this, GetBuddyHwnd(),
// 1) The buddy window
wxMoveWindowDeferred(hdwp, this, GetBuddyHwnd(),