Click here to Skip to main content
16,008,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need to convert COLORREF to COLOR16 Pin
Michael Dunn3-Jan-07 14:48
sitebuilderMichael Dunn3-Jan-07 14:48 
GeneralRe: Need to convert COLORREF to COLOR16 Pin
CoffeeAddict193-Jan-07 14:51
CoffeeAddict193-Jan-07 14:51 
AnswerRe: Need to convert COLORREF to COLOR16 Pin
Mark Salsbery3-Jan-07 15:00
Mark Salsbery3-Jan-07 15:00 
QuestionProblem with EndDialog Pin
Fernando A. Gomez F.3-Jan-07 13:18
Fernando A. Gomez F.3-Jan-07 13:18 
AnswerRe: Problem with EndDialog Pin
Mark Salsbery3-Jan-07 13:28
Mark Salsbery3-Jan-07 13:28 
QuestionRe: Problem with EndDialog Pin
Fernando A. Gomez F.3-Jan-07 13:31
Fernando A. Gomez F.3-Jan-07 13:31 
AnswerRe: Problem with EndDialog Pin
Mark Salsbery3-Jan-07 13:40
Mark Salsbery3-Jan-07 13:40 
GeneralRe: Problem with EndDialog Pin
Fernando A. Gomez F.3-Jan-07 13:55
Fernando A. Gomez F.3-Jan-07 13:55 
Thanks again for the reply.

The problem is the following. I have a function that is being called from OnLButtonUp. Under determined circumstances, must end the dialog. However, the code is being executed twice... that is, after the EndDialog for some weird reason it is executing the same code again... When it is executed again, it throws me an exception because the dialog has already been destroyed (!).

I think that such problem is caused by remaining messages in the queue or something. I can't figure out what is happening really, and the spy++ is not working.

Tahnks again. Regards,
Fernando.

A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.
Personal Site

GeneralRe: Problem with EndDialog Pin
Mark Salsbery3-Jan-07 14:47
Mark Salsbery3-Jan-07 14:47 
GeneralRe: Problem with EndDialog Pin
Fernando A. Gomez F.4-Jan-07 8:07
Fernando A. Gomez F.4-Jan-07 8:07 
AnswerRe: Problem with EndDialog Pin
Michael Dunn3-Jan-07 14:24
sitebuilderMichael Dunn3-Jan-07 14:24 
GeneralRe: Problem with EndDialog Pin
Fernando A. Gomez F.3-Jan-07 14:27
Fernando A. Gomez F.3-Jan-07 14:27 
GeneralRe: Problem with EndDialog Pin
Fernando A. Gomez F.4-Jan-07 8:08
Fernando A. Gomez F.4-Jan-07 8:08 
AnswerRe: Problem with EndDialog Pin
Rajesh R Subramanian3-Jan-07 19:58
professionalRajesh R Subramanian3-Jan-07 19:58 
QuestionRe: Problem with EndDialog Pin
prasad_som3-Jan-07 19:11
prasad_som3-Jan-07 19:11 
AnswerRe: Problem with EndDialog Pin
Fernando A. Gomez F.4-Jan-07 8:08
Fernando A. Gomez F.4-Jan-07 8:08 
AnswerRe: Problem with EndDialog Pin
Fernando A. Gomez F.4-Jan-07 8:06
Fernando A. Gomez F.4-Jan-07 8:06 
QuestionAn IM that Scales Well Pin
Waleed Eissa3-Jan-07 11:12
Waleed Eissa3-Jan-07 11:12 
AnswerRe: An IM that Scales Well Pin
Ray Kinsella3-Jan-07 11:22
Ray Kinsella3-Jan-07 11:22 
GeneralRe: An IM that Scales Well Pin
Waleed Eissa3-Jan-07 11:36
Waleed Eissa3-Jan-07 11:36 
Questioninsert binary file in image column in MS-SQL database Pin
neilsolent3-Jan-07 9:48
neilsolent3-Jan-07 9:48 
AnswerRe: insert binary file in image column in MS-SQL database Pin
David Crow3-Jan-07 9:52
David Crow3-Jan-07 9:52 
AnswerRe: insert binary file in image column in MS-SQL database Pin
Cristian Amarie3-Jan-07 9:55
Cristian Amarie3-Jan-07 9:55 
GeneralRe: insert binary file in image column in MS-SQL database Pin
neilsolent3-Jan-07 10:04
neilsolent3-Jan-07 10:04 
Questiondefault oem codepage Pin
Peter Weyzen3-Jan-07 9:13
Peter Weyzen3-Jan-07 9:13 

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.