Solved

How to clear out CEdit control box

Posted on 1997-11-24
2
841 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:draw
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 1310709
Use SetDlgItemText(IDC_GRADE, _T(""));
0
 

Author Comment

by:draw
ID: 1310710
Thanks alot!

0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now