如题,
谁能给个例子或提示,很着急,在线等。

解决方案 »

  1.   

    WS_VSCROLL 
    Creates a window that has a vertical scroll bar.
      

  2.   

    对话框在创建时 CreateWidow 里添加风格 WS_HSCROLL|WS_VSCROLL 就可以了
      

  3.   

    void CEmployeeJoinDlg::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
    {
    // TODO: Add your message handler code here and/or call default
    // 竖直滚动条消息
    switch ( nSBCode )   
    {    case SB_LINEUP:         
    ScrollWindow(0,5,NULL,NULL);   
    break;   
    case SB_LINEDOWN:   
    ScrollWindow(0,-5,NULL,NULL);   
    break;
    case SB_PAGEUP: break; 
    case SB_PAGEDOWN:
     
    break;
    default:   
    break;
    }
    CDialog::OnVScroll(nSBCode, nPos, pScrollBar);
    }
    在响应垂直滚动条时候,拖拽滚动条对应哪个消息啊?
      

  4.   

    SB_THUMBTRACK The user is dragging the scroll box. This message is sent repeatedly until the user releases the mouse button. The high-order word indicates the position that the scroll box has been dragged to.
      

  5.   

    用API可   
      LONG   SetWindowLong(   
          HWND   hWnd,           
          int   nIndex,            
          LONG   dwNewLong     
      );   
      例如:SetWindowLong(this->m_hWnd,GWL_STYLE,(LONG)WS_HSCROLL|WS_VSCROLL);
      

  6.   

    http://www.net0791.com/article/12877.htm