I'm making a simple calculator in VC++.net (i don't compile .NET code though). What would be the best way to do this?
Printable View
I'm making a simple calculator in VC++.net (i don't compile .NET code though). What would be the best way to do this?
Best way to make a calculator or best way to restrict the EditBox?
The editbox yes. I made the dialog and the textbox in the Visual C++ IDE, so it's not plain API.
Anyone?
Hmmm, I thought someone would have answered this by now. The answer's actually pretty simple:
Simply replace hWnd, IDC_TEXT, and size with the parameters that you want.PHP Code:SendMessage(GetDlgItem(hWnd, IDC_TEXT), EM_SETLIMITTEXT, (WPARAM) size, 0);
chilibean
I searched for that for like an hour in the API Viewer but never found it :(Quote:
Originally posted by chilibean
Hmmm, I thought someone would have answered this by now. The answer's actually pretty simple:
Simply replace hWnd, IDC_TEXT, and size with the parameters that you want.PHP Code:SendMessage(GetDlgItem(hWnd, IDC_TEXT), EM_SETLIMITTEXT, (WPARAM) size, 0);
chilibean
hehehe me too :S
Because it's no function, it's a message. You better search the edit box reference of MSN.
yeah i found that indeed in the Documentation of .NET. Some usefull stuff there, only hard to find...