Add messaging for SB_CTL bars to scroll.c
Dimitrie O. Paun
dpaun at rogers.com
Wed Mar 5 21:49:13 CST 2003
On March 5, 2003 09:22 pm, Andrew Johnston wrote:
> +/* Determine if the info is valid */
> +#define SCROLL_INFO_INVALID(info) \
> + ((info->fMask & ~(SIF_ALL | SIF_DISABLENOSCROLL)) || \
> + ((info->cbSize != sizeof(*info)) && \
> + (info->cbSize != sizeof(*info) - sizeof(info->nTrackPos))))
Please use inline functions for this sort of thing.
Also, it's typically better to ask the positive question:
inline static BOOL SCROLL_IsScrollBarInfoValid(SCROLLBAR_INFO *infoPtr)
{
/* ... */
}
--
Dimi.
More information about the wine-devel
mailing list