Hi,
I use this code to create modeless dialog:
w= new Dialog(CWnd::FromHandle(adsw_acadDocWnd());
Normally when the dialog closed, then the focus is set back to Cad.
However, on Cad25 it seems not to return. If I use Setfocus, the screen flickers occasionally.
Even in debugging, after closing, it will navigate to another window (chrome, vs,..).
Is there any way to fix this?
Solved! Go to Solution.
Solved by daniel_cadext. Go to Solution.
If it’s modeless, shouldn’t the owner be the main frame, or adsw_acadMainWnd?
Are you handling WM_ACAD_KEEPFOCUS?
I don’t know the answer, just things I would look at
Hi @daniel_cadext ,
Thanks for your new idea,
I have seen the problem. It worked.
Can't find what you're looking for? Ask the community or share your knowledge.