Click here to Skip to main content
15,893,790 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWelcome in the CP's Memorable Quotes list. Pin
CPallini26-Apr-09 21:40
mveCPallini26-Apr-09 21:40 
GeneralRe: Welcome in the CP's Memorable Quotes list. Pin
_AnsHUMAN_ 26-Apr-09 21:56
_AnsHUMAN_ 26-Apr-09 21:56 
AnswerRe: help fix my program Pin
CPallini26-Apr-09 21:25
mveCPallini26-Apr-09 21:25 
QuestionRe: help fix my program Pin
David Crow27-Apr-09 3:46
David Crow27-Apr-09 3:46 
QuestionReport tool Pin
rastaVnuce26-Apr-09 12:32
rastaVnuce26-Apr-09 12:32 
Questionhow to convert byte array of .jpg and .jp2 images to Bitmap byte array in VC++? Pin
kapardhi26-Apr-09 4:09
kapardhi26-Apr-09 4:09 
AnswerRe: how to convert byte array of .jpg and .jp2 images to Bitmap byte array in VC++? Pin
CPallini26-Apr-09 4:47
mveCPallini26-Apr-09 4:47 
GeneralRe: how to convert byte array of .jpg and .jp2 images to Bitmap byte array in VC++? Pin
Hamid_RT26-Apr-09 6:34
Hamid_RT26-Apr-09 6:34 
GeneralRe: how to convert byte array of .jpg and .jp2 images to Bitmap byte array in VC++? Pin
CPallini26-Apr-09 6:56
mveCPallini26-Apr-09 6:56 
GeneralRe: how to convert byte array of .jpg and .jp2 images to Bitmap byte array in VC++? Pin
kapardhi26-Apr-09 18:49
kapardhi26-Apr-09 18:49 
AnswerRe: how to convert byte array of .jpg and .jp2 images to Bitmap byte array in VC++? Pin
Hamid_RT26-Apr-09 6:33
Hamid_RT26-Apr-09 6:33 
QuestionControl not coming to the new method after .odl modification? [modified] Pin
SIJUTHOMASP26-Apr-09 3:02
professionalSIJUTHOMASP26-Apr-09 3:02 
AnswerRe: Control not coming to the new method after .odl modification? Pin
SIJUTHOMASP26-Apr-09 9:31
professionalSIJUTHOMASP26-Apr-09 9:31 
Questionextern variable Pin
durban225-Apr-09 21:25
durban225-Apr-09 21:25 
AnswerRe: extern variable Pin
Stuart Dootson25-Apr-09 21:47
professionalStuart Dootson25-Apr-09 21:47 
AnswerRe: extern variable Pin
ThatsAlok26-Apr-09 18:31
ThatsAlok26-Apr-09 18:31 
Questionconstructor and OnInitDialog() Pin
durban225-Apr-09 21:21
durban225-Apr-09 21:21 
MFC, STUDIO 2008, MDI

Why ignore ( skip ) value from OnInitDialog()
There are modal and modeless windows:

// modeldlg2.h
class CMainDlg2 : public CDialog // modal window
{
public:
virtual BOOL OnInitDialog();
CString m_sPP_modal7;
};

// adderdlg2.h
class CAdderDialog2 : public Cdialog // modeless window
{
public:
virtual BOOL OnInitDialog();
};

// modeldlg2.cpp : implementation file

CMainDlg2::CMainDlg2(CWnd* pParent /*=NULL*/) // standard constructor
: CDialog(CMainDlg2::IDD, pParent)
m_sPP_modal7 = "Paris";
}
BOOL CMainDlg2::OnInitDialog()
{
CDialog::OnInitDialog();
m_sPP_modal7 = "New-York";
return TRUE; // return TRUE unless you set the focus to a control
}


// adderdlg2.cpp : implementation file MODELESS window
BOOL CAdderDialog2::OnInitDialog()
{
CDialog::OnInitDialog();
CMainDlg2 dlg7;
MessageBox(L"dlg7.m_sPP_modal7 = \n" + dlg7.m_sPP_modal7);

Why have been chose value from constructor but not from
the method OnInitDialog() modal window?
}
Result: Paris
Why not New-York ?
How to receive New-York ?
AnswerRe: constructor and OnInitDialog() Pin
Stuart Dootson25-Apr-09 21:42
professionalStuart Dootson25-Apr-09 21:42 
AnswerRe: constructor and OnInitDialog() Pin
ThatsAlok26-Apr-09 21:18
ThatsAlok26-Apr-09 21:18 
QuestionFont text on command button Pin
durban225-Apr-09 21:16
durban225-Apr-09 21:16 
AnswerRe: Font text on command button Pin
Stuart Dootson25-Apr-09 21:38
professionalStuart Dootson25-Apr-09 21:38 
AnswerRe: Font text on command button Pin
Hamid_RT25-Apr-09 22:51
Hamid_RT25-Apr-09 22:51 
QuestionMFC exe Pin
linux_xjtu25-Apr-09 17:36
linux_xjtu25-Apr-09 17:36 
AnswerRe: MFC exe Pin
Stuart Dootson25-Apr-09 21:32
professionalStuart Dootson25-Apr-09 21:32 
Question3d object with transparent background Pin
high25-Apr-09 9:38
high25-Apr-09 9:38 

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.