Click here to Skip to main content
15,905,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem on dialog creation Pin
Mark Salsbery18-May-07 8:19
Mark Salsbery18-May-07 8:19 
GeneralRe: Problem on dialog creation Pin
jpyp18-May-07 9:20
jpyp18-May-07 9:20 
GeneralRe: Problem on dialog creation Pin
Mark Salsbery18-May-07 9:45
Mark Salsbery18-May-07 9:45 
QuestionRe: Problem on dialog creation Pin
David Crow18-May-07 9:51
David Crow18-May-07 9:51 
GeneralRe: Problem on dialog creation Pin
jpyp22-May-07 7:38
jpyp22-May-07 7:38 
AnswerRe: Proble on dialog creation Pin
David Crow17-May-07 10:24
David Crow17-May-07 10:24 
GeneralRe: Problem on dialog creation Pin
jpyp17-May-07 11:11
jpyp17-May-07 11:11 
GeneralRe: Problem on dialog creation Pin
David Crow18-May-07 2:59
David Crow18-May-07 2:59 
jpyp wrote:
By easy solution you mean removing the SetCheck(FALSE) call in OnInitDialog()...


No, I did not mean that at all. Try:

void CMyDialog::CMyDialog()
{
    m_bInitializing = true;
}
 
BOOL CMyDialog::OnInitDialog()
{
    CDialog::OnInitDialog();
    ...
    m_bInitializing = false;
    return TRUE;
}
 
void CMyDialog::OnButtonChange()
{
    if (! m_bInitializing)
    {
        // do whatever here
    }
}



"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: Problem on dialog creation Pin
jpyp18-May-07 8:11
jpyp18-May-07 8:11 
GeneralRe: Problem on dialog creation Pin
David Crow18-May-07 8:25
David Crow18-May-07 8:25 
GeneralRe: Problem on dialog creation Pin
jpyp18-May-07 9:24
jpyp18-May-07 9:24 
QuestionSimple way of reading JPEG and TIFF images?? Pin
Kiran Satish17-May-07 8:47
Kiran Satish17-May-07 8:47 
AnswerRe: Simple way of reading JPEG and TIFF images?? Pin
led mike17-May-07 8:58
led mike17-May-07 8:58 
GeneralRe: Simple way of reading JPEG and TIFF images?? Pin
Mark Salsbery17-May-07 9:03
Mark Salsbery17-May-07 9:03 
GeneralRe: Simple way of reading JPEG and TIFF images?? Pin
led mike17-May-07 9:17
led mike17-May-07 9:17 
GeneralRe: Simple way of reading JPEG and TIFF images?? Pin
Mark Salsbery17-May-07 9:19
Mark Salsbery17-May-07 9:19 
GeneralRe: Simple way of reading JPEG and TIFF images?? Pin
Moak17-May-07 9:07
Moak17-May-07 9:07 
GeneralRe: Simple way of reading JPEG and TIFF images?? Pin
Mark Salsbery17-May-07 9:11
Mark Salsbery17-May-07 9:11 
GeneralRe: Simple way of reading JPEG and TIFF images?? Pin
Hamid_RT17-May-07 9:21
Hamid_RT17-May-07 9:21 
JokeRe: Simple way of reading JPEG and TIFF images?? Pin
Moak17-May-07 9:22
Moak17-May-07 9:22 
GeneralRe: Simple way of reading JPEG and TIFF images?? Pin
Mark Salsbery17-May-07 9:29
Mark Salsbery17-May-07 9:29 
GeneralRe: Simple way of reading JPEG and TIFF images?? Pin
led mike17-May-07 9:15
led mike17-May-07 9:15 
AnswerRe: Simple way of reading JPEG and TIFF images?? Pin
Mark Salsbery17-May-07 9:02
Mark Salsbery17-May-07 9:02 
AnswerRe: Simple way of reading JPEG and TIFF images?? Pin
Moak17-May-07 9:05
Moak17-May-07 9:05 
AnswerRe: Simple way of reading JPEG and TIFF images?? Pin
Hamid_RT17-May-07 9:18
Hamid_RT17-May-07 9:18 

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.