본문 바로가기

programming/MFC

PreTranslateMessage() 함수 사용 예제

위자드를 사용하면 금방 되는걸...요렇게 귀찮게 하는 방법도 있군요 -.-;;;

 
BOOL CMainFrame::PreTranslateMessage(MSG* pMsg)
{
    if (pMsg->message==WM_LBUTTONDBLCLK)  //더블클릭 이벤트가 발생시.
    {
        MessageBox("마우스를 더블 클릭했습니다.", "마우스 메시지");
    }
    return CFrameWnd::PreTranslateMessage(pMsg);
}


'programming > MFC' 카테고리의 다른 글

MFC List 클래스  (0) 2010.12.21
MFC의 배열클래스  (0) 2010.12.21
MFC 기본 윈도우 프로시져 소스  (0) 2010.09.06
객체간 통신 (2)  (0) 2010.03.04
객체간 통신  (0) 2010.03.04