Click here to Skip to main content
15,889,839 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Modeless Dialog with Message Loop Pin
pasztorpisti8-Jul-13 2:24
pasztorpisti8-Jul-13 2:24 
AnswerRe: Modeless Dialog with Message Loop Pin
Erudite_Eric7-Jul-13 23:26
Erudite_Eric7-Jul-13 23:26 
GeneralRe: Modeless Dialog with Message Loop Pin
pasztorpisti8-Jul-13 8:40
pasztorpisti8-Jul-13 8:40 
GeneralRe: Modeless Dialog with Message Loop Pin
Erudite_Eric9-Jul-13 0:20
Erudite_Eric9-Jul-13 0:20 
GeneralRe: Modeless Dialog with Message Loop Pin
Erudite_Eric10-Jul-13 2:14
Erudite_Eric10-Jul-13 2:14 
GeneralRe: Modeless Dialog with Message Loop Pin
pasztorpisti10-Jul-13 2:25
pasztorpisti10-Jul-13 2:25 
GeneralRe: Modeless Dialog with Message Loop Pin
Erudite_Eric10-Jul-13 4:25
Erudite_Eric10-Jul-13 4:25 
GeneralRe: Modeless Dialog with Message Loop Pin
pasztorpisti10-Jul-13 5:17
pasztorpisti10-Jul-13 5:17 
It is not stupid, but its an ugly workaround to a problem that has no fine solution. This own message loop workaround has several problems: it runs as long as our modeless dialogs are open and during this time it serves the messages to other windows as well, in this case if IE had its own modeless dialogs then dialog features wouldn't work on those dialogs as those are handled by IE's main message loops (same is true for other possible features that are implemented in the main loop of IE). We could probably find even more problems with this solution. The question is: how much time is available for the asker to finish this job and how much risk he takes if he chooses to implement dialog features for himself in his own dialogs by going with the message loop of IE. Sadly, programming for companies is often about saving time and playing safe and not taking risks for delivering correct solutions (unlike in hobby projects) especially if that would involve modifying legacy code that "still works". There are cases where the own loop is fine: for example the winapi MessageBox() does this (but its a modal dialog) and windows also running its own loop while you are moving a window by grabbing its title bar (and there can be other cases). There are probably many other cases where the own loop can be appropriate but a modeless dialog is definitely not among those.
GeneralRe: Modeless Dialog with Message Loop Pin
Erudite_Eric10-Jul-13 23:18
Erudite_Eric10-Jul-13 23:18 
GeneralRe: Modeless Dialog with Message Loop Pin
pasztorpisti11-Jul-13 0:21
pasztorpisti11-Jul-13 0:21 
GeneralRe: Modeless Dialog with Message Loop Pin
Erudite_Eric11-Jul-13 2:07
Erudite_Eric11-Jul-13 2:07 
GeneralRe: Modeless Dialog with Message Loop Pin
pasztorpisti11-Jul-13 2:13
pasztorpisti11-Jul-13 2:13 
GeneralRe: Modeless Dialog with Message Loop Pin
Erudite_Eric11-Jul-13 3:13
Erudite_Eric11-Jul-13 3:13 
GeneralRe: Modeless Dialog with Message Loop Pin
pasztorpisti11-Jul-13 3:52
pasztorpisti11-Jul-13 3:52 
GeneralRe: Modeless Dialog with Message Loop Pin
Erudite_Eric11-Jul-13 4:09
Erudite_Eric11-Jul-13 4:09 
Question[Touchdisplay] Right mouseclick on CView not working Pin
Kreatief4-Jul-13 21:02
Kreatief4-Jul-13 21:02 
AnswerRe: [Touchdisplay] Right mouseclick on CView not working Pin
Jochen Arndt4-Jul-13 23:20
professionalJochen Arndt4-Jul-13 23:20 
GeneralRe: [Touchdisplay] Right mouseclick on CView not working Pin
Kreatief8-Jul-13 5:15
Kreatief8-Jul-13 5:15 
GeneralRe: [Touchdisplay] Right mouseclick on CView not working Pin
Jochen Arndt8-Jul-13 21:06
professionalJochen Arndt8-Jul-13 21:06 
GeneralRe: [Touchdisplay] Right mouseclick on CView not working Pin
Kreatief9-Jul-13 0:31
Kreatief9-Jul-13 0:31 
Questionmy exe appears in task manager after closing. Pin
sunny_vc4-Jul-13 20:41
sunny_vc4-Jul-13 20:41 
AnswerRe: my exe appears in task manager after closing. Pin
Jochen Arndt4-Jul-13 21:04
professionalJochen Arndt4-Jul-13 21:04 
AnswerRe: my exe appears in task manager after closing. Pin
pasztorpisti5-Jul-13 13:53
pasztorpisti5-Jul-13 13:53 
AnswerRe: my exe appears in task manager after closing. Pin
Erudite_Eric7-Jul-13 23:33
Erudite_Eric7-Jul-13 23:33 
QuestionFirst 10 or 20 lessons Pin
C-P-User-34-Jul-13 13:02
C-P-User-34-Jul-13 13:02 

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.