Add CreateFromHICON

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-02-11 17:50:31 +00:00
parent 5e6e0d3b0e
commit 1636164d5f

View File

@@ -59,6 +59,18 @@ def run():
#endif
""")
c.find('CreateFromHICON').ignore()
c.addCppMethod('bool', 'CreateFromHICON', '(long hicon)',
doc='MSW-only method to create a wx.Icon from a native icon handle.',
body="""\
#ifdef __WXMSW__
return self->CreateFromHICON((WXHICON)hicon);
#else
return false;
#endif
""")
# For compatibility:
module.addPyFunction('EmptyIcon', '()',
deprecated="Use :class:`Icon` instead",