CompuServe Messages

#CEdit

    10-Jul-94 20:42:50
Sb: #30437-#CEdit
Fm: Charles Steinhardt 70353,2604
To: Jay Perkins 74664,3046
Hi Jay, >> BOOL CWptEdit::OnInitDialog() { CDialog::OnInitDialog(); CenterDialog(this); m_Jay_Edit.Init("N 00 00.000'","N ## ##.###'"); return TRUE; // return TRUE unless you set the focus to a control } << I really want to help so pardon my asking 30 questions, but I'm unsure of what you are attempting to do. From my understanding, you said you had 1) an edit control derived from CEdit called CFEdit (I'm o.k. there) 2) that this edit control is used in your dialog 3) that you are crashing on a "+=" operator on a string (suggesting a problem with instance or CString memory) O.K. — but here is what I see. 1) You do have it defined as an embedded type in your class 2) you initialize this class – but how is it connected to your actual dialogs Edit control (the one created in AppStudio)? Where is your SubclassWindow or SubclassDlgItem API call for the Edit control in the dialog (that's how to hook up your derived control class to the actual edit control)?? Speak to you soon, Charles Steinhardt[MVP], OMG Inc. Written 10-Jul-1994 @ 21:39:34 Windows NavCIS PRO 1.21 !^NavFont01F0014MGHHGNMGPHGB2MGB4HJu46BD !); DDX_Control(pDX, IDC_START_WPT, m_Start_Wpt); DDX_Control(pDX, IDC_ENABLE_WPT, m_Enable_Wpt); DDX_Control(pDX, IDC_POSITION_WPT, m_Position_Wpt); DDX_Control(pDX, IDC_WPT_NAME, m_Name); DDX_Control(pDX, IDC_EW_ANN, m_EW_Ann); DDX_Control(pDX, IDC_NS_ANN, m_NS_Ann); DDX_VBControl(pDX, IDC_LONGITUDE, m_Longitude); DDX_VBControl(pDX, IDC_LATITUDE, m_Latitude); //}}AFX_DATA_MAP } //***************************************************************************** ************************* //***************************************************************************** ************************* //***************************************************************************** ************************* BEGIN_MESSAGE_MAP(CWptEdit, CDialog) //{{AFX_MSG_MAP(CWptEdit) ON_BN_CLICKED(IDC_SOUTH_BUT, OnClickedSouthBut) ON_BN_CLICKED(IDC_WEST_BUT, OnClickedWestBut) ON_BN_CLICKED(IDC_EAST_BUT, OnClickedEastBut) ON_BN_CLICKED(IDC_NORTH_BUT, OnClickedNorthBut) ON_WM_DESTROY() //}}AFX_MSG_MAP END_MESSAGE_MAP() Thanks Again……… Jay Perkins ///////////////////////////////////////////////////////////////////////////// // CWptEdit message handlers