Thread View: comp.windows.ms.programmer
2 messages
2 total messages
Started by ARRA SHRAVAN KUMAR
Wed, 08 Apr 1992 02:51
How to Scroll?
Author: ARRA SHRAVAN KUMAR
Date: Wed, 08 Apr 1992 02:51
Date: Wed, 08 Apr 1992 02:51
23 lines
1589 bytes
1589 bytes
Dear Netters, My application draws a data structure like a tree or a linked list, in a window. The size of the tree grows dynamically and is so big that it goes beyond the screen. So I need to provide scrolling so that th euser can see all parts of the tree. Obviously, I have to paint the uncovered portion of the window when the user scrolls. If I were dealing with text files I would read from the text file the uncovered portion of the text and paint it in the window. However I am dealing with bitmaps and other graphic objects. How do I do this? My idea was to draw everything into a temporary drawing area(like a memory DC) and display a part of it that corresponds to the window whenever a WM_PAINT message comes. I tried to do this but failed. I heard from someone that I cannot have a memory DC that is larger than the screen. Is this true? This is like a paint application where your drawing area is much larger than the screen. How can I provide graphic scrolling when my drawing area is much larger (about 5 times) than the screen? Please help me. It is very important for my thesis. Thanks in advance. Shravan arra@a.cs.okstate.edu
Re: How to Scroll?
Author: Jim Privat
Date: Fri, 10 Apr 1992 18:20
Date: Fri, 10 Apr 1992 18:20
4 lines
536 bytes
536 bytes
> Please help me. It is very important for my thesis. Your thesis? Isn't that supposed to be straight from your *own* brain? Good luck.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads