Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtGridWnd: select cells by dragging Collapse All
Subject Author Date
Bart Kampers Oct 20, 2010 - 1:59 AM

Hello there,

I want to select multiple cells in a grid by dragging the mouse. Do I have to override OnGridDataDndComplete, OnGridDropSourceBeginDrag and OnGridDropSourceQueryContinueDrag or can I just set a style?

Thanks in advance,


Technical Support Oct 20, 2010 - 8:50 AM

In the classic list box common control you can click on an item and drag the mouse to select a range of items. This feature is called extended list box selection and it’s turned on with LBS_EXTENDEDSEL list box style.

The CExtGridWnd control also supports the extended list box selection style. It’s turned on with __EGBS_LBEXT_SELECTION style and SiwModifyStyle() method.