Objective Grid: Grid on a tab control vanishes

Article ID: 491
Last updated: 25 Apr, 2018
Article ID: 491
Last updated: 25 Apr, 2018
Revision: 3
Views: 1679
Posted: 11 Jan, 2001
by Meltreger B.
Updated: 25 Apr, 2018
by Meltreger B.

Problem

 


When a grid window is placed on a tab control in a dialog, the grid vanishes eventually. How can this be corrected?

 

 


Cause

 


 

 


Action

 


You should call:
 

m_grid.SetWindowPos( NULL, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE);

where m_grid is the derived grid window.

If you have multiple tabs with Grid Windows, you will have to call this for the currently visible window.

This problem seems to happen because the tab window paints over the grid. This problem will not occur if you create the tab control with a Create() call instead of using the dialog editor.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 491
Last updated: 25 Apr, 2018
Revision: 3
Views: 1679
Posted: 11 Jan, 2001 by Meltreger B.
Updated: 25 Apr, 2018 by Meltreger B.

Others in this category