求上下滚动文本的算法!~~~~~~~~~~~~~~~~~~~~
各位帮帮忙!用API!
问题点数:20、回复次数:5Top
1 楼vcmute(BCare4 H1Rest Good9!)回复于 2005-08-21 13:12:34 得分 5
ScrollWindowEx
The ScrollWindowEx function scrolls the contents of the specified window's client area.
int ScrollWindowEx(
HWND hWnd, // handle to window
int dx, // horizontal scrolling
int dy, // vertical scrolling
CONST RECT *prcScroll, // client area
CONST RECT *prcClip, // clipping rectangle
HRGN hrgnUpdate, // handle to update region
LPRECT prcUpdate, // invalidated region
UINT flags // scrolling options
);
Top
2 楼vcmute(BCare4 H1Rest Good9!)回复于 2005-08-21 13:13:50 得分 10
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/scrollbars/usingscrollbars.asp?frame=true#example1Top
3 楼i_noname(晚九朝五)回复于 2005-08-21 13:14:49 得分 5
其实就是文本显示范围的问题,参看programming windows中的chapter9--child window controls中的The Scroll Bar Class,上面有详细的说明Top
4 楼summer54(cofd)回复于 2005-08-21 13:41:35 得分 0
markTop
5 楼chenyec(想飞)回复于 2005-08-21 19:39:52 得分 0
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/scrollbars/usingscrollbars.asp?frame=true#example1
就是用这个算法下滚时花屏,上滚白屏,不知那里错了!都快急死了!各位帮帮我!
Top




