Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/mfc/codesnippet/CPP/clistbox-class_23.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Initialize the storage of the list box to be 256 strings with
// about 10 characters per string, performance improvement.
int n = m_myListBox.InitStorage(256, 10);
int n = m_myListBox.InitStorage(256, 16*sizeof(TCHAR));
ASSERT(n != LB_ERRSPACE);

// Add 256 items to the list box.
Expand All @@ -9,4 +9,4 @@
{
str.Format(_T("item string %d"), i);
m_myListBox.AddString( str );
}
}