X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cda337fbb030b9cc032a6ef1e2508b7c9af95876..92c0fc34c104c8d7c12d6a3b78ea232690fc23f4:/interface/wx/icon.h?ds=sidebyside diff --git a/interface/wx/icon.h b/interface/wx/icon.h index 083bce7534..eff8124923 100644 --- a/interface/wx/icon.h +++ b/interface/wx/icon.h @@ -2,7 +2,6 @@ // Name: icon.h // Purpose: interface of wxIcon // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -179,6 +178,22 @@ public: */ virtual ~wxIcon(); + /** + Attach a Windows icon handle. + + This wxMSW-specific method allows to assign a native Windows @c HICON + (which must be castes to @c WXHICON opaque handle type) to wxIcon. + Notice that this means that the @c HICON will be destroyed by wxIcon + when it is destroyed. + + @return @true if successful. + + @onlyfor{wxmsw} + + @since 2.9.5 + */ + bool CreateFromHICON(WXHICON icon); + /** Returns disabled (dimmed) version of the icon.