Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
fd43a468
Commit
fd43a468
authored
Jul 24, 2004
by
Krishna Murthy
Committed by
Alexandre Julliard
Jul 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified EDIT_WM_Char() to restrict keying in of letters other than
numbers when ES_NUMBER style is set.
parent
d2df24b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
edit.c
controls/edit.c
+4
-1
No files found.
controls/edit.c
View file @
fd43a468
...
...
@@ -23,7 +23,6 @@
* TODO:
* - ES_CENTER
* - ES_RIGHT
* - ES_NUMBER (new since win95)
* - ES_OEMCONVERT
* -!ES_AUTOVSCROLL (every multi line control *is* auto vscroll)
* -!ES_AUTOHSCROLL (every single line control *is* auto hscroll)
...
...
@@ -3639,6 +3638,10 @@ static void EDIT_WM_Char(EDITSTATE *es, WCHAR c)
break
;
default:
/*If Edit control style is ES_NUMBER allow users to key in only numeric values*/
if
(
(
es
->
style
&
ES_NUMBER
)
&&
!
(
c
>=
'0'
&&
c
<=
'9'
)
)
break
;
if
(
!
(
es
->
style
&
ES_READONLY
)
&&
(
c
>=
' '
)
&&
(
c
!=
127
))
{
WCHAR
str
[
2
];
str
[
0
]
=
c
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment