mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
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:
12
etg/icon.py
12
etg/icon.py
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user