LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Modal window in multiprocess

Solved!
Go to solution

when I use the function MessagePopup in a sub thread in my program, I get a modeless window ,but the window with MessagePopup should be modal. Shall Somebody help me to solve this problem. In the accessory, I pack my source code. Thank you in advance! I am very glad to receive your reply.

0 Kudos
Message 1 of 3
(2,788 Views)
Solution
Accepted by topic author mingren1238

Hello,

take a look to this discussion that offers some concept and solutions.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(2,766 Views)

Thank you very much! I have solved my problem through PostDeferredCallToThread.

First, I get the mainthreadID with function FmtGetMainThreadID, and then call the function PostDeferredCallToThread, and I can return where I define my CVICALLBACK function. 

Download All
0 Kudos
Message 3 of 3
(2,693 Views)