Ticket #1514: HyperLink-New.patch

File HyperLink-New.patch, 1.4 KB (added by eyebex, 13 years ago)

New patch with conditional code

  • HyperLink.cpp

    RCS file: /cvsroot/filezilla/FileZilla/source/misc/HyperLink.cpp,v
    retrieving revision 1.2
    diff -u -r1.2 HyperLink.cpp
     
    179179// lines of code and more reliable than turning on SS_NOTIFY in OnCtlColor
    180180// because Windows doesn't send WM_CTLCOLOR to bitmap static controls."
    181181// (Paul DiLascia)
     182#if defined(_MSC_VER) && (_MSC_VER>=1400)
     183LRESULT CHyperLink::OnNcHitTest(CPoint /*point*/)
     184#else
    182185UINT CHyperLink::OnNcHitTest(CPoint /*point*/)
     186#endif
    183187{
    184188        return HTCLIENT;   
    185189}
  • hyperlink.h

    RCS file: /cvsroot/filezilla/FileZilla/source/misc/hyperlink.h,v
    retrieving revision 1.1.1.1
    diff -u -r1.1.1.1 hyperlink.h
     
    122122    afx_msg void OnSetFocus(CWnd* pOldWnd);
    123123    afx_msg void OnKillFocus(CWnd* pNewWnd);
    124124    afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
     125#if defined(_MSC_VER) && (_MSC_VER>=1400)
     126    afx_msg LRESULT OnNcHitTest(CPoint point);
     127#else
    125128    afx_msg UINT OnNcHitTest(CPoint point);
     129#endif
    126130    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    127131    //}}AFX_MSG
    128132    DECLARE_MESSAGE_MAP()