home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.ms-windows.programmer.misc:1062 comp.windows.ms.programmer:7402
- Path: sparky!uunet!usna!faculty!baldwin
- From: baldwin@csservera.scs.usna.navy.mil (J.D. Baldwin)
- Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
- Subject: Displaying L-O-N-G windows with a scrollbar
- Message-ID: <BALDWIN.92Jul28202059@csservera.scs.usna.navy.mil>
- Date: 29 Jul 92 00:20:59 GMT
- Sender: news@usna.NAVY.MIL
- Followup-To: comp.os.ms-windows.programmer.misc
- Organization: Comp. Sci. Dep't., U.S. Naval Academy, Annapolis, MD
- Lines: 41
-
- Sorry if this is a FAQ (I can't believe that it is), but I've been
- looking for the FAQ every day for two weeks and haven't seen one.
-
- In all of the following, I am using Borland C++ 3.0 with ObjectWindows
- under Windows 3.1 (yes, I am waiting for them to ship the upgrade to 3.1).
-
- My problem is this: I wish to display a very long graph for the user
- to scroll through. I've gotten this to work for medium-size graphs,
- but when I try to display all the points (some of these graphs have
- more than 65000 points), I get parts of the graph overwriting each
- other--it's a real mess.
-
- I'm pretty sure that the problem is that MoveTo and LineTo take *int*
- parameters when I am trying to send *unsigned* int parameters. So,
- for example, if I try to plot a point at [38000,190] it gets plotted
- at [5232,190] -- not what I had in mind.
-
- So, I started messing around with Scroller -> ScrollTo() and drawing
- only the visible area of the graph during each Paint operation, but I
- realized that this wasn't going to help, since I still have to supply
- the "world coordinate" of the x-coordinate (the y-coordinate is not a
- problem, as there isn't even a vertical scroll bar; I am only
- interested in stretching out the x-dimension).
-
- Does anyone have any workarounds, example code, ideas, etc. as to how
- I can defeat this?
-
- If you reply by post, please e-mail me a copy of the post. I keep up
- with this newsgroup, but I am 3000 miles from my news-reading machine,
- and I don't get real reliable telnet connections. Also please note
- the address "change" below and don't use "reply."
-
- Thanks in advance for any help or ideas.
-
- SUMMER ADDRESS: baldwin@spectrum.lanl.gov (Los Alamos Nat'l Labs)
- --
- From the catapult of: |+| "If anyone disagrees with anything I
- _,_ J. D. Baldwin, Comp Sci Dept|+| say, I am quite prepared not only to
- _|70|___:::)=}- U.S. Naval Academy|+| retract it, but also to deny under
- \ / baldwin@usna.navy.mil |+| oath that I ever said it." --T. Lehrer
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-