ScrollView and Document
Posted on 1998-08-17
I have a document. Its size is set as follows:
m_sizeDoc = CSize (100,100);
I have a view. In its OnInitialUpdate I have the following code:
I am trying to prevent the frame window (view) from becoming larger than the doc size, which is 100,100.
I tried using WM_SIZE message to create CView::OnSize function that also has the following code:
void CMyView::OnSize(UINT nType, int cx, int cy)
CScrollView::OnSize(nType, cx, cy);
I get an assertion error.
What should I do to prevent my frame window becoming larger than my doc size?
Where does my code go, which functions do I override ,etc.