"멤버 함수 포인터"의 두 판 사이의 차이
jjuiddong
(새 문서: class { void SetRect(void (CWnd::*func)(const CRect &out), CWnd *ptr); void (CWnd::*m_memberFunc)(const CRect &out); // variable CWnd *m_funcThisPtr; // function this pointer ...) |
2015년 12월 13일 (일) 15:01 기준 최신판
class { void SetRect(void (CWnd::*func)(const CRect &out), CWnd *ptr); void (CWnd::*m_memberFunc)(const CRect &out); // variable CWnd *m_funcThisPtr; // function this pointer }; // member function call (m_funcThisPtr->*m_memberFunc)(m_rect); // function pointer casting m_frm1->m_camWindow->SetRect((void (CWnd::*)(const CRect &)) &CLEDDetectorDlg::SkewRect, this);