? Dali ScrollBar v RichEdit se e activiral ?
2 отговора
48 прегледа
? Dali ScrollBar v RichEdit se e activiral ?
Kak da razbera , che Horizontalnia (v sluchaja) Scrollbar na edin RichEdit se e activiral ? priemam che
ScrollBars = ssBoth ; HideScrollBars = true; WordWrap = false
primerno resize-vam controata i v edin moment se okazva che texta ne se sabira vav vidimata chast na RichEdita i scrollbara mi se pokazva - e, kak da razbera che tova se sluchva ?
blagodarq
ScrollBars = ssBoth ; HideScrollBars = true; WordWrap = false
primerno resize-vam controata i v edin moment se okazva che texta ne se sabira vav vidimata chast na RichEdita i scrollbara mi se pokazva - e, kak da razbera che tova se sluchva ?
blagodarq
Re: ? Dali ScrollBar v RichEdit se e activiral ?
The 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).
BOOL GetScrollInfo(
HWND hwnd, // handle of window with scroll bar
int fnBar, // scroll bar flag
LPSCROLLINFO lpsi // pointer to structure for scroll parameters
);
The 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).
typedef struct tagSCROLLINFO { // si
UINT cbSize;
UINT fMask;
int nMin;
int nMax;
UINT nPage;
int nPos;
int nTrackPos;
} SCROLLINFO;
typedef SCROLLINFO FAR *LPSCROLLINFO;
fMask
Specifies the scroll bar parameters to set or retrieve. This member can be a combination of the following values:
Value Meaning
SIF_ALL Combination of SIF_PAGE, SIF_POS, and SIF_RANGE.
SIF_DISABLENOSCROLL This value is used only when setting a scroll bar's parameters. If the scroll bar's new parameters make the scroll bar unnecessary, disable the scroll bar instead of removing it.
SIF_PAGE The nPage member contains the page size for a proportional scroll bar.
SIF_POS The nPos parameter contains the scroll box position.
SIF_RANGE The nMin and nMax members contain the minimum and maximum values for the scrolling range.
Mai towa shte swyrshi rabota
Не всичко което виси е Windows, но той най-често го прави
BOOL GetScrollInfo(
HWND hwnd, // handle of window with scroll bar
int fnBar, // scroll bar flag
LPSCROLLINFO lpsi // pointer to structure for scroll parameters
);
The 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).
typedef struct tagSCROLLINFO { // si
UINT cbSize;
UINT fMask;
int nMin;
int nMax;
UINT nPage;
int nPos;
int nTrackPos;
} SCROLLINFO;
typedef SCROLLINFO FAR *LPSCROLLINFO;
fMask
Specifies the scroll bar parameters to set or retrieve. This member can be a combination of the following values:
Value Meaning
SIF_ALL Combination of SIF_PAGE, SIF_POS, and SIF_RANGE.
SIF_DISABLENOSCROLL This value is used only when setting a scroll bar's parameters. If the scroll bar's new parameters make the scroll bar unnecessary, disable the scroll bar instead of removing it.
SIF_PAGE The nPage member contains the page size for a proportional scroll bar.
SIF_POS The nPos parameter contains the scroll box position.
SIF_RANGE The nMin and nMax members contain the minimum and maximum values for the scrolling range.
Mai towa shte swyrshi rabota
Не всичко което виси е Windows, но той най-често го прави
Re: ? Dali ScrollBar v RichEdit se e activiral ?
...можеш да ставняваш ClientHeight с Height ;) и когато тази разлика е по- голяма от Border + Bevel + <незнам си к'во> -> ти се е появил HScroll...
...другия начин е да дебнеш "зрително" когаto се е появи скрола и да реагираш мигновенно ;))) /...за треноровки Doom3.../

...другия начин е да дебнеш "зрително" когаto се е появи скрола и да реагираш мигновенно ;))) /...за треноровки Doom3.../