On December 27, 2002 01:18 am, Chris Morgan wrote:
+/* Return the corresponding text for a given scroll value */ +static inline LPSTR debugscrollcode(int nScrollCode) +{ + switch(nScrollCode) + { + case SB_LINELEFT: return "SB_LINELEFT"; + case SB_LINERIGHT: return "SB_LINERIGHT"; + case SB_PAGELEFT: return "SB_PAGELEFT"; + case SB_PAGERIGHT: return "SB_PAGERIGHT"; + case SB_THUMBPOSITION: return "SB_THUMBPOSITION"; + case SB_THUMBTRACK: return "SB_THUMBTRACK"; + case SB_ENDSCROLL: return "SB_ENDSCROLL"; + case SB_INTERNAL: return "SB_INTERNAL"; + default: return "unknown"; + } +}
Sorry to be a nag, but please use 4-space indents, like most of the code in there. 2-space indented code is old, and it's a mark for me to look over it, all new code should be 4-space indented. -- Dimi.
participants (1)
-
Dimitrie O. Paun