ListBox::MoveSel

Description

Syntax

int MoveSel( ListBox & lbSource, BOOL bCopyAllAlways, int nPos )

Parameters

lbSource
bCopyAllAlways
nPos

Return

Examples

EX1

#include <..\OriginLab\DialogEx.h>   // Dialog class

#define IDC_LIST1 1001
#define IDC_LIST2 1101
void ListBox_MoveSel(Dialog& MyDlg)
{
        ListBox  list1 = MyDlg.GetItem(IDC_LIST1);    
        ListBox  list2 = MyDlg.GetItem(IDC_LIST2);    
        int nNumItems = list1.MoveSel(list2, TRUE, 0);
}

Remark

See Also

header to Include

Control.h