Click here to Skip to main content
15,887,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Shared Memory Writing Pin
James R. Twine6-Jun-06 3:13
James R. Twine6-Jun-06 3:13 
QuestionKernal32.lib .....Error at run Pin
zahid_ash6-Jun-06 0:55
zahid_ash6-Jun-06 0:55 
AnswerRe: Kernal32.lib .....Error at run Pin
_AnsHUMAN_ 6-Jun-06 1:04
_AnsHUMAN_ 6-Jun-06 1:04 
QuestionRe: Kernal32.lib .....Error at run Pin
David Crow6-Jun-06 3:31
David Crow6-Jun-06 3:31 
Questioncompiler creation Pin
c076-Jun-06 0:46
c076-Jun-06 0:46 
AnswerRe: compiler creation Pin
Sarath C6-Jun-06 1:01
Sarath C6-Jun-06 1:01 
GeneralRe: compiler creation Pin
c076-Jun-06 4:00
c076-Jun-06 4:00 
QuestionMouse move event Pin
RajiRaghu6-Jun-06 0:43
RajiRaghu6-Jun-06 0:43 
I used the following code. But it does not take the correct column (subitem).

The part of code is in OnMouseMove event:
void CListt::OnMouseMove(UINT nFlags, CPoint point)
{
CPoint pt(point);
ScreenToClient(&pt);
LVHITTESTINFO hitInfo;
hitInfo.pt = point;
int nItem = -1;
nItem = m_list.SubItemHitTest(&hitInfo);
if (nItem >= 0)
{
m_list.SetItemState(nItem, LVIS_SELECTED, LVIS_SELECTED);
}

if (nItem >= 0 && hitInfo.iSubItem > 0)
{
int m_nSubItemHit = hitInfo.iSubItem;
if ( hitInfo.iSubItem == 8)
SetCursor(hCursor);
}
}

I need to change the cursor if subitem is "8". But even if move the mouse on the 8th subitem, the value of hitInfo.iSubItem is some thing else. moreover nItem is always -1.

Any clues please



Thanks
Raji
Questionconversion to _bstr_t - newbie Pin
antonaras6-Jun-06 0:29
antonaras6-Jun-06 0:29 
AnswerRe: conversion to _bstr_t - newbie Pin
Sarath C6-Jun-06 0:37
Sarath C6-Jun-06 0:37 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 0:58
ThatsAlok6-Jun-06 0:58 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 1:02
ThatsAlok6-Jun-06 1:02 
AnswerRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 0:43
ThatsAlok6-Jun-06 0:43 
GeneralRe: conversion to _bstr_t - newbie Pin
Sarath C6-Jun-06 0:49
Sarath C6-Jun-06 0:49 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 0:57
ThatsAlok6-Jun-06 0:57 
GeneralRe: conversion to _bstr_t - newbie Pin
antonaras6-Jun-06 0:55
antonaras6-Jun-06 0:55 
GeneralRe: conversion to _bstr_t - newbie Pin
Sarath C6-Jun-06 0:59
Sarath C6-Jun-06 0:59 
GeneralRe: conversion to _bstr_t - newbie Pin
ThatsAlok6-Jun-06 1:01
ThatsAlok6-Jun-06 1:01 
GeneralRe: conversion to _bstr_t - newbie Pin
antonaras6-Jun-06 1:09
antonaras6-Jun-06 1:09 
AnswerRe: conversion to _bstr_t - newbie Pin
Viorel.6-Jun-06 1:20
Viorel.6-Jun-06 1:20 
GeneralRe: conversion to _bstr_t - newbie Pin
antonaras6-Jun-06 1:33
antonaras6-Jun-06 1:33 
GeneralRe: conversion to _bstr_t - newbie Pin
Viorel.6-Jun-06 1:47
Viorel.6-Jun-06 1:47 
GeneralRe: conversion to _bstr_t - newbie Pin
antonaras6-Jun-06 1:58
antonaras6-Jun-06 1:58 
AnswerRe: conversion to _bstr_t - newbie Pin
David Crow6-Jun-06 3:35
David Crow6-Jun-06 3:35 
QuestionDraggable, connectable windows classes - where to find them? Pin
midix6-Jun-06 0:29
midix6-Jun-06 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.