combo box help

O

Oktom Ben

i have a problem with mfc, after choosing something in the combo box
the edit box should update and show the text corresponding to the
combo box choice, but what happens is when i choose something from the
combo box nothing happens im new to mfc and so i need a little help
please, heres the code:

void CQuakeLaunchDlg::OnCloseupModtorun()
{
UpdateData(TRUE); //im not sure about this

CString modname; //combo box variable
m_strmod = modname;

if (modname == "ORIGINAL QUAKE")
m_cline = "qwcl.exe";

if (modname == "ZQUAKE")
m_cline = "zq-client-gl.exe";

if (modname == "TEAM FORTRESS")
m_cline = "zq-client-gl.exe -game fortress";

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,811
Messages
2,569,693
Members
45,473
Latest member
Leanne70L5

Latest Threads

Top