Microsoft KB Archive/147944

= FIX: Edit Control's Number Style Check Box Won't Stay Selected =

Article ID: 147944

Article Last Modified on 12/8/2003

-

APPLIES TO

 The Resource Editor, when used with:  Microsoft Visual C++ 4.0 Standard Edition

 Microsoft Visual C++ 4.1 Subscription

 Microsoft Visual C++ 4.2 Enterprise Edition

 Microsoft Visual C++ 4.2 Professional Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q147944

<div class="symptoms_section">

SYMPTOMS
Edit controls that have previously been given the ES_NUMBER style do not have the corresponding Number check box selected under the style properties when they are loaded into the resource editor.

<div class="cause_section">

CAUSE
This is a display problem in the resource editor. Although the resouce editor shows the Number check box as clear, rebuilding the application or opening the .rc file in text mode will confirm that the ES_NUMBER style is still being applied to the edit control. However, if the dialog box containing the control is edited and saved, the ES_NUMBER property will no longer be applied to the edit control unless you again select the Number check box.

<div class="resolution_section">

RESOLUTION
Select the Number check box for edit controls that should have the ES_NUMBER style each time you modify the dialog box containing the edit control.

<div class="status_section">

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Visual C++, version 6.0.

<div class="moreinformation_section">

MORE INFORMATION
The ES_NUMBER style first available in Windows 95 restricts input to the edit control to digits only. If an edit control has this style under Windows NT 3.51, you can still enter characters other than numbers. However, under Windows 95, an edit control with this style accepts digits only.

<div class="references_section">