Solved

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

Posted on 2000-02-29
3
183 Views
Last Modified: 2013-11-20
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
Comment
Question by:ceena
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
jsakhtar earned 50 total points
Comment Utility
You can't disable the control directly.

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

0
 
LVL 3

Expert Comment

by:jsakhtar
Comment Utility
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
 

Author Comment

by:ceena
Comment Utility
Thanks a lot.Can u pls explain a bit more in detail..
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now