Click here to Skip to main content
16,011,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmaps? in dialogs Pin
Paul M Watt21-Feb-03 16:55
mentorPaul M Watt21-Feb-03 16:55 
Generalopening and finding files in a directory Pin
kiken21-Feb-03 13:50
kiken21-Feb-03 13:50 
GeneralRe: opening and finding files in a directory Pin
Chris Losinger21-Feb-03 14:08
professionalChris Losinger21-Feb-03 14:08 
GeneralReadFile in pipe communication Pin
includeh1021-Feb-03 12:40
includeh1021-Feb-03 12:40 
GeneralRe: ReadFile in pipe communication Pin
Michael Dunn21-Feb-03 16:10
sitebuilderMichael Dunn21-Feb-03 16:10 
QuestionCan I control the Item height in a CListCtrl? Pin
David Oberg21-Feb-03 12:25
David Oberg21-Feb-03 12:25 
Generalclosing a CDialog from the spawning parent Pin
nss21-Feb-03 11:37
nss21-Feb-03 11:37 
GeneralRe: closing a CDialog from the spawning parent Pin
Gary R. Wheeler21-Feb-03 11:46
Gary R. Wheeler21-Feb-03 11:46 
Use pMyDlg->DestroyWindow(). DestroyWindow() sends a WM_DESTROY message to the dialog, among other things. That's the legit way to close down a modeless dialog from 'outside' the dialog.

Since you used a pointer, I'll assume somewhere you have code like:
pMyDlg = new MyDlgClass(...);

If that's the case, you will still need to do this:
delete pMyDlg;

somewhere. If you are doing this, you could have the MyDlgClass destructor call DestroyWindow(). With that, you could just do the delete pMyDlg, and the destructor would close down the dialog for you.


Software Zen: delete this;
Generalthank you. Pin
nss21-Feb-03 15:27
nss21-Feb-03 15:27 
QuestionMFC fails on stress testing? Pin
Moak21-Feb-03 10:57
Moak21-Feb-03 10:57 
AnswerRe: MFC fails on stress testing? Pin
Moak22-Feb-03 9:34
Moak22-Feb-03 9:34 
GeneralProblem with ComboBox in MFC app running under win98 Pin
Valera24117621-Feb-03 10:23
Valera24117621-Feb-03 10:23 
GeneralRe: Problem with ComboBox in MFC app running under win98 Pin
Michael Dunn21-Feb-03 11:38
sitebuilderMichael Dunn21-Feb-03 11:38 
GeneralWin2k parallel port Pin
Gpe. Ruiz21-Feb-03 10:05
Gpe. Ruiz21-Feb-03 10:05 
GeneralRe: Win2k parallel port Pin
Gary R. Wheeler21-Feb-03 11:55
Gary R. Wheeler21-Feb-03 11:55 
GeneralRe: Win2k parallel port Pin
Gpe. Ruiz24-Feb-03 2:46
Gpe. Ruiz24-Feb-03 2:46 
GeneralRe: Win2k parallel port Pin
Sean Cundiff21-Feb-03 12:47
Sean Cundiff21-Feb-03 12:47 
GeneralRe: Win2k parallel port Pin
Gpe. Ruiz24-Feb-03 2:51
Gpe. Ruiz24-Feb-03 2:51 
QuestionHow do you write a program to block a port using mfc/C++ ? Pin
Norrie Taylor21-Feb-03 9:01
Norrie Taylor21-Feb-03 9:01 
GeneralUsing perl.net in VC7.0 Pin
Member 13661821-Feb-03 8:56
Member 13661821-Feb-03 8:56 
Generalserialize Pin
dudic21-Feb-03 8:55
dudic21-Feb-03 8:55 
GeneralRe: serialize Pin
Norrie Taylor21-Feb-03 9:12
Norrie Taylor21-Feb-03 9:12 
GeneralFile read Pin
Kash21-Feb-03 8:09
Kash21-Feb-03 8:09 
GeneralRe: File read Pin
Nitron21-Feb-03 8:16
Nitron21-Feb-03 8:16 
GeneralRe: File read Pin
Kash21-Feb-03 8:28
Kash21-Feb-03 8:28 

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.