Click here to Skip to main content
16,006,065 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGDI+ cpu usage Pin
Alberto_Canabal29-Nov-05 3:48
Alberto_Canabal29-Nov-05 3:48 
AnswerRe: GDI+ cpu usage Pin
Shog929-Nov-05 11:39
sitebuilderShog929-Nov-05 11:39 
GeneralRe: GDI+ cpu usage Pin
Alberto_Canabal1-Dec-05 1:01
Alberto_Canabal1-Dec-05 1:01 
GeneralRe: GDI+ cpu usage Pin
Shog91-Dec-05 10:56
sitebuilderShog91-Dec-05 10:56 
GeneralRe: GDI+ cpu usage Pin
Alberto_Canabal2-Dec-05 7:29
Alberto_Canabal2-Dec-05 7:29 
GeneralRe: GDI+ cpu usage Pin
Shog92-Dec-05 7:51
sitebuilderShog92-Dec-05 7:51 
Questionto send data from parent window to child window Pin
sheshidar29-Nov-05 3:28
sheshidar29-Nov-05 3:28 
AnswerRe: to send data from parent window to child window Pin
Cedric Moonen29-Nov-05 3:47
Cedric Moonen29-Nov-05 3:47 
This would never work because DoModal will 'block' until the dialog box is closed.
A better way to 'send' data from your parent dialog to your child dialog is to add method in your child dialog that will 'store' the data. You call these function before calling DoModal and in OnInitDialog of your child dialog, you just have to use this data.

Example:

class CChildDlg : public CDialog<br />
{<br />
public:<br />
   void SetData(int Value)  { m_Value = Value; }<br />
<br />
private:<br />
   int m_Value;<br />
}


voidCChildDlg::OnInitDialog()<br />
{<br />
   // Use the data in m_Value to display it somwhere...<br />
   ....<br />
}

GeneralRe: to send data from parent window to child window Pin
sheshidar30-Nov-05 0:54
sheshidar30-Nov-05 0:54 
QuestionChange Thread Name in MFC Pin
Pixinger7729-Nov-05 3:09
Pixinger7729-Nov-05 3:09 
AnswerRe: Change Thread Name in MFC Pin
Blake Miller29-Nov-05 5:13
Blake Miller29-Nov-05 5:13 
GeneralRe: Change Thread Name in MFC Pin
Blake Miller29-Nov-05 6:32
Blake Miller29-Nov-05 6:32 
GeneralRe: Change Thread Name in MFC Pin
Pixinger7722-Dec-05 23:21
Pixinger7722-Dec-05 23:21 
QuestionHow I can read the value of CPU's program counter . Pin
Loc Milkyway29-Nov-05 3:07
Loc Milkyway29-Nov-05 3:07 
Questionpop-up menu problem, inside splitter, using doc/view Pin
l00p1n629-Nov-05 3:00
l00p1n629-Nov-05 3:00 
Questionproblem with DirectSound application Pin
8ki29-Nov-05 3:00
8ki29-Nov-05 3:00 
QuestionHow to use Enum::Parse properly Pin
DWOO29-Nov-05 2:54
DWOO29-Nov-05 2:54 
QuestionFilters (highpass, lowpass, bandpass) Pin
Obliterator29-Nov-05 2:49
Obliterator29-Nov-05 2:49 
AnswerRe: Filters (highpass, lowpass, bandpass) Pin
Russell'29-Nov-05 3:54
Russell'29-Nov-05 3:54 
AnswerRe: Filters (highpass, lowpass, bandpass) Pin
Chris Losinger29-Nov-05 5:01
professionalChris Losinger29-Nov-05 5:01 
QuestionTaking controll over... Pin
Larsson29-Nov-05 2:14
Larsson29-Nov-05 2:14 
AnswerRe: Taking controll over... Pin
Cedric Moonen29-Nov-05 3:38
Cedric Moonen29-Nov-05 3:38 
QuestionCFileDialog Pin
vijayganesh29-Nov-05 1:27
vijayganesh29-Nov-05 1:27 
AnswerRe: CFileDialog Pin
ThatsAlok29-Nov-05 2:10
ThatsAlok29-Nov-05 2:10 
GeneralRe: CFileDialog Pin
vijayganesh29-Nov-05 21:01
vijayganesh29-Nov-05 21:01 

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.