git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23804
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- changed wxCrashReport to generate minidumps instead of text files
- wxRadioButtons are now checked when they get focus (standard behaviour)
- several fixes to owner drawn menu items (Christian Sturmlechner)
- changed wxCrashReport to generate minidumps instead of text files
- wxRadioButtons are now checked when they get focus (standard behaviour)
- several fixes to owner drawn menu items (Christian Sturmlechner)
+- wxGauge now supports full 32 bit range (Miroslav Rajcic)
#endif // wxUSE_VALIDATORS
if (parent) parent->AddChild(this);
#endif // wxUSE_VALIDATORS
if (parent) parent->AddChild(this);
m_gaugePos = 0;
m_windowStyle = style;
m_gaugePos = 0;
m_windowStyle = style;
// Subclass again for purposes of dialog editing mode
SubclassWin((WXHWND) wx_button);
// Subclass again for purposes of dialog editing mode
SubclassWin((WXHWND) wx_button);
- SendMessage((HWND) GetHWND(), PBM_SETRANGE, 0, MAKELPARAM(0, range));
SetFont(parent->GetFont());
SetFont(parent->GetFont());
height = 28;
SetSize(x, y, width, height);
height = 28;
SetSize(x, y, width, height);
- ShowWindow((HWND) GetHWND(), SW_SHOW);
+ ShowWindow(GetHwnd(), SW_SHOW);
- SendMessage((HWND) GetHWND(), PBM_SETRANGE, 0, MAKELPARAM(0, r));
+#ifdef PBM_SETRANGE32
+ SendMessage(GetHwnd(), PBM_SETRANGE32, 0, r);
+#else // !PBM_SETRANGE32
+ // fall back to PBM_SETRANGE (limited to 16 bits)
+ SendMessage(GetHwnd(), PBM_SETRANGE, 0, MAKELPARAM(0, r));
+#endif // PBM_SETRANGE32/!PBM_SETRANGE32
}
void wxGauge95::SetValue(int pos)
{
m_gaugePos = pos;
}
void wxGauge95::SetValue(int pos)
{
m_gaugePos = pos;
- SendMessage((HWND) GetHWND(), PBM_SETPOS, pos, 0);
+ SendMessage(GetHwnd(), PBM_SETPOS, pos, 0);
}
int wxGauge95::GetShadowWidth() const
}
int wxGauge95::GetShadowWidth() const