tags:

views:

230

answers:

1

I have a CButton object called mouseCtrl, and in the DoDataExchange function, I have the following:

DDX_Control(pDX, IDC_MCCHECK, mouseMode);

Somewhere else in my program, I would like to be able to call a function/method of mouseMode so that I can retrieve the IDC_MCCCHECK id macro properly. Is there a function in MFC that can allow me to do that? Thanks in advance.

+2  A: 

mouseMode.GetDlgCtrlID()

TheUndeadFish