Click here to Skip to main content
14,743,191 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can DDX_Text be used with CTEXT resource item Pin
ForNow22-Apr-16 4:25
MemberForNow22-Apr-16 4:25 
Questioncode path for DoModal Pin
ForNow17-Apr-16 7:21
MemberForNow17-Apr-16 7:21 
AnswerRe: code path for DoModal Pin
Victor Nijegorodov17-Apr-16 7:58
MemberVictor Nijegorodov17-Apr-16 7:58 
GeneralRe: code path for DoModal Pin
ForNow17-Apr-16 8:07
MemberForNow17-Apr-16 8:07 
GeneralRe: code path for DoModal Pin
leon de boer17-Apr-16 8:54
Memberleon de boer17-Apr-16 8:54 
QuestionRe: code path for DoModal Pin
David Crow18-Apr-16 5:04
MemberDavid Crow18-Apr-16 5:04 
AnswerRe: code path for DoModal Pin
leon de boer18-Apr-16 5:20
Memberleon de boer18-Apr-16 5:20 
GeneralRe: code path for DoModal Pin
David Crow18-Apr-16 13:06
MemberDavid Crow18-Apr-16 13:06 
leon de boer wrote:
No David its a Modeless dialog pressing the Ok button doesn't close the dialog like on a normal modal dialog.
As long as that method calls DestroyWindow() rather than CDialog::OnOK() (which internally calls CDialog::EndDialog()), the dialog will close just fine.

leon de boer wrote:

He is probably going to put some other button on screen to exit but its a stock standard modeless dialog.
There is no standard that dictates what UI element is used to close a modeless dialog. It could be Esc, the "X", Alt+F4, or a Cancel/Close button. Instead, it's what the code behind those elements do that's important.

I'm well aware of how modal and modeless dialogs behave. My question was not because I wanted to know the answer to something; it was instead asked to make the OP reconsider his design. Clicking the "X" button should call OnCancel() method.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


QuestionWaitForSingleObject not signaled Pin
ForNow14-Apr-16 16:54
MemberForNow14-Apr-16 16:54 
AnswerRe: WaitForSingleObject not signaled Pin
leon de boer15-Apr-16 5:57
Memberleon de boer15-Apr-16 5:57 
GeneralRe: WaitForSingleObject not signaled/Do CAsyncSockets notifications happen anywhere but in the main thread Pin
ForNow15-Apr-16 7:34
MemberForNow15-Apr-16 7:34 
AnswerRe: WaitForSingleObject not signaled My apologies Pin
ForNow16-Apr-16 16:36
MemberForNow16-Apr-16 16:36 
GeneralRe: WaitForSingleObject not signaled My apologies Pin
leon de boer16-Apr-16 19:10
Memberleon de boer16-Apr-16 19:10 
GeneralRe: WaitForSingleObject not signaled My apologies Pin
ForNow17-Apr-16 7:14
MemberForNow17-Apr-16 7:14 
QuestionMFC problem with CMFCVisualManager::SetDefaultManager Pin
jung-kreidler13-Apr-16 5:27
Memberjung-kreidler13-Apr-16 5:27 
QuestionMFC : Not able to populate db records in list control of MFC SDI application Pin
catchy8713-Apr-16 1:58
Membercatchy8713-Apr-16 1:58 
AnswerRe: MFC : Not able to populate db records in list control of MFC SDI application Pin
Jochen Arndt13-Apr-16 2:36
professionalJochen Arndt13-Apr-16 2:36 
QuestionDifference between Compiled and Interpreted language Pin
Mur250110-Apr-16 4:42
MemberMur250110-Apr-16 4:42 
AnswerRe: Difference between Compiled and Interpreted language Pin
Richard MacCutchan10-Apr-16 5:33
mveRichard MacCutchan10-Apr-16 5:33 
AnswerRe: Difference between Compiled and Interpreted language Pin
Albert Holguin10-Apr-16 16:20
professionalAlbert Holguin10-Apr-16 16:20 
AnswerRe: Difference between Compiled and Interpreted language Pin
W Balboos, GHB11-Apr-16 6:39
mveW Balboos, GHB11-Apr-16 6:39 
Questionis Let Us C by Yashavant Kanetkar a good resource or a bad. Pin
Mur25017-Apr-16 6:39
MemberMur25017-Apr-16 6:39 
AnswerRe: is Let Us C by Yashavant Kanetkar a good resource or a bad. Pin
Richard MacCutchan7-Apr-16 8:32
mveRichard MacCutchan7-Apr-16 8:32 
AnswerRe: is Let Us C by Yashavant Kanetkar a good resource or a bad. Pin
leon de boer7-Apr-16 17:41
Memberleon de boer7-Apr-16 17:41 
GeneralRe: is Let Us C by Yashavant Kanetkar a good resource or a bad. Pin
Mur25018-Apr-16 7:35
MemberMur25018-Apr-16 7:35 

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.