I am fairly new to C programming in a Windows environment.
At run-time, how can I force an Edit control in a DialogBox
to only accept uppercase or lowercase text?
5.
Now connect the class CMyEdit to the controls in the dialog:
In the Class Wizzard select the dialog-class, tab: 'Member Variables',
select the edit-control, press button 'Add Variable'.
fill in:
Member variable name: m_ctrl_1 ( m_ctrl_2 etc.. )
Category: Control
Variable Type: CMyEdit
6.
Add to the header-file of the dialog:
#include "CMyEdit.h"
7.
Add to the the cpp-file of the dialog in 'OnInitDialog()':
m_ctrl_1.upper_lower = -1; // for lower_case;
m_ctrl_2.upper_lower = +1; // for upper_case;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.