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

C / C++ / MFC

 
AnswerRe: how to send a custom message to a window service? Pin
Nibu babu thomas7-Jun-06 18:27
Nibu babu thomas7-Jun-06 18:27 
QuestionUSB-Serial adpater and normal serial communication Pin
Veeresh Hiremath7-Jun-06 0:39
Veeresh Hiremath7-Jun-06 0:39 
AnswerRe: USB-Serial adpater and normal serial communication Pin
Cedric Moonen7-Jun-06 1:23
Cedric Moonen7-Jun-06 1:23 
Questiondate function to mysql Pin
yogendra kaushik7-Jun-06 0:35
yogendra kaushik7-Jun-06 0:35 
AnswerRe: date function to mysql Pin
_AnsHUMAN_ 7-Jun-06 0:45
_AnsHUMAN_ 7-Jun-06 0:45 
AnswerRe: date function to mysql Pin
Laxman Auti7-Jun-06 2:41
Laxman Auti7-Jun-06 2:41 
AnswerRe: date function to mysql Pin
David Crow7-Jun-06 3:27
David Crow7-Jun-06 3:27 
QuestionList control - Mouse Move Pin
RajiRaghu7-Jun-06 0:28
RajiRaghu7-Jun-06 0:28 
Hi ,

I need to show the IDC_HAND cursor if the mouse moves over a particular subitem. I wrote the follwoing code. But the mouse cursor is not changing.

Any alternative please.

void CList::OnMouseMove(UINT nFlags, CPoint Point)
{
//Get the mouse position
const MSG* pMessage;
pMessage = GetCurrentMessage();
ASSERT(pMessage);
CPoint pt;
pt = pMessage->pt; // get the point from the message

// see if the point falls onto a list item

LVHITTESTINFO lvhitTestInfo;

lvhitTestInfo.pt = pt;

int nItem = m_List.SubItemHitTest(&lvhitTestInfo);
int nSubItem = lvhitTestInfo.iSubItem;

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

Thanks
Raji
AnswerRe: List control - Mouse Move Pin
Naveen7-Jun-06 1:19
Naveen7-Jun-06 1:19 
GeneralRe: List control - Mouse Move Pin
RajiRaghu7-Jun-06 1:59
RajiRaghu7-Jun-06 1:59 
GeneralRe: List control - Mouse Move Pin
Naveen7-Jun-06 2:05
Naveen7-Jun-06 2:05 
GeneralRe: List control - Mouse Move Pin
Nishad S7-Jun-06 2:19
Nishad S7-Jun-06 2:19 
AnswerRe: List control - Mouse Move Pin
Viorel.7-Jun-06 1:34
Viorel.7-Jun-06 1:34 
AnswerRe: List control - Mouse Move Pin
Nishad S7-Jun-06 2:17
Nishad S7-Jun-06 2:17 
QuestionCan window be create in a window service? Pin
sunyw_20067-Jun-06 0:27
sunyw_20067-Jun-06 0:27 
AnswerRe: Com not getting registered Pin
Michael Dunn7-Jun-06 2:41
sitebuilderMichael Dunn7-Jun-06 2:41 
QuestionKey Event In Split Window Pin
g_sandipan6-Jun-06 23:53
g_sandipan6-Jun-06 23:53 
AnswerRe: Key Event In Split Window Pin
FarPointer7-Jun-06 3:25
FarPointer7-Jun-06 3:25 
QuestionKeystrokes in Edit control [modified] Pin
happy_ram6-Jun-06 22:59
happy_ram6-Jun-06 22:59 
AnswerRe: Keystrokes in Edit control Pin
Naveen6-Jun-06 23:33
Naveen6-Jun-06 23:33 
AnswerRe: Keystrokes in Edit control Pin
Laxman Auti6-Jun-06 23:48
Laxman Auti6-Jun-06 23:48 
GeneralRe: Keystrokes in Edit control [modified] Pin
happy_ram7-Jun-06 1:29
happy_ram7-Jun-06 1:29 
GeneralRe: Keystrokes in Edit control [modified] Pin
Naveen7-Jun-06 1:37
Naveen7-Jun-06 1:37 
GeneralRe: Keystrokes in Edit control [modified] Pin
happy_ram7-Jun-06 1:49
happy_ram7-Jun-06 1:49 
GeneralRe: Keystrokes in Edit control [modified] Pin
Naveen7-Jun-06 1:56
Naveen7-Jun-06 1:56 

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.