Click here to Skip to main content
16,005,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: newbie problem Pin
Anonymous20-Aug-03 15:54
Anonymous20-Aug-03 15:54 
GeneralRe: newbie problem Pin
Ted Ferenc20-Aug-03 21:42
Ted Ferenc20-Aug-03 21:42 
GeneralRe: newbie problem Pin
Dangleberry20-Aug-03 22:40
sussDangleberry20-Aug-03 22:40 
GeneralRe: newbie problem Pin
Ted Ferenc21-Aug-03 0:24
Ted Ferenc21-Aug-03 0:24 
GeneralRe: newbie problem Pin
Dangleberry21-Aug-03 0:39
sussDangleberry21-Aug-03 0:39 
GeneralRe: newbie problem Pin
Ted Ferenc21-Aug-03 1:17
Ted Ferenc21-Aug-03 1:17 
GeneralGUI qn! Pin
coda_x20-Aug-03 15:01
coda_x20-Aug-03 15:01 
GeneralRe: GUI qn! Pin
Terry O'Nolley20-Aug-03 16:16
Terry O'Nolley20-Aug-03 16:16 
// Assuming you have assigned member variables for the 2 comboboxes

// Create a handler for the "Add" button.
void CYourDialog::OnAddButton()
{
   CString cText;
   int     nIndex;

   nIndex = m_ComboboxA.GetCurSel();     // store the selected index
   if(nIndex == CB_ERR)                  // exit if there is no selection
      return;
      
   m_ComboboxA.GetLBText(nIndex, cText); // store the selected text in cText
   m_ComboboxB.AddString(cText);         // now insert that text into combobox B
}


// Create a handler for the "Remove" button.
void CYourDialog::OnRemoveButton()
{
   int     nIndex;

   nIndex = m_ComboboxB.GetCurSel();     // store the selected index
   if(nIndex == CB_ERR)                  // exit if there is no selection
      return;

   m_ComboboxB.DeleteString(nIndex);     // remove the selected string
}










GeneralRe: GUI qn! Pin
Iain Clarke, Warrior Programmer20-Aug-03 22:48
Iain Clarke, Warrior Programmer20-Aug-03 22:48 
GeneralAdd OnOK button in Cpropertysheet Pin
sdfdsfa20-Aug-03 14:50
sdfdsfa20-Aug-03 14:50 
QuestionHow can I tell... Pin
Brian Shifrin20-Aug-03 13:31
Brian Shifrin20-Aug-03 13:31 
AnswerRe: How can I tell... Pin
Garth J Lancaster20-Aug-03 17:42
professionalGarth J Lancaster20-Aug-03 17:42 
AnswerRe: How can I tell... (Reply #2) Pin
Garth J Lancaster20-Aug-03 17:47
professionalGarth J Lancaster20-Aug-03 17:47 
AnswerRe: How can I tell... Pin
Member 42425920-Aug-03 22:38
Member 42425920-Aug-03 22:38 
GeneralRe: How can I tell... Pin
Brian Shifrin21-Aug-03 7:45
Brian Shifrin21-Aug-03 7:45 
GeneralUnhandled exception in ...EXE: stack overflow Pin
Anonymous20-Aug-03 12:58
Anonymous20-Aug-03 12:58 
GeneralRe: Unhandled exception in ...EXE: stack overflow Pin
Abin20-Aug-03 13:59
Abin20-Aug-03 13:59 
GeneralRe: Unhandled exception in ...EXE: stack overflow Pin
PJ Arends20-Aug-03 16:26
professionalPJ Arends20-Aug-03 16:26 
GeneralCDataGrid Pin
sdfdsfa20-Aug-03 11:20
sdfdsfa20-Aug-03 11:20 
GeneralDigital Scope tool Pin
Kenny O'Dell20-Aug-03 10:49
Kenny O'Dell20-Aug-03 10:49 
GeneralRe: Digital Scope tool Pin
Iain Clarke, Warrior Programmer20-Aug-03 22:57
Iain Clarke, Warrior Programmer20-Aug-03 22:57 
QuestionMaking Combobox items visible? Pin
Jim D20-Aug-03 10:27
Jim D20-Aug-03 10:27 
AnswerRe: Making Combobox items visible? Pin
peterchen20-Aug-03 10:38
peterchen20-Aug-03 10:38 
GeneralRe: Making Combobox items visible? Pin
Jim D20-Aug-03 11:05
Jim D20-Aug-03 11:05 
GeneralRe: Making Combobox items visible? Pin
Joel Lucsy20-Aug-03 11:22
Joel Lucsy20-Aug-03 11:22 

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.