aaApi_DocumentSelectDlg does not return focus to my application the first time its called even though I’ve set m_param.hWndParent, it usually ends up focused on visual studio
subsequent calls work fine.
More details would be helpful. I'm assuming that you are running your code with a debugger (Visual Studio). What happens if you build your application in Release mode and run your application outside of Visual Studio?
Dan WilliamsSolution ConsultantBentley Systems, IncorporatedPortland, OR, USA (Pacific Time UTC-08:00)
Running in release with no debugger attached.
I’m running CMDIFrameWnd and switching documents (opening the file) on aaApi_DocumentSelectDlg == IDOK. There seems to be another process that’s interrupting the switch back to my application, maybe transferring the file. Maybe it’s a timing issue, I’ll try using AAHOOK_OPEN_DOCUMENTS_DLG2 hook
Sorry, this may have been an operator error.. super hard to pin down
Answer Verified By: Daniel Marcotte