🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11636

Re: LoadImage, Dialogs and WM_INITDIALOG

#11636
From: Remy Lebeau (TeamB)
Date: Tue, 27 Jan 2004 01:52
20 lines
1701 bytes
"Mike Collins" <mikec@kr8.co.uk> wrote in message
news:4015b413$1@newsgroups.borland.com...

> Anyway within my dialog box (resource) I have a image box

Please show your actual dialog resource content.  How exactly are you
declaring the image box?

> I need, at run-time (or during the processing of WM_INITDIALOG)
> load an image up from another DLL using LoadImage.  I have know
> idea how to get any sort of reference to the image object etc.

If the image box has an ID associated with it, then look at the GetDlgItem()
function to get the image's HWND handle.  Assuming the image box is just a
STATIC window with the SS_BITMAP style assigned, then look at sending the
image box an STM_SETIMAGE message after you have gotten its HWND.


Gambit
Technical Details
Message-ID: <4015c2b6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4015b413$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fcf61fe1bb869a59
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-26 18:09:47 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4015b413$1@newsgroups.borland.com>
Subject: Re: LoadImage, Dialogs and WM_INITDIALOG
Date: Mon, 26 Jan 2004 17:52:18 -0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <4015c2b6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075167926 67.22.138.253 (26 Jan 2004 17:45:26 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail