Defines whether smooth scrolling is used.
C
BOOL WINAPI SftBox_GetUseSmoothScroll(HWND hwndCtl); void WINAPI SftBox_SetUseSmoothScroll(HWND hwndCtl, BOOL fSet); void SftBox_SmoothScrollOFF(HWND hwndCtl); void SftBox_SmoothScrollON(HWND hwndCtl);
C++
BOOL CSftBox::GetUseSmoothScroll() const; void CSftBox::SetUseSmoothScroll(BOOL fSet); void CSftBox::SmoothScrollOFF(); void CSftBox::SmoothScrollON();
hwndCtl
The window handle of the combo box control.
fSet
Set to TRUE to enable smooth scrolling, otherwise set to FALSE to disable.
GetUseSmoothScroll returns the current setting. Smooth scrolling is enabled if the value is 1 (TRUE) or greater.
The GetUseSmoothScroll and SetUseSmoothScroll functions define whether smooth scrolling is used when the dropdown portion is scrolled vertically.
Smooth scrolling is only used if column headers are not shown in the dropdown portion (partial window scrolling using smooth scrolling is not possible). The scrolling is animated only if the Windows UI effects and the combo box animation are enabled in the system settings. By default, smooth scrolling is enabled.
SmoothScrollOFF and SmoothScrollON can be used to temporarily suspend smooth scrolling. SmoothScrollOFF decrements the current setting and SmoothScrollON increments it. Calls can be nested, but each call to SmoothScrollOFF must be matched by a call to SmoothScrollON. Smooth scrolling is used while the setting is 1 (TRUE) or greater. In C, SftBox_SmoothScrollOFF and SftBox_SmoothScrollON are implemented as macros.
See Also C/C++ API | Categories | Notifications