Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

scroll.cpp File Reference

#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:

Include dependency graph

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


Define Documentation

#define DBG_LOCALLOG   DBG_scroll
 

Definition at line 25 of file scroll.cpp.

#define SCROLL_MIN_RECT   4
 

Definition at line 28 of file scroll.cpp.

#define SCROLL_MIN_THUMB   6
 

Definition at line 29 of file scroll.cpp.

#define SCROLL_ARROW_THUMB_OVERLAP   0
 

Definition at line 31 of file scroll.cpp.

#define SCROLL_FIRST_DELAY   200
 

Definition at line 33 of file scroll.cpp.

#define SCROLL_REPEAT_DELAY   50
 

Definition at line 34 of file scroll.cpp.

#define SCROLL_BLINK_DELAY   1000
 

Definition at line 35 of file scroll.cpp.

#define SCROLL_TIMER   0
 

Definition at line 37 of file scroll.cpp.

#define BLINK_TIMER   1
 

Definition at line 38 of file scroll.cpp.

#define SA_SSI_HIDE   0x0001
 

Definition at line 52 of file scroll.cpp.

#define SA_SSI_SHOW   0x0002
 

Definition at line 53 of file scroll.cpp.

#define SA_SSI_REPAINT_INTERIOR   0x0004
 

Definition at line 54 of file scroll.cpp.

#define SA_SSI_REPAINT_ARROWS   0x0008
 

Definition at line 55 of file scroll.cpp.

#define SA_SSI_MOVE_THUMB   0x0010
 

Definition at line 56 of file scroll.cpp.

#define SA_SSI_REFRESH   0x0020
 

Definition at line 57 of file scroll.cpp.


Enumeration Type Documentation

enum SCROLL_HITTEST
 

Enumeration values:
SCROLL_NOWHERE 
SCROLL_TOP_ARROW 
SCROLL_TOP_RECT 
SCROLL_THUMB 
SCROLL_BOTTOM_RECT 
SCROLL_BOTTOM_ARROW 

Definition at line 41 of file scroll.cpp.


Function Documentation

SCROLLBAR_INFO* SCROLL_GetInfoPtr HWND    hwnd,
INT    nBar
[static]
 

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().

BOOL SCROLL_GetScrollBarRect HWND    hwnd,
INT    nBar,
RECT *    lprect,
INT *    arrowSize,
INT *    thumbSize,
INT *    thumbPos
[static]
 

Definition at line 116 of file scroll.cpp.

Referenced by GetScrollBarInfo(), SCROLL_DrawScrollBar(), SCROLL_HandleScrollEvent(), and SCROLL_HitTest().

BOOL SCROLL_PtInRectEx LPRECT    lpRect,
POINT    pt,
BOOL    vertical
[static]
 

Definition at line 236 of file scroll.cpp.

Referenced by SCROLL_HandleScrollEvent(), and SCROLL_HitTest().

enum SCROLL_HITTEST SCROLL_HitTest HWND    hwnd,
INT    nBar,
POINT    pt,
BOOL    bDragging
[static]
 

Definition at line 266 of file scroll.cpp.

Referenced by SCROLL_HandleScrollEvent().

void SCROLL_DrawTopArrow HDC    hdc,
SCROLLBAR_INFO *    infoPtr,
RECT *    rect,
INT    arrowSize,
BOOL    vertical,
BOOL    top_pressed
[static]
 

Definition at line 302 of file scroll.cpp.

Referenced by SCROLL_DrawArrows(), and SCROLL_HandleScrollEvent().

void SCROLL_DrawBottomArrow HDC    hdc,
SCROLLBAR_INFO *    infoPtr,
RECT *    rect,
INT    arrowSize,
BOOL    vertical,
BOOL    bottom_pressed
[static]
 

Definition at line 318 of file scroll.cpp.

Referenced by SCROLL_DrawArrows(), and SCROLL_HandleScrollEvent().

void SCROLL_DrawArrows HDC    hdc,
SCROLLBAR_INFO *    infoPtr,
RECT *    rect,
INT    arrowSize,
BOOL    vertical,
BOOL    top_pressed,
BOOL    bottom_pressed
[static]
 

