mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Added Ctl.as_Control and Menu.as_Menu methods, which take a resource as
argument and return a Control or Menu object.
This commit is contained in:
parent
b0687899d7
commit
e058189040
6 changed files with 52 additions and 0 deletions
|
@ -44,6 +44,8 @@ ControlFontStyleRec_ptr = ControlFontStyleRec
|
|||
includestuff = includestuff + """
|
||||
#include <%s>""" % MACHEADERFILE + """
|
||||
|
||||
#define as_Control(h) ((ControlHandle)h)
|
||||
|
||||
#define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */
|
||||
|
||||
extern PyObject *CtlObj_WhichControl(ControlHandle); /* Forward */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue