Author Topic: wxSmith: Why a wxMenu object is an automatic variable ?  (Read 2940 times)

Offline Quentin028

  • Single posting newcomer
  • *
  • Posts: 7
wxSmith: Why a wxMenu object is an automatic variable ?
« on: October 03, 2010, 03:17:00 pm »
Hi there!

I'd like to ask why a wxMenu object - created by means of wxSmith - is an automatic variable ? I thought that all controls should be created on the heap...

However, if I create wxMenuBar first and add some wxMenus - they'll be allocated on the heap.

Do you know why is this allocating differentiated :?: