Click here to Skip to main content
16,012,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralListBox ... Pin
Hadi Rezaee21-Feb-01 8:09
Hadi Rezaee21-Feb-01 8:09 
GeneralRe: ListBox ... Pin
Christian Graus21-Feb-01 9:42
protectorChristian Graus21-Feb-01 9:42 
GeneralRe: ListBox ... Pin
l a u r e n21-Feb-01 10:21
l a u r e n21-Feb-01 10:21 
GeneralComboBox question Pin
David Burrows21-Feb-01 7:36
David Burrows21-Feb-01 7:36 
GeneralRe: ComboBox question Pin
Christian Graus21-Feb-01 9:46
protectorChristian Graus21-Feb-01 9:46 
GeneralRe: ComboBox question Pin
Matt Gullett21-Feb-01 10:55
Matt Gullett21-Feb-01 10:55 
GeneralHelp me! Pin
21-Feb-01 6:27
suss21-Feb-01 6:27 
GeneralRe: Help me! Pin
Christian Graus21-Feb-01 9:37
protectorChristian Graus21-Feb-01 9:37 
I'm not sure what you are asking ?? To show a modeless dialog, you would make a pointer to one a member variable so you can create it and it won't go out of scope. I tend to put

If (Create(IDD, pParent))ShowWindow(SW_SHOW);

in my constructor so that creating my modeless dialog also shows it. In order to do something in your main view based on the pressing of cancel, you would override OnCancel and do whatever you want there. For example, you could write a function in your mainframe that does what you want, and call it like this

CMainFrame* pMain = (CMainFrame*) AfxGetMainWnd();
pMain->MyFunkyFunction();

I posted an answer yesterday where I showed how to get pointers to view and doc objects also.

Hope that helps.

Christian

The content of this post is not necessarily the opinion of my yadda yadda yadda.

To understand recursion, we must first understand recursion.
QuestionIs it possible to make a BitmapButton from a user defined region? Pin
eric kaminski21-Feb-01 3:51
eric kaminski21-Feb-01 3:51 
AnswerRe: Is it possible to make a BitmapButton from a user defined region? Pin
SriSubbu22-Feb-01 6:09
professionalSriSubbu22-Feb-01 6:09 
GeneralWrapping MFC app in a ActiveX for embedding in Explorer Pin
21-Feb-01 3:23
suss21-Feb-01 3:23 
GeneralRe: Wrapping MFC app in a ActiveX for embedding in Explorer Pin
l a u r e n21-Feb-01 11:05
l a u r e n21-Feb-01 11:05 
GeneralNo Modal Pin
21-Feb-01 0:57
suss21-Feb-01 0:57 
GeneralRe: No Modal Pin
21-Feb-01 2:28
suss21-Feb-01 2:28 
GeneralRe: No Modal Pin
21-Feb-01 3:55
suss21-Feb-01 3:55 
GeneralRe: No Modal Pin
l a u r e n21-Feb-01 7:03
l a u r e n21-Feb-01 7:03 
GeneralEaster Date Calculation Egg Pin
ColinDavies20-Feb-01 23:43
ColinDavies20-Feb-01 23:43 
GeneralRe: Easter Date Calculation Egg Pin
Tim Deveaux21-Feb-01 4:10
Tim Deveaux21-Feb-01 4:10 
GeneralRe: Easter Date Calculation Egg Pin
Tim Deveaux21-Feb-01 8:03
Tim Deveaux21-Feb-01 8:03 
QuestionDetecting Internet Connection? Pin
TomK20-Feb-01 23:27
TomK20-Feb-01 23:27 
AnswerRe: Detecting Internet Connection? Pin
Paolo Messina21-Feb-01 7:35
professionalPaolo Messina21-Feb-01 7:35 
QuestionHow to create service in Windows 98 Pin
Puneet Jain20-Feb-01 22:23
Puneet Jain20-Feb-01 22:23 
GeneralTSR programming Pin
20-Feb-01 21:59
suss20-Feb-01 21:59 
GeneralRe: TSR programming Pin
l a u r e n20-Feb-01 23:06
l a u r e n20-Feb-01 23:06 
GeneralPassing data from Document to a Modal Dialog Pin
20-Feb-01 21:51
suss20-Feb-01 21:51 

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.