home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!mcsun!inesc.inesc.pt!inesc!tac
- From: tac@rena.inesc.pt (Telmo A. Carmo)
- Subject: Drawing many different objects
- Message-ID: <TAC.93Jan26103859@rena.inesc.pt>
- Sender: usenet@inesc.pt (USENET News System)
- Nntp-Posting-Host: rena.inesc.pt
- Organization: INESC
- Distribution: comp.os.ms-windows.programmer.misc
- Date: Tue, 26 Jan 1993 10:38:59 GMT
- Lines: 34
-
-
-
- Hello
-
- I would like some advice on the following problem.
-
- I need to draw may graphical objects, which use different
- pens, brushes, fonts and bitmaps(used for custom brush patterns).
-
- The objects can be created dynamically, so I don't now at start how many
- pen/brushes/*, I will need.
-
- Should I, Each time I need to draw, use the Paint DC or the dc from GetDC(hWnd)
- and create the pen/brush/* selected it to the dc, draw, and then deselect it?
-
- What are the penalties of using allways GetDC() (instead of the Paint DC)
- even when processing PAINT events?
-
- Would it be faster (since I need to draw many graphical objects) to draw
- first on a bitmap and then BitBlt it to the window?
-
- Should I have lists of pre-created pens/brushes/* and each time I need to
- perform a graphic operation try to find on those lists the best matching
- pen/brush/* instead of creating it?
-
- Thanks for any info.
-
- Telmo Carmo - tac@inesc.pt
-
- --
- =============================================================================
- Telmo Carmo -- tac@inesc.pt | 'Old programmers never die,
- Tel: +351-1-3100085 FAX: 351-1-525843 | they just branch to another address'
- ==============================================================================
-