Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how use getFocus()

Status
Not open for further replies.

ArvindKumar17

Programmer
Jan 7, 2003
13
MU
How do I use the getFocus() function. I have used the following code but still when my application opens ups. I do not have focus on my CRichEditCtrl.
PLEASE help. .. .

CRichEditCtrl* typeBox = new CRichEditCtrl();

typeBox->Create(WS_CHILD|WS_VISIBLE|WS_BORDER|ES_MULTILINE,
CRect(20,20,210,210), this, 2);
typeBox->GetFocus();
 
GetFocus tells you which object currently has focus.
If you want to give an object focus use SetFocus.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top