I have customized the column width CMFCPropertyListCtrl
by overriding the same class.
Code:
class CMyPropertyGridCtrl : public CMFCPropertyGridCtrl
{
public:
void SetFirstColumnWidth(int width)
{
m_nLeftColumnWidth = width;
AdjustLayout();
}
};
And in OnSize()
method of the class where pChannelListCtrl
is declare as data member, I have called this method.
I want to fixed second column with size 50
.
Code:
int iWidth = pChannelListCtrl.GetLeftColumnWidth();
pChannelListCtrl.SetFirstColumnWidth(iWidth + (iWidth - 50));
Here, its display as expected.(Second column with size 50).
Problem:
I want to keep the second column size fixed. But, here its resizable.
Can you please guide me, how to restrict the column resize.
Thanks,
Abdula