Hello I am drawing some diagrams on a class derived from wxScrolledWindow and I have implemented a resizing function when the user resizes the window (EVT_SIZE). //with this code I can get the new size of the wxScrolledWindow wxCoord w2, h2; this->GetSize(&w2, &h2);
I also call the function on EVT_MAXIMIZE but it does not work. I guess it's because the function is called just when the user clicks on the maximize button, and thus the size has not been updated yet. So, I need to call the function after the maximize event. Or I could get the size of the screen too, it could be a solution but I think it might be easier with the other solution. Thanks for any help!