Solved

set the focus to CEdit box when initialize a dialog

Posted on 2002-05-28
1
236 Views
Last Modified: 2013-11-20
i have a dialog where the user should enter data, i need to set the foucus to this edit box, i tried to use m_edit.SetFocus() function while initialization in OnInitDialog()function but have no luck ,,, what else or what is the right way to do it.
 
0
Comment
Question by:b_yousif
1 Comment
 
LVL 4

Accepted Solution

by:
mblat earned 50 total points
ID: 7039869
if you are setting focus to control you need to return FALSE from OnInitDialog.  Do u do that?
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

759 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

23 Experts available now in Live!

Get 1:1 Help Now