I have a custom control, derived from a wxPanel, which draw a bitmap in memory and then show it.
This control needs to be shown multiple times (in a column layout), and i want they have the exact size of the internal bitmap. But i can't find a method to set my control width and height. What am I missing?
(Using C++ and wxWidgets 3.0.2)
Normally you would use sizers to lay out the controls instead of doing it manually, but if you really need to do it like this, it's just a matter of calling SetSize()
.