Objective Grid: Optimally resizing columns when clicked

Article ID: 573
Last updated: 11 Apr, 2018
Article ID: 573
Last updated: 11 Apr, 2018
Revision: 3
Views: 1944
Posted: 23 Jan, 2001
by Meltreger B.
Updated: 11 Apr, 2018
by Meltreger B.

Problem


I want the grid to optimally resize columns when the user double clicks on them (just like with the Windows Explorer:-Details view).


Cause



Action


The function to override for this is BOOL CGXGridCore::DoLButtonDblClk(UINT flags, CPoint point). You can call ResizeColWidthsToFit() from this override.

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

Others in this category