. Home Feedback Contents Search

CButton 

Up Next

Notifications

Button sending click to parent

Add to your CMyButton class OnChildNotify virtual function as follows:

BOOL CMyButton::OnChildNotify( UINT message, WPARAM wParam, LPARAM lParam,
LRESULT* pLResult )
    {
    BOOL bRes = CButton::OnChildNotify( message, wParam, lParam, pLResult );

    if (<Your wish that your dialog processes click notification >)
        return FALSE;

    return bRes;
    }

Up Next