Home All Groups Group Topic Archive Search About

How to set focus to a new popup dialog?

Author
5 Feb 2007 8:43 AM
joan
Hi,
I am new to vc.net.
I want to double click an item of ctreectrl in a dialog and then get a new
popup dialog, but the new one can't get the focus. The focus is still the
item of ctreectrl.
I used the SetFocus() in the dubble click callback, but it seemed no work.
How can I resolve the problem?
Thank you!

Author
5 Feb 2007 12:33 PM
Kevin Spencer
Are you calling the Showdialog() method?

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

The shortest distance between 2 points is a curve.

Show quote
"joan" <yaoqi***@ustc.edu> wrote in message
news:Ov$goHQSHHA.496@TK2MSFTNGP06.phx.gbl...
> Hi,
> I am new to vc.net.
> I want to double click an item of ctreectrl in a dialog and then get a new
> popup dialog, but the new one can't get the focus. The focus is still the
> item of ctreectrl.
> I used the SetFocus() in the dubble click callback, but it seemed no work.
> How can I resolve the problem?
> Thank you!
>
>
>

AddThis Social Bookmark Button