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
Solved

How to clear out CEdit control box

Posted on 1997-11-24
2
865 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 54
iSeries DB2 Query 2 97
FizzBuzz challenge 9 82
Remove Password Protection from pdf (with password) using an command line executable 5 62
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

840 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