I have what I think is a minor bug (VA Version 10.4.1649.0, Visual Studio 2008 SP1) with unrecognized symbols with MFC within the BEGIN_MESSAGE_MAP and END_MESSAGE_MAP macros. The short snippet below shows the issue. I get the OnOK symbol below underlined with the red squiggly for an unrecognized symbol. Using the full CTestDialog::OnOK name allows VisualAssist to recognize it. Looks like Visual Assist is not fully dealing with the expansion of the BEGIN_MESSAGE_MAP macro and so doesn't recognize the unadorned OnOK symbol. The compiler is perfectly happy with the unadorned OnOK as expected.
class CTestDialog : public CDialog
{
protected:
afx_msg void OnOK();
DECLARE_MESSAGE_MAP()
};
BEGIN_MESSAGE_MAP(CTestDialog, CDialog)
ON_BN_CLICKED(IDOK, OnOK)
ON_BN_CLICKED(IDOK, CTestDialog::OnOK)
END_MESSAGE_MAP()