Definition at line 339 of file scroll.cpp.

Referenced by SCROLL_DrawScrollBar().

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
[static]
 

Definition at line 347 of file scroll.cpp.

Referenced by SCROLL_DrawMovingThumb(), SCROLL_DrawScrollBar(), and SCROLL_HandleScrollEvent().

void SCROLL_DrawMovingThumb HDC    hdc,
RECT *    rect,
BOOL    vertical,
INT    arrowSize,
INT    thumbSize
[static]
 

Definition at line 444 of file scroll.cpp.

Referenced by SCROLL_DrawScrollBar(), and SCROLL_HandleScrollEvent().

POINT SCROLL_ClipPos LPRECT    lpRect,
POINT    pt
[static]
 

Definition at line 470 of file scroll.cpp.

Referenced by SCROLL_HandleScrollEvent().

UINT SCROLL_GetThumbVal SCROLLBAR_INFO *    infoPtr,
RECT *    rect,
BOOL    vertical,
INT    pos
[static]
 

Definition at line 493 of file scroll.cpp.

Referenced by SCROLL_HandleScrollEvent().

void SCROLL_GetSizeBox HWND    hwnd,
DWORD    dwStyle,
PRECT    rect
 

Definition at line 519 of file scroll.cpp.

Referenced by SCROLL_DrawScrollBar(), and SCROLL_HandleScrollEvent().

void SCROLL_DrawSizeBox HDC    hdc,
RECT    rect
 

Definition at line 542 of file scroll.cpp.

Referenced by SCROLL_DrawScrollBar().

void SCROLL_DrawScrollBar HWND    hwnd,
HDC    hdc,
INT    nBar,
BOOL    arrows,
BOOL    interior
 

Definition at line 580 of file scroll.cpp.

Referenced by SCROLL_HandleScrollEvent(), SCROLL_Paint(), and SCROLL_RefreshScrollBar().

void SCROLL_RefreshScrollBar HWND    hwnd,
INT    nBar,
BOOL    arrows,
BOOL    interior
[static]
 

Definition at line 645 of file scroll.cpp.

Referenced by EnableScrollBar(), and SetScrollInfo().

LRESULT SCROLL_NCCreate HWND    hwnd,
WPARAM    wParam,
LPARAM    lParam
 

Definition at line 658 of file scroll.cpp.

Referenced by ScrollBarWndProc().

LRESULT SCROLL_Create HWND    hwnd,
WPARAM    wParam,
LPARAM    lParam
 

Definition at line 671 of file scroll.cpp.

Referenced by ScrollBarWndProc().

LRESULT SCROLL_Destroy HWND    hwnd,
WPARAM    wParam,
LPARAM    lParam
[static]
 

Definition at line 721 of file scroll.cpp.

Referenced by ScrollBarWndProc().

LRESULT SCROLL_HandleScrollEvent HWND    hwnd,
WPARAM    wParam,
LPARAM    lParam,
INT    nBar,
UINT    msg
 

Definition at line 750 of file scroll.cpp.

Referenced by ScrollBarWndProc().

LRESULT SCROLL_KeyDown HWND    hwnd,
WPARAM    wParam,
LPARAM    lParam
 

Definition at line 1103 of file scroll.cpp.

Referenced by ScrollBarWndProc().

LRESULT SCROLL_Paint HWND    hwnd,
WPARAM    wParam,
LPARAM    lParam,
INT    nBar
 

Definition at line 1128 of file scroll.cpp.

Referenced by ScrollBarWndProc().

LRESULT SCROLL_SetRange HWND    hwnd,
WPARAM    wParam,
LPARAM    lParam,
INT    nBar,
BOOL    redraw
 

Definition at line 1139 of file scroll.cpp.

Referenced by ScrollBarWndProc().

LRESULT WINAPI ScrollBarWndProc HWND    hwnd,
UINT    message,
WPARAM    wParam,
LPARAM    lParam
 

Definition at line 1153 of file scroll.cpp.

INT WINAPI SetScrollInfo HWND    hwnd,
INT    nBar,
const SCROLLINFO *    info,
BOOL    bRedraw
 

