Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to clear out CEdit control box

Posted on 1997-11-24
2
Medium Priority
?
890 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

618 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