How to fix the error code example for MFC hints?

I get this error when compiling the following source from here :

Error 1 error C2440: 'static_cast': cannot convert from UINT (__thiscall CStaticLink :: *) (CPoint) 'to' LRESULT (__thiscall CWnd :: *) (CPoint) 'e: \ development \ tooltips \ cqa0311 \ statlink. cpp 28

The line of code for ON_WM_NCHITTEST is below

BEGIN_MESSAGE_MAP(CStaticLink, CStatic)
    ON_WM_NCHITTEST()
    ON_WM_CTLCOLOR_REFLECT()
    ON_WM_LBUTTONUP()
    ON_WM_SETCURSOR()
END_MESSAGE_MAP()

I am not sure what MFC voodoo I have to do to compile this. Am i lucky? Think it was built using another version of MFC? I am using VS2008.

(I want to have tips for my menu items as described on this web page.)

+3
source share
1 answer

:

. , MFC Visual Studio 2005. , OnNcHitTest, LRESULT UINT.


Visual ++

OnNcHitTest :

afx_msg LRESULT OnNcHitTest(
   CPoint point 
);
+5

Source: https://habr.com/ru/post/1757207/


All Articles