CopyAll
int CopyAll( ListBox & lbSource, BOOL bCopyAllAlways, int nPos )
EX1
#include <..\OriginLab\DialogEx.h> // Dialog class #define IDC_LIST1 1001 #define IDC_LIST2 1101 void ListBox_CopyAll(Dialog& MyDlg) { ListBox list1 = MyDlg.GetItem(IDC_LIST1); ListBox list2 = MyDlg.GetItem(IDC_LIST2); int nNumItems = list1.CopyAll(list2, TRUE, 0); }
Control.h