Hi guys!

I am using edit box that is created like this:

HWND ctrl = ::CreateWindow( L"EDIT", L"",
WS_CHILD | WS_BORDER | WS_TABSTOP | ES_NUMBER,
0, 0, 0, 0,
hWndParent, (HMENU)ID, m_hInstance, NULL );

but on some devices (some HTC) when I try to enter number it wants me
to press FN button and doesn't put any symbol, only beeps. But on
other devices it works well.

I want this edit to enter only numbers on all devices!

Does anybody know how to solve this problem?

Thanks a lot!

Re: Only digits in edit box by r_z_aret

r_z_aret
Thu Feb 14 14:13:24 CST 2008

If you are going to ask the same question in multiple newsgroups,
please post the question to all the groups at the same time, so
everyone can see and/or participate in the whole discussion. You got a
useful answer in microsoft.public.windowsce.embedded.vc

On Thu, 14 Feb 2008 09:50:30 -0800 (PST), Skiler
<sklyar.andriy@gmail.com> wrote:

>Hi guys!
>
>I am using edit box that is created like this:
>
>HWND ctrl = ::CreateWindow( L"EDIT", L"",
> WS_CHILD | WS_BORDER | WS_TABSTOP | ES_NUMBER,
> 0, 0, 0, 0,
> hWndParent, (HMENU)ID, m_hInstance, NULL );
>
>but on some devices (some HTC) when I try to enter number it wants me
>to press FN button and doesn't put any symbol, only beeps. But on
>other devices it works well.
>
>I want this edit to enter only numbers on all devices!
>
>Does anybody know how to solve this problem?
>
>Thanks a lot!
>
>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Re: Only digits in edit box by Skiler

Skiler
Fri Feb 15 05:06:50 CST 2008

ok, thanks )