Article View: borland.public.cppbuilder.nativeapi
Article #6363Re: "use" menu item in another app?
From: Remy Lebeau (TeamB)
Date: Thu, 19 May 2005 18:34
Date: Thu, 19 May 2005 18:34
29 lines
2303 bytes
2303 bytes
"Segal" <none@none.spam.sucks.balls> wrote in message
news:428ccca8@newsgroups.borland.com...
> how ever, the "OK" button is grayed out and wont respon d to
> BM_CLICK. If I manaully go to said message box with my
> mouse and manually type a character in the field it enables the
> button. But it doesn't enable it when I insert text from my program.
You did not show how you are filling in the dialog exactly. Apparently, the
dialog expects individual characters to be typed, but without seeing your
actual code, I would guess that you are not simulating any typing at all,
just assigning the text in full, which the dialog is not coded to handle the
same way.
> Is is possible that BM_CLICK is being ignored?
Possibly. MSDN says the following:
"If the button is in a dialog box and the dialog box is not active, the
BM_CLICK message might fail. To ensure success in this situation, call the
SetActiveWindow function to activate the dialog box before sending the
BM_CLICK message to the button."
Have you tried sending a WM_COMMAND/BN_CLICKED message to the dialog rather
than sending BM_CLICK to the button?
Gambit
Technical Details
Message-ID:
<428cdbec@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4289b235@newsgroups.borland.com> <v54k81lu0gb49sp76ri3ecjhb37gfbcatq@4ax.com> <428a1917$3@newsgroups.borland.com> <o2ck8151hqea0h667513g8lh0h8149n6aq@4ax.com> <428c2e72@newsgroups.borland.com> <428c6ef5$1@newsgroups.borland.com> <428ccca8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,de4107a245e3b3a8 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4289b235@newsgroups.borland.com> <v54k81lu0gb49sp76ri3ecjhb37gfbcatq@4ax.com> <428a1917$3@newsgroups.borland.com> <o2ck8151hqea0h667513g8lh0h8149n6aq@4ax.com> <428c2e72@newsgroups.borland.com> <428c6ef5$1@newsgroups.borland.com> <428ccca8@newsgroups.borland.com> Subject: Re: "use" menu item in another app? Date: Thu, 19 May 2005 11:34:29 -0700 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <428cdbec@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1116527596 68.69.17.41 (19 May 2005 11:33:16 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail