hovering listviews

Started by paulDiagnos, February 24, 2009, 12:22:37 PM

Previous topic - Next topic

paulDiagnos

Hi Guys another quiz...

what i want to achieve is while hovering over an item in a listview, is to display a tooltip with some text.

In listboxes i think you can do it with LBItemFromPt but struggling using a listivew.

the best route i have researched so far is info tips, (ListView_SetInfoTip) and guessing that if i could ever get it to work then that would display what i want.

any ideas.

thanks Paul.

paulDiagnos

After banging my head against the wall for a bit , crying for a bit and then giving up all hope..

i found it.

enable info tip first and then in notify pic up the correct message  we need....


Case %LVN_GETINFOTIP                                ' Tooltip is requesting text
                        pTt = pNMHDR
                        ListView_GetItemText hwnd_scrncapt_CaptureListview, @pTt.iItem, 0, zText, SizeOf(zText)                                                
               
                       
                        @pTt.cchTextMax = SizeOf(zText)
                        @pTt.pszText = VarPtr(zText)