Article View: borland.public.cppbuilder.nativeapi
Article #2558Re: Getting Message with WinMain
From: Bob Gonder
Date: Tue, 13 Feb 2007 15:46
Date: Tue, 13 Feb 2007 15:46
28 lines
1832 bytes
1832 bytes
poojo hackma wrote:
> nd.pszTitle = szTitle;
> if (FileExists(cmdLine) == TRUE) {
> wsprintf(htmlBuf, szFormat, szHtmLink, szTitle,
> szHtmMsg, szInputYes, szInputNo);
> nd.pszHTML = htmlBuf;
> nd.lParam = lParam;
> return SHNotificationAdd(&nd);
> // next, I need a way to capture IDYES or IDNO
That all seems a rather complex way (even the correct way as Remy
shows) of doing what I think you are trying to do:
wsprintf( htmlBuf, szFormat, szHtmLink, szTitle,
szHtmMsg, szInputYes, szInputNo);
switch( MessageBox( NULL, htmlBuf, szTitle, MB_YESNO |
MB_ICONQUESTION ) )
{
case IDYES:
// do whatever "yes" needs doing
break;
case IDNO:
// do the "no" thing
break;
//case IDCANCEL:
};;
Technical Details
Message-ID:
<qgm3t2la0698dmq9dfvpffjha7pvv4uc7s@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45d0cc1f@newsgroups.borland.com> <45d0cf87$1@newsgroups.borland.com> <45d0ea45$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ece89f4506d844ba X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Getting Message with WinMain Date: Tue, 13 Feb 2007 07:46:42 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <qgm3t2la0698dmq9dfvpffjha7pvv4uc7s@4ax.com> References: <45d0cc1f@newsgroups.borland.com> <45d0cf87$1@newsgroups.borland.com> <45d0ea45$1@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.88.225 X-Trace: newsgroups.borland.com 1171381586 69.69.88.225 (13 Feb 2007 07:46:26 -0800) Lines: 30 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail