[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。
Window API 関連メモ
This section contains information about the programming elements used with scroll bars.
(このセクションは、スクロールバー プログラミング の構成に関する情報を含んでいます。)
A window can display a data object, such as a document or a bitmap, that is larger than the window's client area.
(ウィンドウはデータや文書、またはビットマップなど、そのウィンドウのクライアント領域より大きいオブジェクトを表示することができます。)
When provided with a scroll bar, the user can scroll a data object in the client area to bring into view the portions of the object that extend beyond the borders of the window.
(スクロール バー が提供されると、ユーザーはウインドウの境界線を越えた対象の部分を視界の中へ持って来るために、クライアント領域のデータ対象をスクロールすることができます。)
About Scroll Bar (スクロールバーについて)A scroll bar consists of a shaded shaft with an arrow button at each end and a scroll box (sometimes called a thumb) between the arrow buttons.
Using Scroll Bars (スクロールバーを使う)When creating an overlapped, pop-up, or child window, you can add standard scroll bars by using the CreateWindowEx function and specifying WS_HSCROLL, WS_VSCROLL, or both styles.
EnableScrollBarThe EnableScrollBar function enables or disables one or both scroll bar arrows.
GetScrollBarInfoThe GetScrollBarInfo function retrieves information about the specified scroll bar.
GetScrollInfoThe GetScrollInfo function retrieves the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb).
GetScrollPosThe GetScrollPos function retrieves the current position of the scroll box (thumb) in the specified scroll bar. The current position is a relative value that depends on the current scrolling range. For example, if the scrolling range is 0 through 100 and the scroll box is in the middle of the bar, the current position is 50.
Note The GetScrollPos function is provided for backward compatibility. New applications should use the GetScrollInfo function.GetScrollRangeThe GetScrollRange function retrieves the current minimum and maximum scroll box (thumb) positions for the specified scroll bar.
Note The GetScrollRange function is provided for compatibility only. New applications should use the GetScrollInfo function.ScrollDCThe ScrollDC function scrolls a rectangle of bits horizontally and vertically.
ScrollWindowThe ScrollWindow function scrolls the contents of the specified window's client area.
Note The ScrollWindow function is provided for backward compatibility. New applications should use the ScrollWindowEx function.ScrollWindowExThe ScrollWindowEx function scrolls the contents of the specified window's client area.
SetScrollInfoThe SetScrollInfo function sets the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb). The function also redraws the scroll bar, if requested.
SetScrollPosThe SetScrollPos function sets the position of the scroll box (thumb) in the specified scroll bar and, if requested, redraws the scroll bar to reflect the new position of the scroll box.
Note The SetScrollPos function is provided for backward compatibility. New applications should use the SetScrollInfo function.SetScrollRangeThe SetScrollRange function sets the minimum and maximum scroll box positions for the specified scroll bar.
Note The SetScrollRange function is provided for backward compatibility. New applications should use the SetScrollInfo function.ShowScrollBarThe ShowScrollBar function shows or hides the specified scroll bar.
SBM_ENABLE_ARROWSAn application sends the SBM_ENABLE_ARROWS message to enable or disable one or both arrows of a scroll bar control.
SBM_GETPOSThe SBM_GETPOS message is sent to retrieve the current position of the scroll box of a scroll bar control. The current position is a relative value that depends on the current scrolling range. For example, if the scrolling range is 0 through 100 and the scroll box is in the middle of the bar, the current position is 50.
Applications should not send this message directly. Instead, they should use the GetScrollPos function. A window receives this message through its WindowProc function. Applications which implement a custom scroll bar control must respond to these messages for the GetScrollPos function to function properly.
SBM_GETRANGEThe SBM_GETRANGE message is sent to retrieve the minimum and maximum position values for the scroll bar control.
Applications should not send this message directly. Instead, they should use the GetScrollRange function. A window receives this message through its WindowProc function. Applications which implement a custom scroll bar control must respond to these messages for the GetScrollRange function to work properly.
SBM_GETSCROLLBARINFOSent by an application to retrieve information about the specified scroll bar.
SBM_GETSCROLLINFOThe SBM_GETSCROLLINFO message is sent to retrieve the parameters of a scroll bar.
Applications should not send this message directly. Instead, they should use the GetScrollInfo function. A window receives this message through its WindowProc function. Applications which implement a custom scroll bar control must respond to these messages for the GetScrollInfo function to work properly.
SBM_SETPOSThe SBM_SETPOS message is sent to set the position of the scroll box (thumb) and, if requested, redraw the scroll bar to reflect the new position of the scroll box.
Applications should not send this message directly. Instead, they should use the SetScrollPos function. A window receives this message through its WindowProc function. Applications which implement a custom scroll bar control must respond to these messages for the SetScrollPos function to work properly.
SBM_SETRANGEThe SBM_SETRANGE message is sent to set the minimum and maximum position values for the scroll bar control.
Applications should not send this message directly. Instead, they should use the SetScrollRange function. A window receives this message through its WindowProc function. Applications which implement a custom scroll bar control must respond to these messages for the SetScrollRange function to work properly.
SBM_SETRANGEREDRAWAn application sends the SBM_SETRANGEREDRAW message to a scroll bar control to set the minimum and maximum position values and to redraw the control.
SBM_SETSCROLLINFOThe SBM_SETSCROLLINFO message is sent to set the parameters of a scroll bar.
Applications should not send this message directly. Instead, they should use the SetScrollInfo function. A window receives this message through its WindowProc function. Applications which implement a custom scroll bar control must respond to these messages for the SetScrollInfo function to function properly.
WM_CTLCOLORSCROLLBARThe WM_CTLCOLORSCROLLBAR message is sent to the parent window of a scroll bar control when the control is about to be drawn. By responding to this message, the parent window can use the display context handle to set the background color of the scroll bar control.
A window receives this message through its WindowProc function.
WM_HSCROLLThe WM_HSCROLL message is sent to a window when a scroll event occurs in the window's standard horizontal scroll bar. This message is also sent to the owner of a horizontal scroll bar control when a scroll event occurs in the control.
A window receives this message through its WindowProc function.
WM_VSCROLLThe WM_VSCROLL message is sent to a window when a scroll event occurs in the window's standard vertical scroll bar. This message is also sent to the owner of a vertical scroll bar control when a scroll event occurs in the control.
A window receives this message through its WindowProc function.
SCROLLBARINFOThe SCROLLBARINFO structure contains scroll bar information.
SCROLLINFOThe SCROLLINFO structure contains scroll bar parameters to be set by the SetScrollInfo function (or SBM_SETSCROLLINFO message), or retrieved by the GetScrollInfo function (or SBM_GETSCROLLINFO message).
Scroll Bar Control StylesTo create a scroll bar control using the CreateWindow or CreateWindowEx function specify the SCROLLBAR class, appropriate window style constants, and a combination of the following scroll bar control styles. Some of the styles create a scroll bar control that uses a default width or height. However, you must always specify the x- and y-coordinates and the other dimensions of the scroll bar when you call CreateWindow or CreateWindowEx.
コメント一覧