Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / event Maximized?

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. event Maximized?
#2610
Posted by: 2003-09-08 17:11:58
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!
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sun 2022-12-4  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0