Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSupressing MS Automatic Error Pin
dmaclellan25-Nov-05 6:11
dmaclellan25-Nov-05 6:11 
AnswerRe: Supressing MS Automatic Error Pin
sanket.patel25-Nov-05 22:14
sanket.patel25-Nov-05 22:14 
GeneralRe: Supressing MS Automatic Error Pin
dmaclellan28-Nov-05 6:31
dmaclellan28-Nov-05 6:31 
GeneralRe: Supressing MS Automatic Error Pin
dmaclellan28-Nov-05 6:43
dmaclellan28-Nov-05 6:43 
GeneralRe: Supressing MS Automatic Error Pin
Blake Miller28-Nov-05 8:23
Blake Miller28-Nov-05 8:23 
GeneralRe: Supressing MS Automatic Error Pin
dmaclellan14-Dec-05 6:00
dmaclellan14-Dec-05 6:00 
QuestionCDialog : Passing Back variables to the Parent's Dialog Pin
sdancer7525-Nov-05 5:10
sdancer7525-Nov-05 5:10 
AnswerRe: CDialog : Passing Back variables to the Parent's Dialog Pin
Gary R. Wheeler25-Nov-05 6:09
Gary R. Wheeler25-Nov-05 6:09 
You can add public member variables or functions to the CCreateCategoryDlg class that return the results. Here's an example:
public CMyDialog : CDialog {
public:
  virtual void OnOK();
  int GetResult();
private:
  int Result;
};
void CMyDialog::OnOK()
{
  Result = list_box.GetCurSel();
}
int CMyDialog::GetResult()
{
  return Result;
}
Note that you can't reference the list box in the function GetResult(). At this point, the dialog window and its child controls have already been destroyed. This is the reason for the OnOK() handler, which is called when the user clicks the OK button, before the dialog is destroyed. Save the contents of the controls in the OnOK() handler, and then return those saved results in the "Get*" functions.


Software Zen: delete this;
QuestionOverlapping control -problem Pin
Pazzuzu25-Nov-05 4:42
Pazzuzu25-Nov-05 4:42 
AnswerRe: Overlapping control -problem Pin
Blake Miller28-Nov-05 12:40
Blake Miller28-Nov-05 12:40 
GeneralRe: Overlapping control -problem Pin
Pazzuzu28-Nov-05 22:12
Pazzuzu28-Nov-05 22:12 
QuestionObtaining the name of the caller function Pin
emmatty25-Nov-05 2:46
emmatty25-Nov-05 2:46 
AnswerRe: Obtaining the name of the caller function Pin
Gary R. Wheeler25-Nov-05 2:59
Gary R. Wheeler25-Nov-05 2:59 
GeneralRe: Obtaining the name of the caller function Pin
Chris Losinger25-Nov-05 5:37
professionalChris Losinger25-Nov-05 5:37 
GeneralRe: Obtaining the name of the caller function Pin
Gary R. Wheeler25-Nov-05 5:57
Gary R. Wheeler25-Nov-05 5:57 
GeneralRe: Obtaining the name of the caller function Pin
Michael Dunn25-Nov-05 9:53
sitebuilderMichael Dunn25-Nov-05 9:53 
AnswerRe: Obtaining the name of the caller function Pin
cmk25-Nov-05 3:01
cmk25-Nov-05 3:01 
AnswerRe: Obtaining the name of the caller function Pin
Bob Stanneveld25-Nov-05 4:26
Bob Stanneveld25-Nov-05 4:26 
AnswerRe: Obtaining the name of the caller function Pin
Michael Dunn25-Nov-05 9:59
sitebuilderMichael Dunn25-Nov-05 9:59 
QuestionSending mail Pin
Analog1925-Nov-05 2:39
Analog1925-Nov-05 2:39 
AnswerRe: Sending mail Pin
Taka Muraoka25-Nov-05 6:38
Taka Muraoka25-Nov-05 6:38 
AnswerRe: Sending mail Pin
PJ Arends25-Nov-05 7:40
professionalPJ Arends25-Nov-05 7:40 
GeneralRe: Sending mail Pin
dandy7225-Nov-05 12:52
dandy7225-Nov-05 12:52 
GeneralRe: Sending mail Pin
PJ Arends25-Nov-05 13:13
professionalPJ Arends25-Nov-05 13:13 
GeneralRe: Sending mail Pin
dandy7228-Nov-05 11:59
dandy7228-Nov-05 11:59 

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.