想用从右到左, 而不是下到上的滚屏

解决方案 »

  1.   

    create window with WS_HSCROLL style
      

  2.   

    I need scroll the screen with Statics text(which context from other file) not with scroll bar.
      

  3.   

    Painting the static text on view according to what position you want to be.
      

  4.   

    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