Click here to Skip to main content
15,886,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionACCESSING METHOD EXPORT in CLASS in DLL Pin
Killer320-Apr-06 20:08
Killer320-Apr-06 20:08 
AnswerRe: ACCESSING METHOD EXPORT in CLASS in DLL Pin
ThatsAlok20-Apr-06 21:03
ThatsAlok20-Apr-06 21:03 
QuestionChanging the caption on the button in the AfxMessageBox Pin
Taruni20-Apr-06 20:06
Taruni20-Apr-06 20:06 
AnswerRe: Changing the caption on the button in the AfxMessageBox Pin
harshandu20-Apr-06 20:50
harshandu20-Apr-06 20:50 
AnswerRe: Changing the caption on the button in the AfxMessageBox Pin
ThatsAlok20-Apr-06 21:00
ThatsAlok20-Apr-06 21:00 
QuestionTree view problem Pin
harshandu20-Apr-06 19:54
harshandu20-Apr-06 19:54 
AnswerRe: Tree view problem Pin
Nishad S20-Apr-06 21:53
Nishad S20-Apr-06 21:53 
QuestionModeless Dialog Destroy Problem Pin
Hongjun Ge20-Apr-06 19:42
Hongjun Ge20-Apr-06 19:42 
I have two modeless dialog, CDialog1, CDialog2, I use the two dialog in a formview. The formview have a member variable CDialog *m_pDlg;

I use them like this:

CMyForm::CMyForm() : m_pDlg(NULL)<br />
{<br />
}<br />
<br />
void CMyForm::OnDestroy()<br />
{<br />
    DestroyDlg();<br />
}<br />
<br />
void CMyForm::DestroyDlg()<br />
{<br />
    if (m_pDlg)<br />
    {<br />
        m_pDlg->DestroyWindow();<br />
        delete m_pDlg;<br />
        m_pDlg = NULL;<br />
    }<br />
}<br />
<br />
short nDlgFlag = -1;<br />
<br />
void CMyForm::OnBtn1()<br />
{<br />
    if (nDlgFlag == 0)<br />
        return;<br />
<br />
    nDlgFlag = 0;<br />
<br />
    DestroyDlg();<br />
<br />
    m_pDlg = new CDialog1;<br />
    m_pDlg->Create(IDD_DIALOG1, this);<br />
    m_pDlg->ShowWindow(SW_SHOW);<br />
}<br />
<br />
void CMyForm::OnBtn2()<br />
{<br />
    if (nDlgFlag == 1)<br />
        return;<br />
<br />
    nDlgFlag = 1;<br />
<br />
    DestroyDlg();<br />
<br />
    m_pDlg = new CDialog2;<br />
    m_pDlg->Create(IDD_DIALOG2, this);<br />
    m_pDlg->ShowWindow(SW_SHOW);<br />
}

My question is when i click button1 and then button2 the taskmanager show that the appliction used memory increased, but when i minimize it the used memory decreased to lower, and show again the memory used lower than before minimized, I don't know why. Any one help me.
Is there any function can do this but needn't to mimimize it.
Thanks a lot.

Hongjun Ge
AnswerRe: Modeless Dialog Destroy Problem Pin
David Crow21-Apr-06 3:26
David Crow21-Apr-06 3:26 
QuestionSQL SERVER PATH Pin
mikobi20-Apr-06 19:38
mikobi20-Apr-06 19:38 
QuestionRe: SQL SERVER PATH Pin
David Crow21-Apr-06 3:27
David Crow21-Apr-06 3:27 
QuestionHow to get visiable item index in a list control of icon style? Pin
chybin20-Apr-06 19:34
chybin20-Apr-06 19:34 
AnswerRe: How to get visiable item index in a list control of icon style? Pin
Naveen20-Apr-06 20:08
Naveen20-Apr-06 20:08 
GeneralRe: How to get visiable item index in a list control of icon style? Pin
chybin20-Apr-06 20:35
chybin20-Apr-06 20:35 
GeneralRe: How to get visiable item index in a list control of icon style? Pin
Naveen20-Apr-06 21:52
Naveen20-Apr-06 21:52 
GeneralRe: How to get visiable item index in a list control of icon style? Pin
chybin21-Apr-06 18:09
chybin21-Apr-06 18:09 
Questionmap::find , the two overloaded versions have the same pass-in parameters. Does it make sense? Pin
followait20-Apr-06 19:11
followait20-Apr-06 19:11 
AnswerRe: map::find , the two overloaded versions have the same pass-in parameters. Does it make sense? Pin
ThatsAlok20-Apr-06 20:48
ThatsAlok20-Apr-06 20:48 
AnswerRe: map::find , the two overloaded versions have the same pass-in parameters. Does it make sense? Pin
ThatsAlok20-Apr-06 20:57
ThatsAlok20-Apr-06 20:57 
AnswerRe: map::find , the two overloaded versions have the same pass-in parameters. Does it make sense? Pin
John R. Shaw20-Apr-06 21:48
John R. Shaw20-Apr-06 21:48 
AnswerRe: map::find , the two overloaded versions have the same pass-in parameters. Does it make sense? Pin
jhwurmbach21-Apr-06 1:03
jhwurmbach21-Apr-06 1:03 
QuestionHow to check whether a folder is there in the system Pin
Aryan S20-Apr-06 18:19
Aryan S20-Apr-06 18:19 
AnswerRe: How to check whether a folder is there in the system Pin
Mila02520-Apr-06 19:21
Mila02520-Apr-06 19:21 
GeneralRe: How to check whether a folder is there in the system Pin
Aryan S20-Apr-06 19:31
Aryan S20-Apr-06 19:31 
GeneralRe: How to check whether a folder is there in the system Pin
Mila02520-Apr-06 19:53
Mila02520-Apr-06 19:53 

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.