intercept dblclick in a list control's header control?
Asaf Kashi -- kashi@sr.hp.com Monday, March 17, 1997 Environment: NT 4.0, VC 4.2b, VC 5.0 I wanted to stop my custom clistctrl from having its columns resized so I'm intercepting the tracking messages in my onnotify. The problem I have is that the user still get the sizing cursor when he passes a column edge, and he can still doubleclick there and it will try to resize to the widest item in the column. I have stopped all other resize functions, but can't seem to get this one. Any suggestions? Thanks, Asaf --- Asaf Kashi Software Development Engineer Hewlett Packard - Santa Rosa Systems Division kashi@ap.net http://www.ap.net/~kashi kashi@sr.hp.com hp: http://styx.sr.hp.com/kashi
petter.hesselberg -- petter.hesselberg@ac.com Wednesday, March 19, 1997 Have you tried the LVS_NOSORTHEADER style? _____________________________ To: mfc-l @ netcom.com ("'mfc-l (e-mail)'") @ internet cc: (bcc: Petter Hesselberg) From: kashi @ sr.hp.com (Asaf Kashi) @ internet Date: 17-03-97 06:24 Subject: intercept dblclick in a list control's header control? _____________________________ Environment: NT 4.0, VC 4.2b, VC 5.0 I wanted to stop my custom clistctrl from having its columns resized so I'm intercepting the tracking messages in my onnotify. The problem I have is that the user still get the sizing cursor when he passes a column edge, and he can still doubleclick there and it will try to resize to the widest item in the column. I have stopped all other resize functions, but can't seem to get this one. Any suggestions? Thanks, Asaf --- Asaf Kashi Software Development Engineer Hewlett Packard - Santa Rosa Systems Division kashi@ap.net http://www.ap.net/~kashi kashi@sr.hp.com hp: http://styx.sr.hp.com/kashi
Mario Contestabile -- Mario_Contestabile.UOS__MTL@UOSMTL2.universal.com Monday, March 24, 1997 >Have you tried the LVS_NOSORTHEADER style? > >I wanted to stop my custom clistctrl from having its columns resized That style simply prevents sorting on columns, not resizing. Preventing re-sizing of columns has been discussed to great lengths here. OnNotify(){ if(((NMHDR*)lParam->code == HDN_BEGINTRACK) return FALSE; } Mario mcontest@universal.com
Become an MFC-L member | Вернуться в корень Архива |