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

C / C++ / MFC

 
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 
AnswerRe: List control - Mouse Move Pin
Naveen7-Jun-06 1:19
Naveen7-Jun-06 1:19 
RajiRaghu wrote:
//Get the mouse position
const MSG* pMessage;
pMessage = GetCurrentMessage();
ASSERT(pMessage);
CPoint pt;
pt = pMessage->pt; // get the point from the message


Why r u taking the mouse point in this method when the point is passed to the function....?

Replace ur code with the below one..

void CList::OnMouseMove(UINT nFlags, CPoint Point) <br />
{<br />
<br />
LVHITTESTINFO lvhitTestInfo;<br />
<br />
lvhitTestInfo.pt = Point;<br />
<br />
int nItem = m_List.SubItemHitTest(&lvhitTestInfo);<br />
int nSubItem = lvhitTestInfo.iSubItem;<br />
if (nItem >= 0 && lvhitTestInfo.iSubItem > 0)<br />
{<br />
int m_nSubItemHit = lvhitTestInfo.iSubItem;<br />
if ( lvhitTestInfo.iSubItem == 8)<br />
{<br />
SetCursor(hCursor); <br />
} }<br />
} 


nave
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 
GeneralRe: Keystrokes in Edit control [modified] Pin
happy_ram7-Jun-06 2:18
happy_ram7-Jun-06 2:18 

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.