From: bohanson on
Hello.

How does one use the enter button to submit data
when using the edit box in a dialog?
I am currently getting a beeping noise and nothing
happens.


Kind regards


From: Piranha on
On 24 Okt., 20:48, "bohanson" <win32...(a)hotmail.co.uk> wrote:
> Hello.
>
> How does one use the enter button to submit data
> when using the edit box in a dialog?
> I am currently getting a beeping noise and nothing
> happens.
>
> Kind regards

One way would be to subclass the edit box and check

case WM_CHAR

for

VK_RETURN
From: bohanson on

"Piranha" <eu_piranha(a)gmx.net> wrote in message
news:69b3fe2a-b3b9-455c-9219-6a56050a29bf(a)p9g2000vbl.googlegroups.com...
> On 24 Okt., 20:48, "bohanson" <win32...(a)hotmail.co.uk> wrote:
>> Hello.
>>
>> How does one use the enter button to submit data
>> when using the edit box in a dialog?
>> I am currently getting a beeping noise and nothing
>> happens.
>>
>> Kind regards
>
> One way would be to subclass the edit box and check
>
> case WM_CHAR
>
> for
>
> VK_RETURN

=========================================================

Thanks for the reply.

Is the method different for trying to capture the return./enter key
for the edit control, if you create the control using "createwindow()"
method,
instead of using the "resource editor", as then your edit control
would reside inside a dialogbox?

Hope that makes sense?

Kind regards.


From: Piranha on
On 25 Okt., 00:22, "bohanson" <win32...(a)hotmail.co.uk> wrote:
> "Piranha" <eu_pira...(a)gmx.net> wrote in message
>
> news:69b3fe2a-b3b9-455c-9219-6a56050a29bf(a)p9g2000vbl.googlegroups.com...
>
>
>
>
>
> > On 24 Okt., 20:48, "bohanson" <win32...(a)hotmail.co.uk> wrote:
> >> Hello.
>
> >> How does one use the enter button to submit data
> >> when using the edit box in a dialog?
> >> I am currently getting a beeping noise and nothing
> >> happens.
>
> >> Kind regards
>
> > One way would be to subclass the edit box and check
>
> > case WM_CHAR
>
> > for
>
> > VK_RETURN
>
> =========================================================
>
> Thanks for the reply.
>
> Is the method different for trying to capture the return./enter key
> for the edit control,  if you create the control using "createwindow()"
> method,
> instead of using the "resource editor", as then your edit control
> would reside inside a dialogbox?
>
> Hope that makes sense?
>
> Kind regards.- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

If the edit control has a hwnd, you can subclass it, like a normal
edit control.
If not, its parent will receive the messages, meaning you have to
catch the messages from there.
From: Christian ASTOR on
On 24 oct, 19:48, "bohanson" <win32...(a)hotmail.co.uk> wrote:

> How does one use the enter button to submit data
> when using the edit box in a dialog?

KB102589
 |  Next  |  Last
Pages: 1 2
Prev: Triple-DES CBC IV in VC++
Next: Windows 7 is DAMN good