멤버 함수 포인터

jjuiddong
Jjuiddong (토론 | 기여) 사용자의 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);
개인 도구
이름공간

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