Click here to Skip to main content
15,898,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: mfc activeX control Pin
gucy8-Jul-03 15:21
gucy8-Jul-03 15:21 
GeneralRe: mfc activeX control Pin
gucy8-Jul-03 16:28
gucy8-Jul-03 16:28 
GeneralCEditView MFC app Pin
Jay Hova8-Jul-03 1:38
Jay Hova8-Jul-03 1:38 
GeneralRe: CEditView MFC app Pin
Iain Clarke, Warrior Programmer8-Jul-03 2:03
Iain Clarke, Warrior Programmer8-Jul-03 2:03 
GeneralRe: CEditView MFC app Pin
Jay Hova8-Jul-03 2:45
Jay Hova8-Jul-03 2:45 
GeneralComboBox inside of CDialog Pin
pdunn8-Jul-03 1:37
pdunn8-Jul-03 1:37 
GeneralRe: ComboBox inside of CDialog Pin
Iain Clarke, Warrior Programmer8-Jul-03 1:59
Iain Clarke, Warrior Programmer8-Jul-03 1:59 
GeneralRe: ComboBox inside of CDialog Pin
pdunn8-Jul-03 2:40
pdunn8-Jul-03 2:40 
The box initializes, but when the user type in something, the program doesn't recognize it and also the initial information is deleted and the combo box is empty again.

This is the code to get the information out.


pActWin = GetActWin();

//Get the MainFrame obj and get the address out of the combo box

CMainFrame* pFrame = ((CMainFrame*) m_pMainWnd);
CDialogBar* pDBar = &(pFrame->m_wndAddressBar);
CComboBox* pCombo = (CComboBox*)

pDBar->GetDlgItem(IDC_Address);
CString strAddress = _T("");

int nIndex = 0;
nIndex = pCombo->GetCurSel();
if(nIndex == CB_ERR)
return;
pCombo->GetLBText(nIndex,strAddress);

How do I let the user enter in information and I do I get that information out?

Thanks for the help
QuestionHow to do a ListBox by self? Pin
David12158-Jul-03 1:04
David12158-Jul-03 1:04 
AnswerRe: How to do a ListBox by self? Pin
Iain Clarke, Warrior Programmer8-Jul-03 1:47
Iain Clarke, Warrior Programmer8-Jul-03 1:47 
GeneralRe: How to do a ListBox by self? Pin
David12158-Jul-03 15:34
David12158-Jul-03 15:34 
GeneralADO connection pooling Pin
Imtiaz Murtaza8-Jul-03 0:09
Imtiaz Murtaza8-Jul-03 0:09 
Questioncout vs. printf? Pin
DaveE9th7-Jul-03 23:56
DaveE9th7-Jul-03 23:56 
AnswerRe: cout vs. printf? Pin
Rage8-Jul-03 0:42
professionalRage8-Jul-03 0:42 
GeneralRe: cout vs. printf? Pin
Rickard Andersson208-Jul-03 2:15
Rickard Andersson208-Jul-03 2:15 
GeneralRe: cout vs. printf? Pin
Rage8-Jul-03 3:23
professionalRage8-Jul-03 3:23 
GeneralRe: cout vs. printf? Pin
Ryan Binns8-Jul-03 3:50
Ryan Binns8-Jul-03 3:50 
GeneralRe: cout vs. printf? Pin
keegan8-Jul-03 3:23
keegan8-Jul-03 3:23 
AnswerRe: cout vs. printf? Pin
AlexO8-Jul-03 3:59
AlexO8-Jul-03 3:59 
GeneralRe: cout vs. printf? Pin
DaveE9th8-Jul-03 8:16
DaveE9th8-Jul-03 8:16 
Questionbinary sort function? Pin
DaveE9th7-Jul-03 23:08
DaveE9th7-Jul-03 23:08 
AnswerRe: binary sort function? Pin
Ryan Binns7-Jul-03 23:28
Ryan Binns7-Jul-03 23:28 
GeneralRe: binary sort function? Pin
DaveE9th8-Jul-03 0:17
DaveE9th8-Jul-03 0:17 
GeneralRe: binary sort function? Pin
Ryan Binns8-Jul-03 0:23
Ryan Binns8-Jul-03 0:23 
GeneralRe: binary sort function? Pin
Rage8-Jul-03 0:23
professionalRage8-Jul-03 0:23 

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.