I use the LVCFMT_FIXED_WIDTH style to prevent user columns sizing.
m_ListCtrl.InsertColumn(0, _gszColumnLabel[0], _gnColumnFmt[0], LVCFMT_FIXED_WIDTH, _gnColumnWidth[0], -1);
What I have discovered only by hasard, this works in Unicode, but not in NON Unicode applications. The user can still sizing the columns.
I think this has to do with the default Windows.Common-Controls manifest skeleton in stdafx.h
#ifdef _UNICODE
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
#endif
Unfortuntely there is no default settings for NON Unicode application.
If I use the same manifest for NON Unicode appliction too, it works again.
But I am out sure, if this is the right solution? Can we use the same Windows.Common-Controls mainifest for Unicode andn NON Unicode applications?
(HDN_BEGINTRACK is not a solution in my eyes, because it will still show a "sizing Mouse cursor" in fixed mode.) – Tom Tom Apr 09 '19 at 14:01