{
wxFatalExit();
- // 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
return -1;
+#endif // !__VISUALC__
}
}
// 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
+ wxWindowMSW *parent = GetParent();
HDWP hdwp = parent && !IsTopLevel() ? (HDWP)parent->m_hDWP : NULL;
#else
HDWP hdwp = 0;
-#endif
+#endif
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);
- if ( !value.IsEmpty() )
+ if ( !value.empty() )
{
SetValue(value);
}
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 our parent had prepared a defer window handle for us, use it (unless
// we are a top level window)
wxWindowMSW *parent = GetParent();
- int originalX = x;
#if USE_DEFERRED_SIZING
HDWP hdwp = parent && !IsTopLevel() ? (HDWP)parent->m_hDWP : NULL;
#else
HDWP hdwp = 0;
-#endif
+#endif
// 1) The buddy window
wxMoveWindowDeferred(hdwp, this, GetBuddyHwnd(),