Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

How can i disable the vertical scroll bar in MIcrosoft web browser control????

Hi !
   i have added a registered control to my application.It is a Microsoft web browser control.It has a default vertical scroll bar.How can i disable that.
my code is as follows......

RECT rc;
      rc.right=100;
      rc.left=10;
      rc.top=10;
      rc.bottom=80;
CWebBrowser2 m_web;
m_web.Create("first",WS_VISIBLE|,rc,this,IDC_FIRST,NULL,FALSE,NULL);
m_web.ModifyStyle(WS_HSCROLL,0,SWP_NOSIZE);
      
      

   i cld make the control invisible and all,but nothing can be done with scrollbar....

Can anyone help.....
   

 Thanks in advance
ceena.
0
ceena
Asked:
ceena
  • 2
1 Solution
 
jsakhtarCommented:
You can't disable the control directly.

If you enclose the HTML within a frame, the scroll bar won't appear.

0
 
jsakhtarCommented:
I think that DIV and SPAN blocks work too. I spent a *long* time on this, and so did the company that I work for. There is no other way
0
 
ceenaAuthor Commented:
Thanks a lot.Can u pls explain a bit more in detail..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now