jd9288
asked on
How to catch status bar click event
I need to minimize the program on status bar click event in MFC.
How do I do that?
How do I do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try this:
BOOL CMainFrame::PreTranslateMe ssage(MSG* pMsg)
{
if (pMsg->message == WM_LBUTTONDOWN && pMsg->hwnd == m_wndStatusBar.m_hWnd)
ActivateFrame(SW_MINIMIZE) ;
return CMDIFrameWnd::PreTranslate Message(pM sg);
}
Good Luck,
Steve
BOOL CMainFrame::PreTranslateMe
{
if (pMsg->message == WM_LBUTTONDOWN && pMsg->hwnd == m_wndStatusBar.m_hWnd)
ActivateFrame(SW_MINIMIZE)
return CMDIFrameWnd::PreTranslate
}
Good Luck,
Steve
ASKER
the status bar. Any ideas?