|
-
March 31st, 1999, 10:30 AM
#1
display dialogbox in thread
hi:
Environment : Windows 95/NT, Visual C++ 6.0 SP2
I have a strange problem. I create two thread. one is prime thread, others is non-prime thread
In non-prime thread , I create a "MODEL" dialogbox. and I use following code to set dialogbox 'topmost'
SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE);
but I find that the dialogbox display sometimes and do not display sometimes.
when dialogbox do not display, the application is hung up .
I think if threads compete resource unsuccessfully. because I update the icon of frame every 200ms In main thread.
I do not know how to solve.
any help need
Thanks in advance
Regards
Sunway Xiao
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|