Link to home
Start Free TrialLog in
Avatar of draw
draw

asked on

How to clear out CEdit control box

Hello,

I have a CEdit control box (type integer) in my dialog.  It's ID is IDC_GRADE and the member variable is m_Grade.  I am managing it by using CEdit class (m_ctlGrade).

You see, the default value that appears in the box is 0, since it is an integer.  Is there any way to clear it where the box is just blank?  I've tried m_ctlGrade.Clear() and m_ctlGrade.ReplaceSel("").  Nothing happens.  I've also tried m_Grade = NULL but to no avail.

Can anyone help me?

thanks
draw
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of draw
draw

ASKER

Thanks alot!