SimpleWindow
载入中...
搜索中...
未找到
ScrollEnums.h
1#pragma once
2
3#include <Windows.h>
4
5namespace sw
6{
10 enum class ScrollOrientation {
11 Horizontal, // 水平滚动条
12 Vertical, // 垂直滚动条
13 };
14
18 enum class ScrollEvent {
19 LineUp = SB_LINEUP, // Scrolls one line up.
20 LineLeft = SB_LINELEFT, // Scrolls left by one unit.
21 LineDown = SB_LINEDOWN, // Scrolls one line down.
22 LineRight = SB_LINERIGHT, // Scrolls right by one unit.
23 PageUp = SB_PAGEUP, // Scrolls one page up.
24 PageLeft = SB_PAGELEFT, // Scrolls left by the width of the window.
25 PageDown = SB_PAGEDOWN, // Scrolls one page down.
26 PageRight = SB_PAGERIGHT, // Scrolls right by the width of the window.
27 ThumbPosition = SB_THUMBPOSITION, // The user has dragged the scroll box (thumb) and released the mouse button. The HIWORD indicates the position of the scroll box at the end of the drag operation.
28 ThubmTrack = SB_THUMBTRACK, // The user is dragging the scroll box. This message is sent repeatedly until the user releases the mouse button. The HIWORD indicates the position that the scroll box has been dragged to.
29 Top = SB_TOP, // Scrolls to the upper left.
30 Left = SB_LEFT, // Scrolls to the upper left.
31 Bottom = SB_BOTTOM, // Scrolls to the lower right.
32 Right = SB_RIGHT, // Scrolls to the lower right.
33 EndScroll = SB_ENDSCROLL, // Ends scroll.
34 };
35}