Solved

edit box highlighting

Posted on 2000-03-12
2
209 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unix / Linux grid computing 5 157
ODBC Connection Logging, ADO.NET 6 64
bigDiff challenge 17 106
post4 challenge 28 100
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

778 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