Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do you put a "FLOAT" number into a dialog's editbox? Pin
Larry Mills Sr26-Jan-08 11:32
Larry Mills Sr26-Jan-08 11:32 
AnswerRe: How do you put a "FLOAT" number into a dialog's editbox? Pin
PJ Arends26-Jan-08 20:12
professionalPJ Arends26-Jan-08 20:12 
GeneralRe: How do you put a "FLOAT" number into a dialog's editbox? Pin
Larry Mills Sr30-Jan-08 8:18
Larry Mills Sr30-Jan-08 8:18 
AnswerRe: How do you put a "FLOAT" number into a dialog's editbox? Pin
Hamid_RT27-Jan-08 20:35
Hamid_RT27-Jan-08 20:35 
GeneralOpenUrl() with PostData Question Pin
Lucky the code machine26-Jan-08 9:13
Lucky the code machine26-Jan-08 9:13 
GeneralAdding items to a list box in a dialog. [modified] Pin
Ben Aldhouse26-Jan-08 4:30
Ben Aldhouse26-Jan-08 4:30 
QuestionRe: Adding items to a list box in a dialog. Pin
CPallini26-Jan-08 5:00
mveCPallini26-Jan-08 5:00 
GeneralRe: Adding items to a list box in a dialog. Pin
Ben Aldhouse26-Jan-08 5:55
Ben Aldhouse26-Jan-08 5:55 
These are just snippets, I have the following lines later on

<br />
	<br />
	if (dlg.DoModal () == IDOK)<br />
	{	<br />
		myPNode->SetNodeDescr(dlg.m_strNodeDesc);<br />
<br />
<br />
		if (dlg.m_strNodeDesc != oldDesc)<br />
			pDoc->SetModifiedFlag();<br />
	}<br />


I wouldn't mind adding the items to the list box in the dialog itself if I knew how to. I've tried adding them in the dialog class constructor but this doesn't work, either. I am beginning to think that I should overload the base classes 'OnInitDialog' function. I've just tried to creating this in the dialog...

<br />
<br />
bool CEditNodeDlg::OnInitDialog()<br />
{<br />
	m_listGTTimeUnits.AddString("days");<br />
<br />
}<br />
<br />
but I am getting 'error C2555: 'CEditNodeDlg::OnInitDialog' : overriding virtual function differs from 'CDialog::OnInitDialog' only by return type or calling convention' and I'm not sure what to do about this.<br />
<br />

GeneralRe: Adding items to a list box in a dialog. Pin
CPallini26-Jan-08 6:14
mveCPallini26-Jan-08 6:14 
GeneralRe: Adding items to a list box in a dialog. Pin
Ben Aldhouse26-Jan-08 6:15
Ben Aldhouse26-Jan-08 6:15 
GeneralRe: Adding items to a list box in a dialog. Pin
Ben Aldhouse26-Jan-08 6:14
Ben Aldhouse26-Jan-08 6:14 
GeneralHooking Pin
dellthinker26-Jan-08 0:33
dellthinker26-Jan-08 0:33 
GeneralRe: Hooking Pin
CPallini26-Jan-08 2:07
mveCPallini26-Jan-08 2:07 
GeneralRe: Hooking Pin
Nitheesh George27-Jan-08 19:14
Nitheesh George27-Jan-08 19:14 
GeneralRe: Hooking Pin
CPallini27-Jan-08 22:22
mveCPallini27-Jan-08 22:22 
GeneralRe: Hooking Pin
Nitheesh George28-Jan-08 16:21
Nitheesh George28-Jan-08 16:21 
Questionhow to assign an array value to another Pin
gentleguy25-Jan-08 22:55
gentleguy25-Jan-08 22:55 
AnswerRe: how to assign an array value to another [modified] Pin
CPallini25-Jan-08 23:30
mveCPallini25-Jan-08 23:30 
GeneralRe: how to assign an array value to another Pin
gentleguy26-Jan-08 0:18
gentleguy26-Jan-08 0:18 
GeneralRe: how to assign an array value to another Pin
CPallini26-Jan-08 1:59
mveCPallini26-Jan-08 1:59 
GeneralRe: how to assign an array value to another Pin
gentleguy26-Jan-08 2:17
gentleguy26-Jan-08 2:17 
QuestionRe: how to assign an array value to another Pin
CPallini26-Jan-08 2:26
mveCPallini26-Jan-08 2:26 
GeneralRe: how to assign an array value to another Pin
gentleguy26-Jan-08 2:29
gentleguy26-Jan-08 2:29 
GeneralRe: how to assign an array value to another Pin
CPallini26-Jan-08 2:58
mveCPallini26-Jan-08 2:58 
GeneralRe: how to assign an array value to another Pin
gentleguy27-Jan-08 1:32
gentleguy27-Jan-08 1:32 

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.