How do u pass parameters to OnKillfocus...
-
Hiya, I need to pass parameters to my OnEnKillfocus funtion. This is what I have tried: // class declaration afx_msg void OnEnKillfocusRetrogroup2(long); // function void CGroupBranchRetro::OnEnKillfocusRetrogroup2(long overrider1) { // code } These are fine but it fails on my message map i.e BEGIN_MESSAGE_MAP(CGroupBranchRetro, CDialog) ON_EN_KILLFOCUS(IDC_RETROGROUP1, OnEnKillfocusRetrogroup1) ON_EN_KILLFOCUS(IDC_RETROGROUP2, OnEnKillfocusRetrogroup2) END_MESSAGE_MAP() The error I get is: error C2440: 'static_cast' : cannot convert from 'void (__thiscall CGroupBranchRetro::* )(long)' to 'AFX_PMSG' Does anyone know how to pass parameters on OnKillfocus function properly?? Thanks, grahamoj.
-
Hiya, I need to pass parameters to my OnEnKillfocus funtion. This is what I have tried: // class declaration afx_msg void OnEnKillfocusRetrogroup2(long); // function void CGroupBranchRetro::OnEnKillfocusRetrogroup2(long overrider1) { // code } These are fine but it fails on my message map i.e BEGIN_MESSAGE_MAP(CGroupBranchRetro, CDialog) ON_EN_KILLFOCUS(IDC_RETROGROUP1, OnEnKillfocusRetrogroup1) ON_EN_KILLFOCUS(IDC_RETROGROUP2, OnEnKillfocusRetrogroup2) END_MESSAGE_MAP() The error I get is: error C2440: 'static_cast' : cannot convert from 'void (__thiscall CGroupBranchRetro::* )(long)' to 'AFX_PMSG' Does anyone know how to pass parameters on OnKillfocus function properly?? Thanks, grahamoj.
Where the value of that parameter should come from?
-
Hiya, I need to pass parameters to my OnEnKillfocus funtion. This is what I have tried: // class declaration afx_msg void OnEnKillfocusRetrogroup2(long); // function void CGroupBranchRetro::OnEnKillfocusRetrogroup2(long overrider1) { // code } These are fine but it fails on my message map i.e BEGIN_MESSAGE_MAP(CGroupBranchRetro, CDialog) ON_EN_KILLFOCUS(IDC_RETROGROUP1, OnEnKillfocusRetrogroup1) ON_EN_KILLFOCUS(IDC_RETROGROUP2, OnEnKillfocusRetrogroup2) END_MESSAGE_MAP() The error I get is: error C2440: 'static_cast' : cannot convert from 'void (__thiscall CGroupBranchRetro::* )(long)' to 'AFX_PMSG' Does anyone know how to pass parameters on OnKillfocus function properly?? Thanks, grahamoj.