Click here to Skip to main content
15,920,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pls help me...How to load a dialog from dll and display it into child frame ? Pin
ohadp19-May-04 3:15
ohadp19-May-04 3:15 
GeneralRe: Pls help me...How to load a dialog from dll and display it into child frame ? Pin
freehawk19-May-04 14:56
freehawk19-May-04 14:56 
Generalminimize & maximize Dialog control Pin
-alok-18-May-04 19:04
suss-alok-18-May-04 19:04 
GeneralRe: minimize & maximize Dialog control Pin
-alok-18-May-04 19:47
suss-alok-18-May-04 19:47 
GeneralRe: minimize & maximize Dialog control Pin
Carlos Sánchez García18-May-04 20:58
Carlos Sánchez García18-May-04 20:58 
GeneralRe: minimize & maximize Dialog control Pin
-alok-18-May-04 21:50
suss-alok-18-May-04 21:50 
GeneralHTML & DLLs Pin
Hagiel18-May-04 18:41
Hagiel18-May-04 18:41 
GeneralCombo Boxes and Vars Pin
Eversman18-May-04 18:01
Eversman18-May-04 18:01 
Hey,

Got a question for you guys.


I have 7 combo boxes. All with time duration options in them, like 10 mins, 20 mins etc etc. Then I have an edit box that is to display the total of the values selected from the 7 combo boxes.

Here is the code I have so far.

<br />
void CDEPDlg::OnCloseupCombo15() <br />
{<br />
	// TODO: Add your control notification handler code here<br />
    int totalswim=0;<br />
	int cur1 = m_dur1.GetCurSel ();<br />
	CString text1;<br />
	m_dur1.GetLBText (cur1, text1);<br />
	if (text1 == "10 Minutes")	<br />
	{<br />
		totalswim=+10;<br />
		m_swimtime=totalswim;<br />
	}<br />
		<br />
}<br />


m_dur1 is the 1st combo box, m_dir2 is the second etc etc.
m_swimtime is an int var of the edit box.

Thanks for any help
GeneralRe: Combo Boxes and Vars Pin
Christian Graus18-May-04 18:28
protectorChristian Graus18-May-04 18:28 
GeneralRe: Combo Boxes and Vars Pin
Curi0us_George18-May-04 18:34
Curi0us_George18-May-04 18:34 
GeneralRe: Combo Boxes and Vars Pin
Eversman18-May-04 18:36
Eversman18-May-04 18:36 
GeneralRe: Combo Boxes and Vars Pin
Curi0us_George18-May-04 19:02
Curi0us_George18-May-04 19:02 
GeneralRun Internet in Background Pin
DanYELL18-May-04 15:31
DanYELL18-May-04 15:31 
GeneralRe: Run Internet in Background Pin
l a u r e n18-May-04 16:36
l a u r e n18-May-04 16:36 
GeneralRe: Run Internet in Background Pin
V.19-May-04 3:06
professionalV.19-May-04 3:06 
GeneralRe: Run Internet in Background Pin
Member 42102519-May-04 19:08
Member 42102519-May-04 19:08 
Questionhow to get variable type Pin
closecall18-May-04 15:12
closecall18-May-04 15:12 
Answertry dynamic casting Pin
kfaday18-May-04 15:16
kfaday18-May-04 15:16 
GeneralRe: try dynamic casting Pin
closecall18-May-04 15:47
closecall18-May-04 15:47 
GeneralRe: try dynamic casting Pin
kfaday18-May-04 16:08
kfaday18-May-04 16:08 
GeneralRe: try dynamic casting Pin
closecall18-May-04 16:34
closecall18-May-04 16:34 
GeneralRe: try dynamic casting Pin
Maxwell Chen18-May-04 17:26
Maxwell Chen18-May-04 17:26 
GeneralRe: try dynamic casting Pin
closecall18-May-04 17:53
closecall18-May-04 17:53 
GeneralRe: try dynamic casting Pin
Curi0us_George18-May-04 18:26
Curi0us_George18-May-04 18:26 
GeneralRe: try dynamic casting Pin
Maxwell Chen18-May-04 18:29
Maxwell Chen18-May-04 18:29 

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.