"멤버 함수 포인터"의 두 판 사이의 차이

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);
개인 도구
이름공간

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