Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to make the ::GetOpenFileName openfile Dialog to be a modal dialog? Pin
Rajesh R Subramanian9-Jul-08 20:57
professionalRajesh R Subramanian9-Jul-08 20:57 
QuestionRe: How to make the ::GetOpenFileName openfile Dialog to be a modal dialog? Pin
fantasy12159-Jul-08 21:17
fantasy12159-Jul-08 21:17 
QuestionSendMessage Hangs Pin
SelvaKr9-Jul-08 20:06
SelvaKr9-Jul-08 20:06 
AnswerRe: SendMessage Hangs Pin
Cedric Moonen9-Jul-08 20:23
Cedric Moonen9-Jul-08 20:23 
GeneralRe: SendMessage Hangs Pin
SelvaKr9-Jul-08 20:32
SelvaKr9-Jul-08 20:32 
GeneralRe: SendMessage Hangs Pin
Cedric Moonen9-Jul-08 20:49
Cedric Moonen9-Jul-08 20:49 
GeneralRe: SendMessage Hangs Pin
SelvaKr9-Jul-08 20:57
SelvaKr9-Jul-08 20:57 
GeneralRe: SendMessage Hangs Pin
Cedric Moonen9-Jul-08 21:10
Cedric Moonen9-Jul-08 21:10 
Sorry but your question is not really clear. Please post some more relevant code instead of explaining what your code does. Anyway, why do you pass the value in the message ? It is globally available so, there's no need to pass it in the message. But accessing this variable from two threads won't make your UI hang (unless you are using critical section to access it, then the problem might come from that).

SelvaKr wrote:
any way storing the value in global variable will happen with proper locks from both the threads.


I'm not sure what that means but if you are using critical section, then this is probably the problem.

Did you try with PostMessage as I told you ? What happened ?

Cédric Moonen
Software developer

Charting control [v1.4]
OpenGL game tutorial in C++

GeneralRe: SendMessage Hangs Pin
SelvaKr9-Jul-08 21:37
SelvaKr9-Jul-08 21:37 
GeneralRe: SendMessage Hangs Pin
krmed10-Jul-08 1:58
krmed10-Jul-08 1:58 
QuestionWorking of Enter key on List Ctrl. Pin
Le@rner9-Jul-08 19:17
Le@rner9-Jul-08 19:17 
AnswerRe: Working of Enter key on List Ctrl. Pin
fantasy12159-Jul-08 22:43
fantasy12159-Jul-08 22:43 
GeneralRe: Working of Enter key on List Ctrl. Pin
Le@rner9-Jul-08 23:03
Le@rner9-Jul-08 23:03 
GeneralRe: Working of Enter key on List Ctrl. Pin
Le@rner10-Jul-08 18:12
Le@rner10-Jul-08 18:12 
GeneralRe: Working of Enter key on List Ctrl. Pin
fantasy121525-Jul-08 15:08
fantasy121525-Jul-08 15:08 
GeneralRe: Working of Enter key on List Ctrl. Pin
Le@rner25-Jul-08 21:58
Le@rner25-Jul-08 21:58 
QuestionHow can I handle the 'Apply' button click individually for each property page ? Pin
SherTeks9-Jul-08 18:58
SherTeks9-Jul-08 18:58 
AnswerRe: How can I handle the 'Apply' button click individually for each property page ? Pin
Iain Clarke, Warrior Programmer9-Jul-08 23:55
Iain Clarke, Warrior Programmer9-Jul-08 23:55 
QuestionLsaEnumerateAccountRights Pin
vineeshV9-Jul-08 18:58
vineeshV9-Jul-08 18:58 
AnswerRe: LsaEnumerateAccountRights Pin
Iain Clarke, Warrior Programmer10-Jul-08 0:01
Iain Clarke, Warrior Programmer10-Jul-08 0:01 
Questionunicode to mbcs problem [Solved] Pin
followait9-Jul-08 18:18
followait9-Jul-08 18:18 
AnswerRe: unicode to mbcs problem Pin
Saurabh.Garg9-Jul-08 18:22
Saurabh.Garg9-Jul-08 18:22 
GeneralRe: unicode to mbcs problem Pin
followait9-Jul-08 19:03
followait9-Jul-08 19:03 
AnswerRe: unicode to mbcs problem Pin
Stephen Hewitt9-Jul-08 18:42
Stephen Hewitt9-Jul-08 18:42 
GeneralRe: unicode to mbcs problem Pin
followait9-Jul-08 19:26
followait9-Jul-08 19:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.