How to remove the Scrollbar CFormView

the first method:

 Overloaded OnSize (UINT nType, int cx, int cy) 

Add sentence CFormView :: OnSize (nType, cx, cy) below

      ShowScrollBar(SB_BOTH,FALSE)。

The second method:

 Overloaded OnSize (UINT nType, int cx, int cy) 

The CFormView :: OnSize (nType, cx, cy) changed

CView::OnSize(nType, cx, cy)。

The third method:

In rewriting the CFormView OnInitialUpdate derived class ()
    After adding :: OnInitialUpdate CFormView ()
    SetScrollSizes (MM_TEXT, CSize (1, 1)).
The fourth method:
 In rewriting the CFormView OnInitialUpdate derived class ()

   In CFormView :: OnInitialUpdate added (after)
    m_nMapMode = -1.

 

 

      

Guess you like

Origin www.cnblogs.com/toujizhe/p/11683717.html