On 4/03/2009 12:01 PM, Greg Ewing wrote:
If you do happen to add this, another thing you might
want to investigate is why PyCCmdUI isn't automatically
doing this when you read the m_pMenu property, as seems
to happen in most other places if you call a method
that returns a wrapped MFC object.
Mark Hammond wrote:
Hrm - m_pMenu (and m_pSubMenu) is *supposed* to return a PyCMenu object
- what are you seeing?
They're returning a PyCMenu, but not the object that
I have attached to the PyCMenu.
This seems to happen automatically in some other
places, e.g. ui.GetFocus(). If m_pMenu
Mark Hammond wrote:
Apparently not from Python. It would be easy to add,
If you do happen to add this, another thing you might
want to investigate is why PyCCmdUI isn't automatically
doing this when you read the m_pMenu property, as seems
to happen in most other places if you call a method