Make the edit field created from a richedit control which was created

with ES_DISABLENOSCROLL, not have the ES_NUMBER style and hence accept
alphanumeric input.
This commit is contained in:
Jason Edmeades 2005-02-14 11:50:34 +00:00 committed by Alexandre Julliard
parent 574c0edabb
commit 35ae712600
1 changed files with 6 additions and 0 deletions

View File

@ -147,8 +147,14 @@ static LRESULT WINAPI RICHED32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,
newstyle &= ~WS_VSCROLL;
newstyle &= ~ES_AUTOHSCROLL;
newstyle &= ~ES_AUTOVSCROLL;
newstyle &= ~ES_NUMBER; /* Reused as ES_DISABLENOSCROLL */
SetWindowLongA(hwnd,GWL_STYLE, newstyle);
/* Note that SetWindowLongA(hwnd,GWL_STYLE...) doesnt update
the style field in the text window as the edit structure is
not initialized until it processes this message. Therefore
update the style in the message itself */
((LPCREATESTRUCTA) lParam)->style = newstyle;
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
case WM_SETFOCUS :