home *** CD-ROM | disk | FTP | other *** search
- ISLANDS
-
- Some of this program was originally written for DOS by someone named
- Aaron Contour (I doubt that was his real name, but that is what he gave in
- his readme file). Due to the nature of the drawing, I selected to have an
- unsizeable window style (WS_OVERLAPPED). This is due to the distortions that
- are caused if the image is not draw in a large enough space. The window size
- displayed is 350X350 (in pixels) which seems to give a decent and large
- enough picture for the 640X480, 800X600 and higher graphics displays.
-
- Though the program is self-explanatory there are a couple of items the
- user needs to know.
-
- 1. BE SURE THAT THE ENTIRE WINDOW IS VIEWABLE WHEN EXECUTING THE DRAW COMMAND.
- -- To increase the speed of the routine, I do not write the image to a bitmap
- until it has completed the entire drawing. Therefore if you have half of the
- window off the screen while you draw, you will not retrieve the entire image
- whenever you restore the window. Also programs such as Winclock, that can bring
- itself to the front of the active window, need to be out of the active display
- or its image will be drawn into the bitmap.
-
- 2. KEEP NUMBER OF RUNNING COPIES TO A MINIMUM -- I felt that it was
- important to have the image return whenever the user re-activates the window
- or restores the program from an icon. To do this, I draw the image into a
- bitmap, which of course uses some memory. When I run the program on my
- IBM Model 30 (1 MB) I can have two copies of the program (instances)
- running -- retaining the image at all times. The third (or anything greater)
- will draw, but due to insufficient memory it will not return the image
- (processing the WM_PAINT message) when I bring it back in front or restore it
- from an icon So if your just concerned about just drawing the image, have a
- blast. If you what to save images for comparison then you are only limited by
- your computer's memory.
-
- This is my first Windows program (other than "Hello Windows") so please
- write and tell me if you enjoy this program. I will accept all comments or
- opinions good or bad and if anybody wishes to have a copy of the source code I
- will upload it also.
-
-
- Thanks to Fran Finnegan for pointing me in the right direction for saving the
- images
-
- P.S. Version 2.0 will give the user the option to change colors. Its release
- is dependent on the time it takes me to figure out dialog boxes
-
- David Gillespie
- CompuServe 72657,2642
-
-
-
-
-