Solved

Scrolling of ActiveX Control on HTML page in Internet Explorer

Posted on 2002-04-22
3
583 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

809 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