멤버 함수 포인터

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
};

// member function call
(m_funcThisPtr->*m_memberFunc)(m_rect);

// function pointer casting
m_frm1->m_camWindow->SetRect((void (CWnd::*)(const CRect &)) &CLEDDetectorDlg::SkewRect, this);
개인 도구
이름공간

변수
행위
둘러보기
도구모음