Let's say I have a list component class called ListCtrl that derives from CWnd.
And let's say I also have a dialog class called DialogA that derives from CDialog.
DialogA uses ListCtrl to map it to a list component. For example,
void DialogA::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_LIST_CONTROL, listCtrl);
}
Where
ListCtrl listCtrl;
So if ListCtrl were to call the SendMessage(), can DialogA handle it?
If not, how can I have DialogA handle something that ListCtrl does.
Ultimately, I want DialogA to use a "copy" function of it's own when the ListCtrl right-click menu option for "Copy" is clicked, and prevent the copy function of ListCtrl from executing.