🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Dialog child window

#1795
From: Bob Gonder
Date: Tue, 19 Jun 2007 23:33
26 lines
1605 bytes
JD wrote:

>Looking at TPrintDialog specifically,

Don't know about TPrintDialog.
Does it just wrap the common dialog?

>So .... Can I query the control to find out if it's checked
>and dynamically check or uncheck it?

The ID for Collate should be  PD_COLLATE

So
case WM_INITDIALOG:
	/* default dialog has already been initialized */
	/* anything you do here overrides the defaults */
	CheckDlgButton( hDlg, PD_COLLATE,
		Collate ? BST_CHECKED : BST_UNCHECKED );

case WM_COMMAND:
    switch (wParam)
    {
	case  PD_COLLATE:
		Collate = (BST_CHECKED ==
			 IsDlgButtonChecked( hDlg, PD_COLLATE));
		return 1;
Technical Details
Message-ID: <erog7391dj2s0ivta3ct48v21hhjc72d0e@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46785769@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,17b336d121cbb12d
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: Dialog child window
Date: Tue, 19 Jun 2007 16:33:28 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <erog7391dj2s0ivta3ct48v21hhjc72d0e@4ax.com>
References: <46785769@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: 67.77.145.161
X-Trace: newsgroups.borland.com 1182296007 67.77.145.161 (19 Jun 2007 16:33:27 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail