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:
parent
574c0edabb
commit
35ae712600
|
@ -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 :
|
||||
|
|
Loading…
Reference in New Issue