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.
Any tips?
Daniel,
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?
Hi Dan,
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