From 0130a066dfd9f58b734bbc8347a4f4f5e006667c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 8 Jul 2023 20:15:38 +0100 Subject: [PATCH] Make section comments in wxSpinButton more accurate No changes whatsoever, just improve the comments to correspond to the actual functions under them. --- src/msw/spinbutt.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/msw/spinbutt.cpp b/src/msw/spinbutt.cpp index 9146cb7a8d..306c577fa9 100644 --- a/src/msw/spinbutt.cpp +++ b/src/msw/spinbutt.cpp @@ -166,7 +166,7 @@ wxSize wxSpinButton::DoGetBestSize() const } // ---------------------------------------------------------------------------- -// Attributes +// value and range // ---------------------------------------------------------------------------- int wxSpinButton::GetValue() const @@ -231,6 +231,10 @@ void wxSpinButton::SetRange(int minVal, int maxVal) } } +// ---------------------------------------------------------------------------- +// event generation +// ---------------------------------------------------------------------------- + bool wxSpinButton::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam, WXWORD WXUNUSED(pos), WXHWND control) { @@ -289,6 +293,10 @@ bool wxSpinButton::MSWOnNotify(int WXUNUSED(idCtrl), WXLPARAM lParam, WXLPARAM * return processed; } +// ---------------------------------------------------------------------------- +// increment +// ---------------------------------------------------------------------------- + void wxSpinButton::SetIncrement(int value) { UDACCEL accel;