Click here to Skip to main content
15,904,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow use DDX_Radio in a CDialogBar Pin
Crownless8-Sep-09 23:26
Crownless8-Sep-09 23:26 
AnswerRe: How use DDX_Radio in a CDialogBar Pin
Richard MacCutchan8-Sep-09 23:32
mveRichard MacCutchan8-Sep-09 23:32 
GeneralRe: How use DDX_Radio in a CDialogBar Pin
Crownless8-Sep-09 23:40
Crownless8-Sep-09 23:40 
GeneralRe: How use DDX_Radio in a CDialogBar Pin
Cedric Moonen8-Sep-09 23:44
Cedric Moonen8-Sep-09 23:44 
GeneralRe: How use DDX_Radio in a CDialogBar Pin
Crownless9-Sep-09 0:15
Crownless9-Sep-09 0:15 
GeneralRe: How use DDX_Radio in a CDialogBar Pin
Selvam R9-Sep-09 1:09
professionalSelvam R9-Sep-09 1:09 
GeneralRe: How use DDX_Radio in a CDialogBar Pin
SandipG 9-Sep-09 1:29
SandipG 9-Sep-09 1:29 
QuestionAllowing a control to receive mouse clicks while a modal dialog is up. Pin
Code-o-mat8-Sep-09 22:46
Code-o-mat8-Sep-09 22:46 
Hello people!

I know this sounds sick, but...sadly in our project the requirement arose to let the user click on a control "behind" a modal dialog. This control is on the main window of our application which is also the parent of the modal dialog and the requirement says that the user should be able to click around this one control in the main window but he should not be able to use anything else that is not on the modal dialog.
I know i could make the dialog modeless and disable everything on the main window except for this one control but this solution doesn't sound all that "sophisticated" and i am hoping for a better one, not to mention that if i disable everything else on the main window the user will still be able to move it around and resize it while the dialog is up and that is also not acceptable but hacking into the moving-sizing functionality also sounds disgusting. Another problem with this aproach would be that certain things around the main window might change enabled-disabled states while the dialog is up depending on certain events (mostly triggered by changes in hardware) so simply disabling everything and re-enabling them once the dialog is closed is not that obvious as it sounds.
Another thing i can think of is capturing the mouse input to the dialog and checking what is under the mouse when it is clicked and if it is that certain control, post/send the mouse messages to it, this might or might not work and also this causes problems when the user tries to move the dialog itself around or when it clicks on a button in the dialog.
I tried catching the needed mouse messages in CWinApp::ProcessMessageFilter or CWinApp::PreTranslateMessage but these don't seem to get called if the user clicks outside of the dialog.
So, any of you have a better idea how to do this if it is possible at all? Is there maybe a filter method i could overwrite somewhere that filters out clicks outside of the modal dialog?

Thanks in advance.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

QuestionRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
CPallini8-Sep-09 22:52
mveCPallini8-Sep-09 22:52 
AnswerRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Code-o-mat8-Sep-09 22:58
Code-o-mat8-Sep-09 22:58 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
CPallini8-Sep-09 23:07
mveCPallini8-Sep-09 23:07 
AnswerRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Richard MacCutchan8-Sep-09 23:30
mveRichard MacCutchan8-Sep-09 23:30 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Code-o-mat9-Sep-09 0:37
Code-o-mat9-Sep-09 0:37 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Richard MacCutchan9-Sep-09 2:44
mveRichard MacCutchan9-Sep-09 2:44 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Ragha Venkat11-Sep-09 0:44
Ragha Venkat11-Sep-09 0:44 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Richard MacCutchan11-Sep-09 1:07
mveRichard MacCutchan11-Sep-09 1:07 
Questionhow to write a programme in V C++ the display on the screen like this??? Pin
mr bard28-Sep-09 21:41
mr bard28-Sep-09 21:41 
AnswerRe: how to write a programme in V C++ the display on the screen like this??? Pin
Richard MacCutchan8-Sep-09 23:17
mveRichard MacCutchan8-Sep-09 23:17 
AnswerRe: how to write a programme in V C++ the display on the screen like this??? Pin
Adam Roderick J8-Sep-09 23:28
Adam Roderick J8-Sep-09 23:28 
Questionrequestion create an instance of Command [modified] Pin
MsmVc8-Sep-09 21:30
MsmVc8-Sep-09 21:30 
AnswerRe: requestion create an instance of Command Pin
CPallini8-Sep-09 21:38
mveCPallini8-Sep-09 21:38 
QuestionRe: requestion create an instance of Command Pin
David Crow9-Sep-09 3:23
David Crow9-Sep-09 3:23 
AnswerRe: requestion create an instance of Command Pin
Stuart Dootson9-Sep-09 3:31
professionalStuart Dootson9-Sep-09 3:31 
GeneralRe: requestion create an instance of Command Pin
MsmVc10-Sep-09 18:49
MsmVc10-Sep-09 18:49 
QuestionKill Process using DebugActiveProcess. Pin
gothic_coder8-Sep-09 20:55
gothic_coder8-Sep-09 20:55 

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.