get AIPanelSuite in SetSizeChangedNotifyProc callback
My Plugin does not use global suite references. Instead it acquires and releases suites as required. The problem is with the panel. I want to get the size of the panel when the size is changed (so I can change size of embedded wxpanel accordingly). To get the size, I need to acquire panel suite. However, the SetSizeChangedNotifyProc callback method only provides panelref and no message or anything else. How can I get the suite in this scenario?
Also this piece of code to embed wxpanel inside aipanel, handle resize etc is going into a dll so that it can be used by multiple plugins. So I do not want to use global suite ptr.