🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

LoadImage, Dialogs and WM_INITDIALOG

#11635
From: Mike Collins
Date: Tue, 27 Jan 2004 00:59
21 lines
1938 bytes
First off, let me just say that we are all very, very lucky to be using
C++Builder and I truly appreciate all the work there development team must
have put in to avoid us having to undertake the laborious crap that I've
just spent the last 4 hours working on.

The encapsulation that Borland have done with the windows api's, to remove
the need for designing resources and processing all the messages in turn, is
immense.

No for question... Unfortunately I'm in a situation where I can use the VCL
implementation of the TForm and I'm having to do it all via a resource file,
CreateDialog and a dialog CALLBACK function.  God it is so much unnecessary
work!!  Anyway within my dialog box (resource) I have a image box and 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.

Any help would be excellent, thanks in advance,

Mike C
Technical Details
Message-ID: <4015b413$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fcf61fe1bb869a59,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-26 16:43:35 PST
Reply-To: "Mike Collins" <mikec@kr8.co.uk>
From: "Mike Collins" <mikec@kr8.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: LoadImage, Dialogs and WM_INITDIALOG
Date: Tue, 27 Jan 2004 00:59:18 -0000
Lines: 23
Organization: kr8
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: 81.2.78.34
Message-ID: <4015b413$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075164179 81.2.78.34 (26 Jan 2004 16:42:59 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail