问题描述:

if(NULL == ActiveUserFrame)
{
 //*********创建UserManageFrame***************
 ActiveUserFrame = new wxMiniFrame(this, wxID_ANY, "当前用户信息", wxDefaultPosition, wxSize(800,550));
wxPanel *m_panel = new wxPanel(ActiveUserFrame);
}

wxButton *m_button = new wxButton(m_panel, -1);

如上代码控件m_button添加到m_panel上失败.

改为下面就行,原因不明:

 ActiveUserFrame = new wxMiniFrame(this, wxID_ANY, "当前用户信息", wxDefaultPosition, wxSize(800,550));
wxPanel *m_panel = new wxPanel(ActiveUserFrame);

wxButton *m_button = new wxButton(m_panel, -1);

 

相关文章:

  • 2021-11-16
  • 2021-09-08
  • 2022-01-15
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
猜你喜欢
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2021-12-01
  • 2021-08-23
  • 2021-10-10
相关资源
相似解决方案