Definition at line 1260 of file scroll.cpp.

Referenced by CalcChildScroll(), EDIT_UpdateScrollBars(), LISTBOX_UpdateScroll(), SCROLL_SetNCSbState(), ScrollBarWndProc(), SetScrollPos(), and SetScrollRange().

BOOL WINAPI GetScrollInfo HWND    hwnd,
INT    nBar,
LPSCROLLINFO    info
 

Definition at line 1417 of file scroll.cpp.

Referenced by EDIT_EM_GetThumb(), LISTBOX_HandleHScroll(), LISTBOX_HandleVScroll(), and ScrollBarWndProc().

INT WINAPI SetScrollPos HWND    hwnd,
INT    nBar,
INT    nPos,
BOOL    bRedraw
 

Definition at line 1454 of file scroll.cpp.

Referenced by EDIT_WM_HScroll(), EDIT_WM_VScroll(), ScrollBarWndProc(), and ScrollChildren().

INT WINAPI GetScrollPos HWND    hwnd,
INT    nBar
 

Definition at line 1484 of file scroll.cpp.

Referenced by ScrollBarWndProc(), and ScrollChildren().

BOOL WINAPI SetScrollRange HWND    hwnd,
INT    nBar,
INT    MinVal,
INT    MaxVal,
BOOL    bRedraw
 

Definition at line 1503 of file scroll.cpp.

Referenced by SCROLL_SetRange().

BOOL WINAPI GetScrollRange HWND    hwnd,
INT    nBar,
LPINT    lpMin,
LPINT    lpMax
 

Definition at line 1544 of file scroll.cpp.

Referenced by ScrollBarWndProc(), and ScrollChildren().

BOOL WINAPI ShowScrollBar HWND    hwnd,
INT    nBar,
BOOL    fShow
 

Definition at line 1570 of file scroll.cpp.

Referenced by CalcChildScroll(), MDIClientWndProc_common(), and SetScrollInfo().

BOOL WINAPI EnableScrollBar HWND    hwnd,
INT    nBar,
UINT    flags
 

Definition at line 1641 of file scroll.cpp.

Referenced by ScrollBarWndProc().

BOOL WINAPI GetScrollBarInfo HWND    hwnd,
LONG    idObject,
PSCROLLBARINFO    psbi
 

Definition at line 1671 of file scroll.cpp.

BOOL SCROLLBAR_Register  
 

Definition at line 1712 of file scroll.cpp.

Referenced by CONTROLS_Register().

BOOL SCROLLBAR_Unregister  
 

Definition at line 1732 of file scroll.cpp.

Referenced by CONTROLS_Unregister().


Variable Documentation

HWND SCROLL_TrackingWin = 0 [static]
 

Definition at line 60 of file scroll.cpp.

INT SCROLL_TrackingBar = 0 [static]
 

Definition at line 61 of file scroll.cpp.

INT SCROLL_TrackingPos = 0 [static]
 

Definition at line 62 of file scroll.cpp.

INT SCROLL_TrackingVal = 0 [static]
 

Definition at line 63 of file scroll.cpp.

HWND SCROLL_FocusWin = 0 [static]
 

Definition at line 65 of file scroll.cpp.

BOOL SCROLL_HasFocus = FALSE [static]
 

Definition at line 66 of file scroll.cpp.

BOOL SCROLL_Highlighted = FALSE [static]
 

Definition at line 67 of file scroll.cpp.

BOOL SCROLL_Scrolling = FALSE [static]
 

Definition at line 68 of file scroll.cpp.

enum SCROLL_HITTEST SCROLL_trackHitTest [static]
 

Definition at line 71 of file scroll.cpp.

enum SCROLL_HITTEST SCROLL_lastHitTest [static]
 

Definition at line 72 of file scroll.cpp.

BOOL SCROLL_trackVertical [static]
 

Definition at line 73 of file scroll.cpp.

BOOL SCROLL_MovingThumb = FALSE [static]
 

Definition at line 76 of file scroll.cpp.


Generated on Wed Jan 23 23:20:02 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001