X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..2680ddc6787e05b9eb058091e252e28f925d533c:/src/msw/cursor.cpp?ds=sidebyside diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index fbcf62dd75..dec1344042 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -349,6 +349,15 @@ void wxCursor::InitFromStock(wxStockCursor idCursor) if ( !hcursor ) { + if ( !stdCursor.isStd ) + { + // it may be not obvious to the programmer why did loading fail, + // try to help by pointing to the by far the most probable reason + wxFAIL_MSG(wxT("Loading a cursor defined by wxWidgets failed, ") + wxT("did you include include/wx/msw/wx.rc file from ") + wxT("your resource file?")); + } + wxLogLastError(wxT("LoadCursor")); } else