🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CreateDialogIndirect and DLGTEMPLATE

#1620
From: Bob Gonder
Date: Sat, 07 Jul 2007 22:44
44 lines
2798 bytes
JD wrote:

>"Ed Mulroy [TeamB]"  wrote:
>>
>>Look here for more info and continue on to the following entries.
>>http://blogs.msdn.com/oldnewthing/archive/2005/03/29/403298.aspx
>
>That's an interesting link but I can't get the Resource
>Compiler to compile the sample dialog in RC.hlp because it
>keeps puking on 'DIALOG'.

There must be some pretty interesting drugs in your area...
I can't see a single DIALOG or RC.hlp, or mention of the Resource Compiler in those
articles?  And why would you run the Resource Compiler an a *.hlp file anyway?

Ok, so you are probably off on another tangent, having nothing to do with the subject at
hand.  I just did a complete file scan, and have 0 copies of rc.hlp on my system, so
really have no idea what your complaint is about.

However, this is a small portion of a working rc file
(Actually, I never got the abort dialog to work to my satisfaction, so I have it turned
off in the code, but this still compiles, and would function as a dialog.)

#include	"C:\CPP\BCC55\INCLUDE\winuser.rh"

// <these also get included in the application>
#define IDD_FILE		3333
#define IDD_TEXT	3334
#define IDD_CANCEL	3335
#define AbortDlg		1
// </ these also get included in the application>

ICON_1		ICON "256.ico"
ICON_16		ICON "16.ico"
ICON_32		ICON "32.ico"

AbortDlg DIALOG 33, 32, 160, 70
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_VISIBLE | WS_POPUP | WS_SYSMENU
CAPTION "My Abort Dialog"
BEGIN
	CONTROL "Now Printing: ", IDD_TEXT, "static", SS_CENTER | WS_CHILD, 0, 10, 160, 8
	CONTROL "", IDD_FILE, "static", SS_CENTER | WS_CHILD, 0, 25, 160, 8
	DEFPUSHBUTTON "Cancel", IDD_CANCEL, 60, 45, 45, 15
END
Technical Details
Message-ID: <6j30935bjd6qjbto4qsumc84otl148l3j7@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <468ec508@newsgroups.borland.com> <468ef40d@newsgroups.borland.com> <468fd312@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9e1e83f08c218dc2
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: CreateDialogIndirect and DLGTEMPLATE
Date: Sat, 07 Jul 2007 15:44:52 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <6j30935bjd6qjbto4qsumc84otl148l3j7@4ax.com>
References: <468ec508@newsgroups.borland.com> <468ef40d@newsgroups.borland.com> <468fd312@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.87.130
X-Trace: newsgroups.borland.com 1183848288 69.69.87.130 (7 Jul 2007 15:44:48 -0700)
Lines: 48
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 2639