Solved

Scrolling of ActiveX Control on HTML page in Internet Explorer

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mixing C++ & C# in Vis Studio 2013 7 280
c++ getting the first 10 characters of a char* string 11 111
Error creating a new C++ project in ,net 20 59
How do i run a c++ file? 15 58
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 goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

739 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