Solved

Scrolling of ActiveX Control on HTML page in Internet Explorer

Posted on 2002-04-22
3
579 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

743 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

18 Experts available now in Live!

Get 1:1 Help Now