I'm having a problem with setting the focus on a modeless dialog properly.
This is my situation...
I have a main dialog app and this creates a modeless dialog when I double
click an item in a tree control; I then use SetFocus to bring that window to
the top. Ok, this works great so far. Now if I click back on the main
window and double click the same item then I look for the modeless dialog
that I created (I store pointers to the dialogs that I've created) and call
SetFocus on the dialog again, but this time it flashes to the front and then
my main dialog window regains the focus with the modeless dialog losing the
focus. What's the reason for this? I've even tried using
SetForegroundWindow instead of SetFocus... same thing.
Thanks in advance,