1#ifndef __SPANELPROXY__H__
2#define __SPANELPROXY__H__
11 STDMETHOD_(
long, AddRef)(THIS) OVERRIDE
13 return SPanel::AddRef();
15 STDMETHOD_(
long, Release)(THIS) OVERRIDE
17 return SPanel::Release();
19 STDMETHOD_(
void, OnFinalRelease)(THIS) OVERRIDE
24 STDMETHOD_(IWindow *, ToIWindow)(THIS) OVERRIDE
26 return (IWindow *)
this;
29 STDMETHOD_(BOOL, ShowScrollBar)(THIS_
int wBar, BOOL bShow) OVERRIDE
34 STDMETHOD_(BOOL, EnableScrollBar)(THIS_
int wBar, BOOL bEnable) OVERRIDE
39 STDMETHOD_(BOOL, IsScrollBarEnable)(THIS_ BOOL bVertical) SCONST OVERRIDE
44 STDMETHOD_(
void, SetScrollInfo)(THIS_ SCROLLINFO si, BOOL bVertical) OVERRIDE
49 STDMETHOD_(BOOL, SetScrollPos)(THIS_ BOOL bVertical,
int nNewPos, BOOL bRedraw) OVERRIDE
54 STDMETHOD_(
int, GetScrollPos)(THIS_ BOOL bVertical) SCONST OVERRIDE
59 STDMETHOD_(BOOL, SetScrollRange)
60 (THIS_ BOOL bVertical,
int nMinPos,
int nMaxPos, BOOL bRedraw) OVERRIDE
65 STDMETHOD_(BOOL, GetScrollRange)
66 (THIS_ BOOL bVertical, LPINT lpMinPos, LPINT lpMaxPos) SCONST OVERRIDE
71 STDMETHOD_(BOOL, HasScrollBar)(THIS_ BOOL bVertical) SCONST OVERRIDE
76 STDMETHOD_(HRESULT, QueryInterface)(REFGUID id, IObjRef **ppRet) OVERRIDE
78 if (
id == T::GetIID())
Panel with Scrollbar Support.
int GetScrollPos(BOOL bVertical) SCONST OVERRIDE
Gets the scroll position for a scrollbar.
void SetScrollInfo(SCROLLINFO si, BOOL bVertical) OVERRIDE
Sets the scroll information for a scrollbar.
BOOL GetScrollRange(BOOL bVertical, LPINT lpMinPos, LPINT lpMaxPos) SCONST OVERRIDE
Gets the scroll range for a scrollbar.
BOOL HasScrollBar(BOOL bVertical) SCONST OVERRIDE
Checks if a scrollbar is present.
BOOL EnableScrollBar(int wBar, BOOL bEnable) OVERRIDE
Enables or disables a scrollbar.
BOOL SetScrollPos(BOOL bVertical, int nNewPos, BOOL bRedraw) OVERRIDE
Sets the scroll position for a scrollbar.
BOOL IsScrollBarEnable(BOOL bVertical) SCONST OVERRIDE
Checks if a scrollbar is enabled.
BOOL ShowScrollBar(int wBar, BOOL bShow) OVERRIDE
Shows or hides a scrollbar.
BOOL SetScrollRange(BOOL bVertical, int nMinPos, int nMaxPos, BOOL bRedraw) OVERRIDE
Sets the scroll range for a scrollbar.
HRESULT QueryInterface(REFGUID id, IObjRef **ppRet) OVERRIDE
Queries an interface.
void OnFinalRelease()
Called when the last reference to the object is released.