User forums > General (but related to Code::Blocks)

wxSmith: Why a wxMenu object is an automatic variable ?

(1/1)

Quentin028:
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 :?:

Navigation

[0] Message Index

Go to full version