Click here to Skip to main content
16,004,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MRU in a dialog box app Pin
Filomela20-Apr-04 22:17
Filomela20-Apr-04 22:17 
GeneralRe: MRU in a dialog box app Pin
Robert A. T. Káldy21-Apr-04 4:59
Robert A. T. Káldy21-Apr-04 4:59 
GeneralRe: MRU in a dialog box app Pin
Filomela22-Apr-04 22:43
Filomela22-Apr-04 22:43 
Generalsppeding up image replace in list ctrl Pin
Anonymous19-Apr-04 21:18
Anonymous19-Apr-04 21:18 
QuestionHow to add objects in the wait array during run time while using WaitForMultipleObjects Pin
evolveraj19-Apr-04 21:17
evolveraj19-Apr-04 21:17 
AnswerRe: How to add objects in the wait array during run time while using WaitForMultipleObjects Pin
jmkhael19-Apr-04 23:46
jmkhael19-Apr-04 23:46 
AnswerRe: How to add objects in the wait array during run time while using WaitForMultipleObjects Pin
Iain Clarke, Warrior Programmer20-Apr-04 2:35
Iain Clarke, Warrior Programmer20-Apr-04 2:35 
GeneralListbox ResetContent not working Pin
19-Apr-04 20:13
suss19-Apr-04 20:13 
I'm haveing a lot of weird problems with a new app. I tried to create CComboBox controls and was able to add strings which I could cycle through with the arrow keys. However clicking on the arrow on the right of the box would not drop down the list so I switched to a list box. It works but for some strange reason, calling the ResetContent() method doesn't clear the items in the list box. Oddly, calling the GetCount() method shows the correct value before (n=3 or something.) and after (n = 0). The result is a list box with duplicate entries in the list box.

The code snippet is below.

Something I'm doing wrong?

{
// populate the databases ListBox
vector <cstring *=""> v;
vector <cstring *="">::iterator i;

n = _mlbDBListBox.GetCount();
_mlbDBListBox.ResetContent();
n = _mlbDBListBox.GetCount();
v = _myDBBrowser->GetDBs();
for (i = v.begin(); i != v.end(); i++)
_mlbDBListBox.AddString((*i)->GetString());
_mlbDBListBox.SetCurSel(0);
}

Using Visual Studio .Net 2002 (VC++ 7.0)
GeneralRe: Listbox ResetContent not working Pin
David Crow20-Apr-04 2:43
David Crow20-Apr-04 2:43 
GeneralRe: Listbox ResetContent not working Pin
mjackson1120-Apr-04 3:25
mjackson1120-Apr-04 3:25 
GeneralRe: Listbox ResetContent not working Pin
David Crow20-Apr-04 3:43
David Crow20-Apr-04 3:43 
GeneralRe: Listbox ResetContent not working Pin
mjackson1120-Apr-04 3:56
mjackson1120-Apr-04 3:56 
GeneralRe: Listbox ResetContent not working Pin
David Crow20-Apr-04 4:25
David Crow20-Apr-04 4:25 
GeneralRe: Listbox ResetContent not working Pin
mjackson1120-Apr-04 6:14
mjackson1120-Apr-04 6:14 
QuestionHow to get View object from App Pin
Bui Huy Kien19-Apr-04 18:48
Bui Huy Kien19-Apr-04 18:48 
AnswerRe: How to get View object from App Pin
Robert A. T. Káldy19-Apr-04 21:36
Robert A. T. Káldy19-Apr-04 21:36 
GeneralRe: How to get View object from App Pin
Bui Huy Kien19-Apr-04 21:52
Bui Huy Kien19-Apr-04 21:52 
QuestionHow to get 'IRowsetFind' interface in oledb sdk ! Pin
Member 74634419-Apr-04 18:45
Member 74634419-Apr-04 18:45 
GeneralGDI question Pin
Anonymous19-Apr-04 17:54
Anonymous19-Apr-04 17:54 
GeneralRe: GDI question Pin
Christian Graus19-Apr-04 18:03
protectorChristian Graus19-Apr-04 18:03 
GeneralMouse over Pin
Timothy Grabrian19-Apr-04 17:52
professionalTimothy Grabrian19-Apr-04 17:52 
GeneralRe: Mouse over Pin
Balkrishna Talele19-Apr-04 18:42
Balkrishna Talele19-Apr-04 18:42 
GeneralRe: Mouse over Pin
Timothy Grabrian19-Apr-04 18:45
professionalTimothy Grabrian19-Apr-04 18:45 
GeneralRe: Mouse over Pin
Balkrishna Talele19-Apr-04 19:10
Balkrishna Talele19-Apr-04 19:10 
GeneralRe: Mouse over Pin
PJ Arends19-Apr-04 19:12
professionalPJ Arends19-Apr-04 19:12 

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.