Solved

edit box highlighting

Posted on 2000-03-12
2
186 Views
Last Modified: 2013-11-20
This should be a simple question.  I have a form with edit boxes.  When Ok is clicked.  I check the validity of the data in the boxes and if there is a problem, I set the focus to the problem box.  How do I have the box act like it has been double clicked?  (highlighted and ready to have the data replaced when typing begins)
0
Comment
Question by:gregga
2 Comments
 
LVL 30

Accepted Solution

by:
SteveGTR earned 50 total points
ID: 2609803
((CEdit*) GetDlgItem(IDC_EDIT))->SetSel(0, -1);

Good Luck,
Steve
0
 

Author Comment

by:gregga
ID: 2616122
Thank you.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

18 Experts available now in Live!

Get 1:1 Help Now