STOP CListCtrl selection rectangle
-
Is there any easy way to prevent the selection rectangle from following my mouse when clicking and dragging on the
CListCtrl
? Without having to use OwnerDrawor CustomDraw??? Thanks! :) "Two wrongs don't make a right, but three lefts do!" - Alex Barylski :) -
Is there any easy way to prevent the selection rectangle from following my mouse when clicking and dragging on the
CListCtrl
? Without having to use OwnerDrawor CustomDraw??? Thanks! :) "Two wrongs don't make a right, but three lefts do!" - Alex Barylski :)Add the
LVS_SINGLESEL
style to the control. --Mike-- When 900 years old you reach, look as good you will not. Hmm. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm -
Add the
LVS_SINGLESEL
style to the control. --Mike-- When 900 years old you reach, look as good you will not. Hmm. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_HelmThats the catch. I need multiple selection. CustomDraw or OwnerDraw, will that work? Thanks "Two wrongs don't make a right, but three lefts do!" - Alex Barylski :)
-
Thats the catch. I need multiple selection. CustomDraw or OwnerDraw, will that work? Thanks "Two wrongs don't make a right, but three lefts do!" - Alex Barylski :)
Hockey wrote: Thats the catch. I need multiple selection Ah, in that case handle the
LVN_MARQUEEBEGIN
notification and return TRUE to cancel the marquee. --Mike-- When 900 years old you reach, look as good you will not. Hmm. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm -
Hockey wrote: Thats the catch. I need multiple selection Ah, in that case handle the
LVN_MARQUEEBEGIN
notification and return TRUE to cancel the marquee. --Mike-- When 900 years old you reach, look as good you will not. Hmm. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_HelmVery cool...Thanks alot Happy new years! (in about 6 morre hours) "Two wrongs don't make a right, but three lefts do!" - Alex Barylski :)
-
Hockey wrote: Thats the catch. I need multiple selection Ah, in that case handle the
LVN_MARQUEEBEGIN
notification and return TRUE to cancel the marquee. --Mike-- When 900 years old you reach, look as good you will not. Hmm. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_HelmQuick question Why does the following not work? :(
BOOL CListCtrlEx::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
LPNMLISTVIEW pnmv = (LPNMLISTVIEW)lParam;switch(pnmv->hdr.code){ case LVN\_MARQUEEBEGIN: break; return TRUE; // Cancel selection marquee } return CListCtrl::OnNotify(wParam, lParam, pResult);
}
Thanks again "Two wrongs don't make a right, but three lefts do!" - Alex Barylski :)
-
Quick question Why does the following not work? :(
BOOL CListCtrlEx::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
LPNMLISTVIEW pnmv = (LPNMLISTVIEW)lParam;switch(pnmv->hdr.code){ case LVN\_MARQUEEBEGIN: break; return TRUE; // Cancel selection marquee } return CListCtrl::OnNotify(wParam, lParam, pResult);
}
Thanks again "Two wrongs don't make a right, but three lefts do!" - Alex Barylski :)
You have the
break
in the wrong place ;) --Mike-- When 900 years old you reach, look as good you will not. Hmm. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm -
You have the
break
in the wrong place ;) --Mike-- When 900 years old you reach, look as good you will not. Hmm. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_HelmShite...I didn't even see that... Thanks again! :) "Two wrongs don't make a right, but three lefts do!" - Alex Barylski :)
-
Shite...I didn't even see that... Thanks again! :) "Two wrongs don't make a right, but three lefts do!" - Alex Barylski :)
I have a class, named MyListCtrl which is inherited from CListCtrl. Why I didn't get LVN_MARQUEEBEGIN notification in MyListCtrl::OnNotify() when clicking and dragging??? :( :( :(