List Control Header resizing problem
-
hello friends how can i deny the list control column resizing when we double click the header control??? mind is everything.
-
hello friends how can i deny the list control column resizing when we double click the header control??? mind is everything.
Hi there, Are these usefull? http://www.codeguru.com/Cpp/controls/listview/columns/article.php/c1065/[^] http://www.codeguru.com/Cpp/controls/listview/columns/article.php/c1061/[^] Cohen
-
Hi there, Are these usefull? http://www.codeguru.com/Cpp/controls/listview/columns/article.php/c1065/[^] http://www.codeguru.com/Cpp/controls/listview/columns/article.php/c1061/[^] Cohen
Cohen , THANKS FOR YOUR RESPONSE IN THAT ARTICLE THEY SAYS The header control in the ListView control sends notification to the parent window (e.i. the ListView) before it begins resizing a column. We can override the OnNotify() function in the CListCtrl derived class to handle this notification. The code below prevents resizing of all columns. Note that the resize cursor still shows up. BOOL CMyListCtrl::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) { switch (((NMHDR*)lParam)->code) { case HDN_BEGINTRACKW: case HDN_BEGINTRACKA: *pResult = TRUE; // disable tracking return TRUE; // Processed message } return CListCtrl::OnNotify(wParam, lParam, pResult); } BUT DIDNT WORK WITH MY LIST CONTROL.... ANY IDEA ?????????? mind is everything.