Is there a simple way, WITHOUT recoding all 150 dialog boxes, of having
Windows use a fixed-pitch font in edit fields, or in some other way
reinstate the character limits we had under Windows 2.11?
Thanks very much for any responses!
Take a look at the EM_LIMITTEXT message... Put it in your WM_INITDIALOG
case.
--
Scott Harper Optical Data Systems, Inc.
sc...@ods.com 1101 E. Arapaho Road
(214) 234-6400 Richardson, TX 75081
You can certainly limit the number of characters that can be typed into the
edit child control. In the dialog create code, try the following,
SendDlgItemMessage(hWndDlg, ID_CONTROL, EM_LIMITLENGTH, 0, x);
If I've done that properly (from memory), hWndDlg is the handle to the dialog,
ID_CONTROL is the edit control ID, EM_LIMITLENGTH limits the length (B-) ),
wParam is 0, and lParam is the length.
I could have that the wrong way round (lParam and wParam), so check the
docs/.hlp anyway. You might want to check some of the other EM_ messages as
well, since they are all pretty helpful.
Rgds, Nik
... `My Worf, open hailing frequencies' `Aye sir, phasers locked'