Hello
If you try and create and load a panel in a thread thats different from the main one, you automatically create 2 seperate message queues for each dialog. So using installpopup will not make the dialog modal wrt the dialog in the main thread.
I would recommend using InstallPopup in the main thread, and using GetUserEvent/callbacks and some global variable to monitor whether the popup was clicked or not. Meanwhile, you can shedule a thread and have it wait in a while loop for the global to change. You can set the thread to sleep ( Use the Sleep() function, remember to include windows.h as the very first header) so it doesnt take too much of the CPU time.
I think this would be the simplest way to get this to work.
Bilal Durrani
NI
Bilal Durrani
NI