#include <stdlib.h>
#include <os2win.h>
#include "controls.h"
#include "scroll.h"
#include "win32wbase.h"
#include "oslibwin.h"
#include "initterm.h"
#include "pmwindow.h"
#include "dbglocal.h"
Include dependency graph for scroll.cpp:
Go to the source code of this file.
Defines | |
#define | DBG_LOCALLOG DBG_scroll |
#define | SCROLL_MIN_RECT 4 |
#define | SCROLL_MIN_THUMB 6 |
#define | SCROLL_ARROW_THUMB_OVERLAP 0 |
#define | SCROLL_FIRST_DELAY 200 |
#define | SCROLL_REPEAT_DELAY 50 |
#define | SCROLL_BLINK_DELAY 1000 |
#define | SCROLL_TIMER 0 |
#define | BLINK_TIMER 1 |
#define | SA_SSI_HIDE 0x0001 |
#define | SA_SSI_SHOW 0x0002 |
#define | SA_SSI_REPAINT_INTERIOR 0x0004 |
#define | SA_SSI_REPAINT_ARROWS 0x0008 |
#define | SA_SSI_MOVE_THUMB 0x0010 |
#define | SA_SSI_REFRESH 0x0020 |
Enumerations | |
enum | SCROLL_HITTEST { SCROLL_NOWHERE, SCROLL_TOP_ARROW, SCROLL_TOP_RECT, SCROLL_THUMB, SCROLL_BOTTOM_RECT, SCROLL_BOTTOM_ARROW } |
Functions | |
SCROLLBAR_INFO * | SCROLL_GetInfoPtr (HWND hwnd, INT nBar) |
BOOL | SCROLL_GetScrollBarRect (HWND hwnd, INT nBar, RECT *lprect, INT *arrowSize, INT *thumbSize, INT *thumbPos) |
BOOL | SCROLL_PtInRectEx (LPRECT lpRect, POINT pt, BOOL vertical) |
enum SCROLL_HITTEST | SCROLL_HitTest (HWND hwnd, INT nBar, POINT pt, BOOL bDragging) |
void | SCROLL_DrawTopArrow (HDC hdc, SCROLLBAR_INFO *infoPtr, RECT *rect, INT arrowSize, BOOL vertical, BOOL top_pressed) |
void | SCROLL_DrawBottomArrow (HDC hdc, SCROLLBAR_INFO *infoPtr, RECT *rect, INT arrowSize, BOOL vertical, BOOL bottom_pressed) |
void | SCROLL_DrawArrows (HDC hdc, SCROLLBAR_INFO *infoPtr, RECT *rect, INT arrowSize, BOOL vertical, BOOL top_pressed, BOOL bottom_pressed) |
void | SCROLL_DrawInterior (HWND hwnd, HDC hdc, INT nBar, RECT *rect, INT arrowSize, INT thumbSize, INT thumbPos, UINT flags, BOOL vertical, BOOL top_selected, BOOL bottom_selected) |
void | SCROLL_DrawMovingThumb (HDC hdc, RECT *rect, BOOL vertical, INT arrowSize, INT thumbSize) |
POINT | SCROLL_ClipPos (LPRECT lpRect, POINT pt) |
UINT | SCROLL_GetThumbVal (SCROLLBAR_INFO *infoPtr, RECT *rect, BOOL vertical, INT pos) |
void | SCROLL_GetSizeBox (HWND hwnd, DWORD dwStyle, PRECT rect) |
void | SCROLL_DrawSizeBox (HDC hdc, RECT rect) |
void | SCROLL_DrawScrollBar (HWND hwnd, HDC hdc, INT nBar, BOOL arrows, BOOL interior) |
void | SCROLL_RefreshScrollBar (HWND hwnd, INT nBar, BOOL arrows, BOOL interior) |
LRESULT | SCROLL_NCCreate (HWND hwnd, WPARAM wParam, LPARAM lParam) |
LRESULT | SCROLL_Create (HWND hwnd, WPARAM wParam, LPARAM lParam) |
LRESULT | SCROLL_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam) |
LRESULT | SCROLL_HandleScrollEvent (HWND hwnd, WPARAM wParam, LPARAM lParam, INT nBar, UINT msg) |
LRESULT | SCROLL_KeyDown (HWND hwnd, WPARAM wParam, LPARAM lParam) |
LRESULT | SCROLL_Paint (HWND hwnd, WPARAM wParam, LPARAM lParam, INT nBar) |
LRESULT | SCROLL_SetRange (HWND hwnd, WPARAM wParam, LPARAM lParam, INT nBar, BOOL redraw) |
LRESULT WINAPI | ScrollBarWndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
INT WINAPI | SetScrollInfo (HWND hwnd, INT nBar, const SCROLLINFO *info, BOOL bRedraw) |
BOOL WINAPI | GetScrollInfo (HWND hwnd, INT nBar, LPSCROLLINFO info) |
INT WINAPI | SetScrollPos (HWND hwnd, INT nBar, INT nPos, BOOL bRedraw) |
INT WINAPI | GetScrollPos (HWND hwnd, INT nBar) |
BOOL WINAPI | SetScrollRange (HWND hwnd, INT nBar, INT MinVal, INT MaxVal, BOOL bRedraw) |
BOOL WINAPI | GetScrollRange (HWND hwnd, INT nBar, LPINT lpMin, LPINT lpMax) |
BOOL WINAPI | ShowScrollBar (HWND hwnd, INT nBar, BOOL fShow) |
BOOL WINAPI | EnableScrollBar (HWND hwnd, INT nBar, UINT flags) |
BOOL WINAPI | GetScrollBarInfo (HWND hwnd, LONG idObject, PSCROLLBARINFO psbi) |
BOOL | SCROLLBAR_Register () |
BOOL | SCROLLBAR_Unregister () |
Variables | |
HWND | SCROLL_TrackingWin = 0 |
INT | SCROLL_TrackingBar = 0 |
INT | SCROLL_TrackingPos = 0 |
INT | SCROLL_TrackingVal = 0 |
HWND | SCROLL_FocusWin = 0 |
BOOL | SCROLL_HasFocus = FALSE |
BOOL | SCROLL_Highlighted = FALSE |
BOOL | SCROLL_Scrolling = FALSE |
enum SCROLL_HITTEST | SCROLL_trackHitTest |
enum SCROLL_HITTEST | SCROLL_lastHitTest |
BOOL | SCROLL_trackVertical |
BOOL | SCROLL_MovingThumb = FALSE |
|
Definition at line 25 of file scroll.cpp. |
|
Definition at line 28 of file scroll.cpp. |
|
Definition at line 29 of file scroll.cpp. |
|
Definition at line 31 of file scroll.cpp. |
|
Definition at line 33 of file scroll.cpp. |
|
Definition at line 34 of file scroll.cpp. |
|
Definition at line 35 of file scroll.cpp. |
|
Definition at line 37 of file scroll.cpp. |
|
Definition at line 38 of file scroll.cpp. |
|
Definition at line 52 of file scroll.cpp. |
|
Definition at line 53 of file scroll.cpp. |
|
Definition at line 54 of file scroll.cpp. |
|
Definition at line 55 of file scroll.cpp. |
|
Definition at line 56 of file scroll.cpp. |
|
Definition at line 57 of file scroll.cpp. |
|
Definition at line 41 of file scroll.cpp. |
|
Definition at line 78 of file scroll.cpp. Referenced by EnableScrollBar(), GetScrollInfo(), GetScrollPos(), GetScrollRange(), SCROLL_DrawScrollBar(), SCROLL_GetScrollBarRect(), SCROLL_HandleScrollEvent(), SCROLL_HitTest(), SCROLL_SetRange(), SetScrollInfo(), and SetScrollPos().
|
|
Definition at line 116 of file scroll.cpp. Referenced by GetScrollBarInfo(), SCROLL_DrawScrollBar(), SCROLL_HandleScrollEvent(), and SCROLL_HitTest().
|
|
Definition at line 236 of file scroll.cpp. Referenced by SCROLL_HandleScrollEvent(), and SCROLL_HitTest().
|
|
Definition at line 266 of file scroll.cpp. Referenced by SCROLL_HandleScrollEvent().
|
|
Definition at line 302 of file scroll.cpp. Referenced by SCROLL_DrawArrows(), and SCROLL_HandleScrollEvent().
|
|
Definition at line 318 of file scroll.cpp. Referenced by SCROLL_DrawArrows(), and SCROLL_HandleScrollEvent().
|
|
Definition at line 339 of file scroll.cpp. Referenced by SCROLL_DrawScrollBar().
|
|
Definition at line 347 of file scroll.cpp. Referenced by SCROLL_DrawMovingThumb(), SCROLL_DrawScrollBar(), and SCROLL_HandleScrollEvent().
|
|
Definition at line 444 of file scroll.cpp. Referenced by SCROLL_DrawScrollBar(), and SCROLL_HandleScrollEvent().
|
|
Definition at line 470 of file scroll.cpp. Referenced by SCROLL_HandleScrollEvent().
|
|
Definition at line 493 of file scroll.cpp. Referenced by SCROLL_HandleScrollEvent().
|
|
Definition at line 519 of file scroll.cpp. Referenced by SCROLL_DrawScrollBar(), and SCROLL_HandleScrollEvent().
|
|
Definition at line 542 of file scroll.cpp. Referenced by SCROLL_DrawScrollBar().
|
|
Definition at line 580 of file scroll.cpp. Referenced by SCROLL_HandleScrollEvent(), SCROLL_Paint(), and SCROLL_RefreshScrollBar().
|
|
Definition at line 645 of file scroll.cpp. Referenced by EnableScrollBar(), and SetScrollInfo().
|
|
Definition at line 658 of file scroll.cpp. Referenced by ScrollBarWndProc().
|
|
Definition at line 671 of file scroll.cpp. Referenced by ScrollBarWndProc().
|
|
Definition at line 721 of file scroll.cpp. Referenced by ScrollBarWndProc().
|
|
Definition at line 750 of file scroll.cpp. Referenced by ScrollBarWndProc().
|
|
Definition at line 1103 of file scroll.cpp. Referenced by ScrollBarWndProc().
|
|
Definition at line 1128 of file scroll.cpp. Referenced by ScrollBarWndProc().
|
|
Definition at line 1139 of file scroll.cpp. Referenced by ScrollBarWndProc().
|
|
Definition at line 1153 of file scroll.cpp. |
|
Definition at line 1260 of file scroll.cpp. Referenced by CalcChildScroll(), EDIT_UpdateScrollBars(), LISTBOX_UpdateScroll(), SCROLL_SetNCSbState(), ScrollBarWndProc(), SetScrollPos(), and SetScrollRange().
|
|
Definition at line 1417 of file scroll.cpp. Referenced by EDIT_EM_GetThumb(), LISTBOX_HandleHScroll(), LISTBOX_HandleVScroll(), and ScrollBarWndProc().
|
|
Definition at line 1454 of file scroll.cpp. Referenced by EDIT_WM_HScroll(), EDIT_WM_VScroll(), ScrollBarWndProc(), and ScrollChildren().
|
|
Definition at line 1484 of file scroll.cpp. Referenced by ScrollBarWndProc(), and ScrollChildren().
|
|
Definition at line 1503 of file scroll.cpp. Referenced by SCROLL_SetRange().
|
|
Definition at line 1544 of file scroll.cpp. Referenced by ScrollBarWndProc(), and ScrollChildren().
|
|
Definition at line 1570 of file scroll.cpp. Referenced by CalcChildScroll(), MDIClientWndProc_common(), and SetScrollInfo().
|
|
Definition at line 1641 of file scroll.cpp. Referenced by ScrollBarWndProc().
|
|
Definition at line 1671 of file scroll.cpp. |
|
Definition at line 1712 of file scroll.cpp. Referenced by CONTROLS_Register().
|
|
Definition at line 1732 of file scroll.cpp. Referenced by CONTROLS_Unregister().
|
|
Definition at line 60 of file scroll.cpp. |
|
Definition at line 61 of file scroll.cpp. |
|
Definition at line 62 of file scroll.cpp. |
|
Definition at line 63 of file scroll.cpp. |
|
Definition at line 65 of file scroll.cpp. |
|
Definition at line 66 of file scroll.cpp. |
|
Definition at line 67 of file scroll.cpp. |
|
Definition at line 68 of file scroll.cpp. |
|
Definition at line 71 of file scroll.cpp. |
|
Definition at line 72 of file scroll.cpp. |
|
Definition at line 73 of file scroll.cpp. |
|
Definition at line 76 of file scroll.cpp. |