您的位置:程序门 -> vc/mfc -> 界面



how does scroll the screen from right to left  instead of from which botton to top


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


how does scroll the screen from right to left instead of from which botton to top
发表于:2007-01-23 17:25:00 楼主
想用从右到左,   而不是下到上的滚屏
发表于:2007-01-23 17:34:001楼 得分:0
create   window   with   ws_hscroll   style
发表于:2007-01-24 09:10:232楼 得分:0
i   need   scroll   the   screen   with   statics   text(which   context   from   other   file)   not   with   scroll   bar.
发表于:2007-01-24 09:22:053楼 得分:0
painting   the   static   text   on   view   according   to   what   position   you   want   to   be.
发表于:2007-01-24 10:17:174楼 得分:0
there   is   only   one   static   control   which   be   uesed   by   scrolled   the   screen   be   layout   in   dialog.   and   so   there   are   two   classes   be   created   in   code   source   like   as   follow:

class   cscrollmemdc   :   public   cdc
{
    cscrollmemdc(cdc*   pdc)   :   cdc()   {   ...}
    ~cscrollmemdc()   {   ...}
}
class   cscrollhotstatic   :   public   cstatic
{
    void   addtext   (...)

    //   other   about   style   setting   functions
    setvisitedcolor();
    setunisitedcolor();
    sethighlitedcolor();
    setborder()
    setsunken();

    //   mainly   event   functions
    afx_msg   void   onclicked();
    afx_msg   void   onmousemove(uint   nflags,   cpoint   point);
    afx_msg   void   onpaint();
    afx_msg   void   ontimer(uint   nidevent);

}  
finaly,   there   are   no   more   other   files   be   created   but   for   scrollhotstatictest.cpp/scrollhotstatictestdlg.cpp,   so   do   you   think   which   part   of   the   files   be   modified?  
tks   in   advanced


快速检索

最新资讯
热门点击