|
-
May 26th, 1999, 11:40 PM
#1
To remove Vertical & Horizontal Scroll Bars of a Form View
I have created a view CMyView derived from CFormView. I have added the following code in init instance.
pDocTemplate1 = new CMultiDocTemplate(
IDR_MYVIEW,
RUNTIME_CLASS(CMyDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CMyView));
AddDocTemplate(pDocTemplate1);
This gives me a FormView. When I resize the view I get Horizontal & Vertical Scroll Bars. To avoid the Scroll Bars I have also used
GetParentFrame()->RecalcLayout();
ResizeParentToFit(FALSE);
in OnInitialUpdate() of the view class. By using this I will not get the scroll bars initially but the scroll bars appear when I resize the view (reduce the view).
I have also tried to modify the styles in PreCreate Window. But the scroll bars appear when I reduce the view. Is there any way to remove the scroll bars at any instant
Thanx
Adarsh S
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|