求上下滚动文本的算法!~~~~~~~~~~~~~~~~~~~~

chenyec 2005-08-21 01:05:03
各位帮帮忙!用API!
...全文
144 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
chenyec 2005-08-21
  • 打赏
  • 举报
回复
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/scrollbars/usingscrollbars.asp?frame=true#example1


就是用这个算法下滚时花屏,上滚白屏,不知那里错了!都快急死了!各位帮帮我!
summer54 2005-08-21
  • 打赏
  • 举报
回复
mark
i_noname 2005-08-21
  • 打赏
  • 举报
回复
其实就是文本显示范围的问题,参看programming windows中的chapter9--child window controls中的The Scroll Bar Class,上面有详细的说明
vcmute 2005-08-21
  • 打赏
  • 举报
回复
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/scrollbars/usingscrollbars.asp?frame=true#example1
vcmute 2005-08-21
  • 打赏
  • 举报
回复
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
);


15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