Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Scrolling of ActiveX Control on HTML page in Internet Explorer

Posted on 2002-04-22
3
Medium Priority
?
605 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

721 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