Solved

Scrolling of ActiveX Control on HTML page in Internet Explorer

Posted on 2002-04-22
3
589 Views
Last Modified: 2013-11-18
Hi, All!

I have realized  Windowless ActiveX Control for Internet Explorer (5-6). My Control has large size and placed into tag <DIV> on HTML page. For <DIV> I have enabled scrolling.

<div align=middle id="DrawView"
style="vertical-align:  bottom; SCROLLBAR-FACE-COLOR: #cdd8ed; SCROLLBAR-HIGHLIGHT-COLOR: #efeffe; OVERFLOW: auto; WIDTH: 550px; SCROLLBAR-SHADOW-COLOR: #c0c0ff; SCROLLBAR-3DLIGHT-COLOR: #efeffe; SCROLLBAR-DARKSHADOW-COLOR: #191970; HEIGHT: 400px">

 <OBJECT  id=DV2t codeBase=""
     onmouseup = HMouseUp onmousedown = HMouseDown
      type=application/x-oleobject height=250 onerror=HError width=350
      classid=CLSID:B5216D79-8D46-460E-A19E-7F10505A36E5
      name=UseConnectionPoints VALUE="False"
          <PARAM><PARAM NAME="Zoom" VALUE="1">
          <PARAM NAME="Rotation" VALUE="0">
          <PARAM NAME="ImageURL" VALUE="http://127.0.0.1/Tst.gif">
          <PARAM NAME="BackColor" VALUE="16313066">
          <PARAM NAME="ProgressColor" VALUE="14251836">
      </OBJECT>

</div>

When user scrolls <DIV>, Internet Explorer updates entire visible area of ActiveX Control and sends WM_PAINT 3 times (dividing visible area on 3 parts on Y). As a result, my ActiveX Control is flicking and slowly redrawing in time of scrolling.

I need more effective scrolling. Right way for Windows – is to use ScrollWindow (Win32API)  and to update entire part of window at once, that invalidates at scrolling.

There are any ideas?  There is a way to force IE to scroll correctly? Or I need to handle scrolling self (by hooking some of IE or others sinks)?

Thanks and good luck!
Alexey A. Fedorov: <AFedorov@activewebservices.com>
0
Comment
Question by:AFedorov2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 49

Expert Comment

by:DanRollins
ID: 6961251
You might be able to minimize flickering by modifying or eliminating the background coloring.

This Question would get better response in the HTML TA.  Go here:
    http://www.experts-exchange.com/html/
and here:
    http://www.experts-exchange.com/browsers/
and here:
    http://www.experts-exchange.com/webdevgen/

and create a 0-point question titled

    Scrolling <DIV> FLickers (150-pts)

Paste this in there:

    Please see:
    http://www.experts-exchange.com/cplusprog/Q.20292384.html

0
 
LVL 11

Accepted Solution

by:
griessh earned 0 total points
ID: 7012738
Dear AFedorov2

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "DanRollins"

comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: http://www.experts-exchange.com/commspt/

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7014048
I have corrected this award, with thanks to Werner for letting me know of this award error.

Points for DanRollins -> http://www.experts-exchange.com/jsp/qShow.jsp?qid=20301334

Moondancer - EE Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

735 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