Re: OnInitDialog problem by Dan
Dan
Tue Oct 05 18:44:18 CDT 2004
Thanks for the reply.
Any idea why the following occurs?
If I have a spin control autobuddied with an edit box with the "set buddy
integer" option on, my ONCHANGE event for the edit box gets called before
the OnInitDialog, yet if I turn off the "set buddy integer" option, the
OnInitDialog gets called first (as I expected).
Can someone explain this behavior? Is this usual?
Could it be because I initialize the member variable for the edit box in
this manner?
CGraphicsDlg::CGraphicsDlg(CWnd* pParent /*=NULL*/)
: CDialog(CGraphicsDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CGraphicsDlg)
m_nVertexEDIT=50;
m_nSliderEDIT = 1000;
//}}AFX_DATA_INIT
}
I was trying to handle the change in the edit box when a user is tapping one
of the arrows. Should I be using the UDN_DELTAPOS of the spin control?
EVC 3.0, MFC, PPC2002.
Thanks,
Dan