21 int inXOrigin,
int inYOrigin,
int inXSize,
int inYSize)
45 for (
int i = 0; i < 2; ++i)
59 SetWindowText(
mHandle, title.c_str());
64 POINT point = {
static_cast<LONG
>(
x), static_cast<LONG>(y) };
65 ClientToScreen(
mHandle, &point);
66 SetCursorPos(point.x, point.y);
73 ScreenToClient(
mHandle, &point);
74 x =
static_cast<int>(point.x);
75 y =
static_cast<int>(point.y);
116 info.fMask = SIF_POS;
117 GetScrollInfo(
mHandle, bar, &info);
118 int delta = info.nMax - info.nPos;
123 SetScrollInfo(
mHandle, bar, &info, TRUE);
131 info.fMask = SIF_POS;
132 GetScrollInfo(
mHandle, bar, &info);
133 int delta = info.nPos - info.nMin;
138 SetScrollInfo(
mHandle, bar, &info, TRUE);
146 info.fMask = SIF_POS;
147 GetScrollInfo(
mHandle, bar, &info);
148 int delta = info.nMax - info.nPos;
153 SetScrollInfo(
mHandle, bar, &info, TRUE);
161 info.fMask = SIF_POS;
162 GetScrollInfo(
mHandle, bar, &info);
163 int delta = info.nPos - info.nMin;
168 SetScrollInfo(
mHandle, bar, &info, TRUE);
176 info.fMask = SIF_TRACKPOS;
177 GetScrollInfo(
mHandle, bar, &info);
178 return info.nTrackPos;
184 info.fMask = SIF_TRACKPOS;
185 GetScrollInfo(
mHandle, bar, &info);
186 info.fMask = SIF_POS;
187 info.nPos = info.nTrackPos;
188 SetScrollInfo(
mHandle, bar, &info, TRUE);
189 return info.nTrackPos;
static int const KEY_LEFT
static int const MODIFIER_SHIFT
static int const MOUSE_MIDDLE
int OnScrollEndTracking(int bar)
void GetScrollInterval(int bar, int &minValue, int &maxValue) const
int OnScrollIncrementHiRes(int bar)
static int const MODIFIER_RBUTTON
static int const KEY_COMMAND
int GetScrollPosition(int bar) const
int SetScrollPosition(int bar, int value)
static int const KEY_PAGE_UP
static int const MODIFIER_LBUTTON
static int const KEY_HOME
static int const KEY_RETURN
static int const MOUSE_RIGHT
GLsizei const GLfloat * value
static int const MOUSE_UP
static int const MODIFIER_CONTROL
int OnScrollDecrementHiRes(int bar)
virtual void SetMousePosition(int x, int y) override
static int const KEY_BACKSPACE
static int const MOUSE_DOWN
static int const KEY_DELETE
static int const MOUSE_NONE
static int const KEY_ENTER
int OnScrollDecrementLoRes(int bar)
int OnScrollTracking(int bar)
static int const KEY_INSERT
static int const KEY_PAGE_DOWN
static int const MOUSE_LEFT
static int const KEY_RIGHT
virtual void GetMousePosition(int &x, int &y) const override
MSWWindow(Parameters ¶meters)
virtual void SetTitle(std::wstring const &title)
virtual void SetTitle(std::wstring const &title) override
int OnScrollIncrementLoRes(int bar)
static int const KEY_ESCAPE
virtual void OnClose() override
SCROLLINFO mScrollInfo[2]
static int const KEY_SHIFT
static int const KEY_DOWN
static int const KEY_CONTROL
static int const MODIFIER_MBUTTON
void SetScrollInterval(int bar, int minValue, int maxValue)