home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!brunel!cs92njc
- From: cs92njc@brunel.ac.uk (Nicholas J Clayton)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Drawing on a dialog
- Message-ID: <C0ovz8.18u@brunel.ac.uk>
- Date: 11 Jan 93 12:28:19 GMT
- Organization: Brunel University, West London, UK
- Lines: 31
-
-
- Hi,
-
- Does anyone know how to blit a bitmap onto a dialog box? Sounds like a simple
- procedure, so I am sure I am missing something elementary...
-
- Given a bitmap referenced in the RC file, I load this bitmap during program
- initialisation, and store the handle in a global variable.
-
- During processing of the WM_INITDLG message, I get a DC for the dialog, select
- the bitmap into a memory DC and try and blit the bitmap to the dialog. No joy.
-
- I try creating a child window on the dialog (type STATIC, with a WHITEFRAME)
- and try and get a DC to this before blitting the bitmap. No joy.
-
- I try turning the bitmap into a brush, and drawing a rectangle on the dialog
- using this brush. Again, no joy.
-
- I must be missing something fairly obvious, but I'm not sure what it is
- (obviously). For those who have seen it, the effect I am trying to duplicate
- is the "Help about" box for WinWord 2, with an oversized icon in the top left
- corner.
-
- Any takers?
-
- --
- _/ _/ _/_/_/ _/ _/ For those who are wondering why,
- _/_/ _/ _/ _/ _/ What we call SF ain't Sci-Fi,
- _/ _/ _/ _/ _/_/ It's just there a fine line
- _/ _/_/ _/ _/ _/ Between Robert Heinlein,
- _/ _/ _/_/_/ _/ _/ And "Son of the Two Headed Fly"
-