Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionfetch from mysql [modified] Pin
p_5-Jun-06 18:39
p_5-Jun-06 18:39 
QuestionRS 232 communication [modified] Pin
rajeev825-Jun-06 18:34
rajeev825-Jun-06 18:34 
AnswerRe: RS 232 communication [modified] Pin
Trollslayer5-Jun-06 18:43
mentorTrollslayer5-Jun-06 18:43 
AnswerRe: RS 232 communication [modified] Pin
khan++5-Jun-06 18:44
khan++5-Jun-06 18:44 
AnswerRe: RS 232 communication Pin
ThatsAlok6-Jun-06 0:19
ThatsAlok6-Jun-06 0:19 
QuestionMouse move Event Pin
RajiRaghu5-Jun-06 18:04
RajiRaghu5-Jun-06 18:04 
AnswerRe: Mouse move Event Pin
Ryan Binns5-Jun-06 18:21
Ryan Binns5-Jun-06 18:21 
GeneralRe: Mouse move Event Pin
RajiRaghu6-Jun-06 0:30
RajiRaghu6-Jun-06 0:30 
I used the following code. But it does not take the correct column.

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
GeneralRe: Mouse move Event Pin
Ryan Binns6-Jun-06 2:36
Ryan Binns6-Jun-06 2:36 
QuestionHow to load a component from the CLSID? Pin
Tcpip20055-Jun-06 17:55
Tcpip20055-Jun-06 17:55 
AnswerRe: How to load a component from the CLSID? Pin
Stephen Hewitt5-Jun-06 18:06
Stephen Hewitt5-Jun-06 18:06 
GeneralRe: How to load a component from the CLSID? Pin
Tcpip20055-Jun-06 18:36
Tcpip20055-Jun-06 18:36 
GeneralRe: How to load a component from the CLSID? [modified] Pin
Stephen Hewitt5-Jun-06 18:40
Stephen Hewitt5-Jun-06 18:40 
GeneralRe: How to load a component from the CLSID? [modified] Pin
Tcpip20055-Jun-06 18:56
Tcpip20055-Jun-06 18:56 
GeneralRe: How to load a component from the CLSID? [modified] Pin
Stephen Hewitt5-Jun-06 22:08
Stephen Hewitt5-Jun-06 22:08 
GeneralRe: How to load a component from the CLSID? [modified] Pin
Tcpip20057-Jun-06 16:36
Tcpip20057-Jun-06 16:36 
QuestionSaving data Pin
DanYELL5-Jun-06 17:37
DanYELL5-Jun-06 17:37 
QuestionHow to use OnDeviceChange under windows98? Pin
Syouki_kou5-Jun-06 17:03
Syouki_kou5-Jun-06 17:03 
AnswerRe: How to use OnDeviceChange under windows98? Pin
Syouki_kou5-Jun-06 21:50
Syouki_kou5-Jun-06 21:50 
GeneralRe: How to use OnDeviceChange under windows98? Pin
Syouki_kou6-Jun-06 17:55
Syouki_kou6-Jun-06 17:55 
Questionhow to get icon from other applications Pin
wanglei19805-Jun-06 15:28
wanglei19805-Jun-06 15:28 
AnswerRe: how to get icon from other applications Pin
Ryan Binns5-Jun-06 18:23
Ryan Binns5-Jun-06 18:23 
AnswerRe: how to get icon from other applications Pin
ThatsAlok5-Jun-06 23:22
ThatsAlok5-Jun-06 23:22 
QuestionMFC Excel charts with VC++ Pin
BuckBrown5-Jun-06 11:00
BuckBrown5-Jun-06 11:00 
AnswerRe: MFC Excel charts with VC++ Pin
BuckBrown6-Jun-06 12:02
BuckBrown6-Jun-06 12:02 

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.