Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialogs without MFC Pin
James Spibey2-Aug-02 12:27
James Spibey2-Aug-02 12:27 
QuestionHow to trap Command Window that appears on execution of a normal VC++ programme or Application... Pin
Pankaj Singh2-Aug-02 4:22
Pankaj Singh2-Aug-02 4:22 
AnswerRe: How to trap Command Window that appears on execution of a normal VC++ programme or Application... Pin
Nish Nishant2-Aug-02 5:23
sitebuilderNish Nishant2-Aug-02 5:23 
GeneralXML Tree Control MFC Pin
MyEden2-Aug-02 4:03
MyEden2-Aug-02 4:03 
GeneralVisual C++ and Exponential Numbers Pin
Anonymous2-Aug-02 3:55
Anonymous2-Aug-02 3:55 
GeneralRe: Visual C++ and Exponential Numbers Pin
Tomasz Sowinski2-Aug-02 4:03
Tomasz Sowinski2-Aug-02 4:03 
GeneralRe: Visual C++ and Exponential Numbers Pin
Anonymous2-Aug-02 4:36
Anonymous2-Aug-02 4:36 
GeneralRe: Visual C++ and Exponential Numbers Pin
Tomasz Sowinski2-Aug-02 5:03
Tomasz Sowinski2-Aug-02 5:03 
When you're using ClassWizard for dialog data exchange (ddx), it generates the sequence of calls to DDX_xxx in DoDataExchange. One of these calls corresponds to your double value. If this number is shown with exponent, your only choice is to fix it by setting edit control text 'manually', with a call to SetDlgItemText. This would look more or less like this:

void CYourDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CNormalizeDlg)
	DDX_Text(pDX, IDC_EDIT1, m_value);
	//}}AFX_DATA_MAP

	if (!pDX->m_bSaveAndValidate)
	{
		CString strx;
		strx.Format("%f", m_value);
		SetDlgItemText(IDC_EDIT1, strx);
	}
}


You can format your value any way you want before call to SetDlgItemText.

Tomasz Sowinski -- http://www.shooltz.com

What is "scratch" and why can everything be made from it?

GeneralRe: Visual C++ and Exponential Numbers Pin
Anonymous2-Aug-02 5:48
Anonymous2-Aug-02 5:48 
GeneralStrange Compile errors Pin
ns2-Aug-02 3:37
ns2-Aug-02 3:37 
GeneralRe: Strange Compile errors Pin
Roger Allen2-Aug-02 6:21
Roger Allen2-Aug-02 6:21 
GeneralDare I proceed? Pin
ns2-Aug-02 7:49
ns2-Aug-02 7:49 
GeneralmySQL and Visual C++ Pin
monrobot132-Aug-02 3:25
monrobot132-Aug-02 3:25 
Generalaccessing database Pin
_ra2-Aug-02 3:12
_ra2-Aug-02 3:12 
GeneralRe: accessing database Pin
[James Pullicino]2-Aug-02 5:10
[James Pullicino]2-Aug-02 5:10 
GeneralRe: Soket or ASP Pin
Masaaki Onishi2-Aug-02 6:38
Masaaki Onishi2-Aug-02 6:38 
GeneralRe: Soket or ASP Pin
Anonymous3-Aug-02 5:08
Anonymous3-Aug-02 5:08 
GeneralLatitude & Longitude Pin
Daniel Ferguson2-Aug-02 2:48
Daniel Ferguson2-Aug-02 2:48 
GeneralRe: Latitude & Longitude Pin
tjkrz2-Aug-02 3:02
tjkrz2-Aug-02 3:02 
GeneralRe: Latitude & Longitude Pin
Daniel Ferguson2-Aug-02 3:38
Daniel Ferguson2-Aug-02 3:38 
GeneralReleasing allocated DC memories !!! Pin
Hadi Rezaee2-Aug-02 1:58
Hadi Rezaee2-Aug-02 1:58 
GeneralRe: Releasing allocated DC memories !!! Pin
Jason Henderson2-Aug-02 3:48
Jason Henderson2-Aug-02 3:48 
GeneralRe: Releasing allocated DC memories !!! Pin
Tomasz Sowinski2-Aug-02 4:01
Tomasz Sowinski2-Aug-02 4:01 
GeneralRe: Releasing allocated DC memories !!! Pin
Hadi Rezaee3-Aug-02 6:27
Hadi Rezaee3-Aug-02 6:27 
GeneralOOP-problem Pin
Mr. T2-Aug-02 1:28
Mr. T2-Aug-02 1:28 

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.