Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

In my application, I have one graphic window and a list control. When I click on an item in the list, the graphic window loses focus.
How can I release focus from list control and set the focus back to graphics window??
Posted
Updated 31-May-10 21:32pm
v3

Use window control.SetFocus( );
That should set the focus back to the window.
 
Share this answer
 
v2
You could do it in the handler where you handle the list item click event. Just call parent->Focus() or something like that.
 
Share this answer
 
thank u guys for ur answers.. its workin.. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900