git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51077
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
for ( size_t n = 0; n < m_count; n++ )
{
{
for ( size_t n = 0; n < m_count; n++ )
{
- ::DestroyWindow(m_hwnds[n]);
+ if ( m_hwnds[n] )
+ ::DestroyWindow(m_hwnds[n]);
int sw = show ? SW_SHOW : SW_HIDE;
for ( size_t n = 0; n < m_count; n++ )
{
int sw = show ? SW_SHOW : SW_HIDE;
for ( size_t n = 0; n < m_count; n++ )
{
- ::ShowWindow(m_hwnds[n], sw);
+ if ( m_hwnds[n] )
+ ::ShowWindow(m_hwnds[n], sw);
{
for ( size_t n = 0; n < m_count; n++ )
{
{
for ( size_t n = 0; n < m_count; n++ )
{
- ::EnableWindow(m_hwnds[n], enable);
+ if ( m_hwnds[n] )
+ ::EnableWindow(m_hwnds[n], enable);
for ( size_t n = 0; n < m_count; n++ )
{
for ( size_t n = 0; n < m_count; n++ )
{
- ::SendMessage(m_hwnds[n], WM_SETFONT, (WPARAM)hfont, 0);
+ if ( m_hwnds[n] )
+ {
+ ::SendMessage(m_hwnds[n], WM_SETFONT, (WPARAM)hfont, 0);
- // otherwise the window might not be redrawn correctly
- ::InvalidateRect(m_hwnds[n], NULL, FALSE /* don't erase bg */);
+ // otherwise the window might not be redrawn correctly
+ ::InvalidateRect(m_hwnds[n], NULL, FALSE /* don't erase bg */);
+ }
wxRect r;
for ( size_t n = 0; n < m_count; n++ )
{
wxRect r;
for ( size_t n = 0; n < m_count; n++ )
{
- RECT rc;
- ::GetWindowRect(m_hwnds[n], &rc);
+ if ( m_hwnds[n] )
+ {
+ RECT rc;
- r.Union(wxRectFromRECT(rc));
+ ::GetWindowRect(m_hwnds[n], &rc);
+
+ r.Union(wxRectFromRECT(rc));
+ }