Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: getting first root node of treeview Pin
/*Trucker*\25-Aug-05 16:15
/*Trucker*\25-Aug-05 16:15 
QuestionThreads Pin
Eytukan25-Aug-05 7:01
Eytukan25-Aug-05 7:01 
AnswerRe: Threads Pin
Jack Puppy25-Aug-05 7:20
Jack Puppy25-Aug-05 7:20 
AnswerRe: Threads Pin
David Crow25-Aug-05 7:46
David Crow25-Aug-05 7:46 
AnswerRe: Threads Pin
LighthouseJ25-Aug-05 17:03
LighthouseJ25-Aug-05 17:03 
QuestionThankz guys and about "ExitInstance()" ? Pin
Eytukan25-Aug-05 22:42
Eytukan25-Aug-05 22:42 
QuestionProgress Dialog Pin
swati2425-Aug-05 6:59
swati2425-Aug-05 6:59 
AnswerRe: Progress Dialog Pin
David Crow25-Aug-05 7:48
David Crow25-Aug-05 7:48 
Have you stepped into CDialog::Create() to see exactly which statement is "crashing?"

When I make a modeless dialog, I use:

class CProgressDlg : public CDialog
{
public:
    enum { IDD = IDD_PROGRESS_DIALOG };
    virtual void PostNcDestroy();
};
 
CProgressDlg::CProgressDlg(CWnd* pParent)
    : CDialog(CProgressDlg::IDD, pParent)
{
    Create(IDD);
}
 
void CProgressDlg::PostNcDestroy() 
{
    delete this;
	
    CDialog::PostNcDestroy();
}
To use it:

CProgressDlg *pDlg = new CProgressDialog;
pDlg->ShowWindow(SW_SHOW);    
 
// do some work
 
pDlg->DestroyWindow();
Does that help?


"One must learn from the bite of the fire to leave it alone." - Native American Proverb


GeneralRe: Progress Dialog -- Modified Pin
swati2425-Aug-05 8:28
swati2425-Aug-05 8:28 
General[Message Deleted] Pin
David Crow25-Aug-05 8:40
David Crow25-Aug-05 8:40 
GeneralRe: [Msg Deleted] Pin
swati2425-Aug-05 8:51
swati2425-Aug-05 8:51 
GeneralRe: Progress Dialog Pin
swati2425-Aug-05 8:41
swati2425-Aug-05 8:41 
GeneralRe: Progress Dialog Pin
swati2425-Aug-05 9:33
swati2425-Aug-05 9:33 
QuestionDisplay/Font Size GUI issues. Pin
oleg6325-Aug-05 6:40
professionaloleg6325-Aug-05 6:40 
QuestionSimple question if anyone knows it Pin
Joel Holdsworth25-Aug-05 6:30
Joel Holdsworth25-Aug-05 6:30 
AnswerRe: Simple question if anyone knows it Pin
David Crow25-Aug-05 7:53
David Crow25-Aug-05 7:53 
QuestionRe: Simple question if anyone knows it Pin
Joel Holdsworth25-Aug-05 21:52
Joel Holdsworth25-Aug-05 21:52 
QuestionDownload accelarator Pin
Y_R25-Aug-05 6:26
Y_R25-Aug-05 6:26 
AnswerRe: Download accelarator Pin
Chris Losinger25-Aug-05 10:07
professionalChris Losinger25-Aug-05 10:07 
GeneralRe: Download accelarator Pin
Y_R26-Aug-05 0:09
Y_R26-Aug-05 0:09 
QuestionSkype GUI? Pin
wakkerjack25-Aug-05 6:16
wakkerjack25-Aug-05 6:16 
QuestionPrinting line with DASHDOT style (MFC) Pin
AnTri25-Aug-05 5:51
AnTri25-Aug-05 5:51 
QuestionDriver interface Pin
Paresh emb25-Aug-05 5:51
Paresh emb25-Aug-05 5:51 
QuestionMJPEG Enc/Decoding Pin
Galootka25-Aug-05 5:35
Galootka25-Aug-05 5:35 
QuestionRe: MJPEG Enc/Decoding Pin
David Crow25-Aug-05 8:28
David Crow25-Aug-05 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.