Click here to Skip to main content
15,924,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MDI app doesn't close Pin
Alex Cutovoi14-Aug-07 7:47
Alex Cutovoi14-Aug-07 7:47 
GeneralRe: MDI app doesn't close Pin
Mark Salsbery14-Aug-07 8:13
Mark Salsbery14-Aug-07 8:13 
GeneralRe: MDI app doesn't close Pin
Alex Cutovoi14-Aug-07 8:33
Alex Cutovoi14-Aug-07 8:33 
GeneralRe: MDI app doesn't close Pin
Mark Salsbery14-Aug-07 8:43
Mark Salsbery14-Aug-07 8:43 
GeneralRe: MDI app doesn't close Pin
Alex Cutovoi14-Aug-07 9:56
Alex Cutovoi14-Aug-07 9:56 
GeneralRe: MDI app doesn't close Pin
Mark Salsbery14-Aug-07 10:05
Mark Salsbery14-Aug-07 10:05 
GeneralRe: MDI app doesn't close Pin
Alex Cutovoi14-Aug-07 10:54
Alex Cutovoi14-Aug-07 10:54 
GeneralRe: MDI app doesn't close Pin
Mark Salsbery14-Aug-07 11:12
Mark Salsbery14-Aug-07 11:12 
Honestly, there's so many problems here it could take hours to reply.

Many of the window messages are not handled correctly, proper return values aren't considered.

You don't seem to want to fix your message loop - again, the way you have it now is BAD.
It's going to perform terribly, and slow the rest of the system down.

This has nothing to do with opengl.  It has everything to do with fundamental Windows messaging.

I would recommend getting a basic MDI app up and running.  Just a frame window, an MDI client,
and child windows.  You should be able to create windows, destroy windows, and cleanly terminate
the application.  The few messages related to these tasks should be handled properly, with the
unhandled messages being handled by the default window procedure.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: MDI app doesn't close Pin
Alex Cutovoi15-Aug-07 3:36
Alex Cutovoi15-Aug-07 3:36 
GeneralRe: MDI app doesn't close Pin
Mark Salsbery15-Aug-07 5:12
Mark Salsbery15-Aug-07 5:12 
GeneralRe: MDI app doesn't close Pin
Alex Cutovoi15-Aug-07 6:47
Alex Cutovoi15-Aug-07 6:47 
Question_finite (CRT) [modified] Pin
Maxwell Chen14-Aug-07 5:15
Maxwell Chen14-Aug-07 5:15 
AnswerRe: _finite (CRT) Pin
Vasudevan Deepak Kumar14-Aug-07 5:18
Vasudevan Deepak Kumar14-Aug-07 5:18 
GeneralRe: _finite (CRT) Pin
Maxwell Chen14-Aug-07 5:22
Maxwell Chen14-Aug-07 5:22 
AnswerRe: _finite (CRT) Pin
Mark Salsbery14-Aug-07 6:12
Mark Salsbery14-Aug-07 6:12 
GeneralRe: _finite (CRT) Pin
Maxwell Chen14-Aug-07 6:14
Maxwell Chen14-Aug-07 6:14 
QuestionRe: _finite (CRT) Pin
Mark Salsbery14-Aug-07 6:20
Mark Salsbery14-Aug-07 6:20 
AnswerRe: _finite (CRT) Pin
led mike14-Aug-07 6:48
led mike14-Aug-07 6:48 
GeneralRe: _finite (CRT) Pin
Mark Salsbery14-Aug-07 6:52
Mark Salsbery14-Aug-07 6:52 
GeneralRe: _finite (CRT) Pin
Maxwell Chen14-Aug-07 6:53
Maxwell Chen14-Aug-07 6:53 
GeneralRe: _finite (CRT) Pin
Mark Salsbery14-Aug-07 7:03
Mark Salsbery14-Aug-07 7:03 
GeneralRe: _finite (CRT) Pin
Maxwell Chen14-Aug-07 7:05
Maxwell Chen14-Aug-07 7:05 
GeneralRe: _finite (CRT) Pin
led mike14-Aug-07 8:09
led mike14-Aug-07 8:09 
GeneralRe: _finite (CRT) Pin
Maxwell Chen14-Aug-07 8:19
Maxwell Chen14-Aug-07 8:19 
GeneralRe: _finite (CRT) Pin
El Corazon14-Aug-07 7:17
El Corazon14-Aug-07 7:17 

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.