2007년 04월 09일
[MFC] 툴팁달기..
일단 헤더에
CToolTipCtrl 로 변수 하나 선언한다음
윈도우가 만들어질때 Init 이나 OnInitDialog 일때
m_Tooltip.Create(this);
m_Tooltip.Activate(TRUE);
m_Tooltip.AddTool(GetDlgItem(IDC_LIST_ONLINE), "팁내용");
m_Tooltip.SetMaxTipWidth(500);
넣어준다음
PreTranslateMessage(MSG* pMsg) 함수안에
if(pMsg->message == WM_MOUSEMOVE && pMsg->hwnd == m_ctrList.m_hWnd)
{
m_tooltip.RelayEvent(pMsg);
}
이 부분만 넣어주면 된다.
# by | 2007/04/09 21:39 | :: Study Direct3D | 덧글(1)
※ 로그인 사용자만 덧글을 남길 수 있습니다.




