?
Solved

How to clear out CEdit control box

Posted on 1997-11-24
2
Medium Priority
?
885 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 32

Accepted Solution

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

Author Comment

by:draw
ID: 1310710
Thanks alot!

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

801 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