Originally posted by: eric
if (rect.PtInRect(point))
Hi,Paul
Your mac style buttons are cool!But i've found some bugs:when you click CMacCheckBox or CMacRadioButton,the parent windows can not receive notify message.
Here is the fix of the CMacCheckBox:
...
void CMacCheckBox::OnLButtonUp(UINT nFlags, CPoint point)
{
...
{
m_bChecked = !m_bChecked;
//send notify message to parent window
//added by eric
CWnd* pParent=GetParent();
pParent->SendMessage( WM_COMMAND, MAKEWPARAM( GetDlgCtrlID(),BN_CLICKED ), (LPARAM)this->GetSafeHwnd () );
}
...
}
Fix CMacRadioButton the same way.
Originally posted by: Wolfgang Kramper
Hello Paul Meidinger,
your Macintosh like buttons are very nice. But you have forgotten
to put the resource files into your demo project.
MacButtons.rc(207) : fatal error RC1015: cannot open include file 'res\MacButtons.rc2'
Wolfgang Kramper