🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2674

Drawing on a dialog

#2674
From: Nicholas J Clayton
Date: Mon, 11 Jan 1993 12:28
31 lines
1592 bytes
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"  
Technical Details
Message-ID: <C0ovz8.18u@brunel.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!brunel!cs92njc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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