Click here to Skip to main content
15,924,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Keeping the DLL loaded Pin
Jonathan [Darka]19-Sep-07 2:29
professionalJonathan [Darka]19-Sep-07 2:29 
AnswerRe: Keeping the DLL loaded Pin
David Crow19-Sep-07 2:37
David Crow19-Sep-07 2:37 
AnswerRe: Keeping the DLL loaded Pin
nbugalia19-Sep-07 2:40
nbugalia19-Sep-07 2:40 
AnswerRe: Keeping the DLL loaded Pin
Hamid_RT19-Sep-07 7:33
Hamid_RT19-Sep-07 7:33 
QuestionCListCtrl Pin
josip cagalj19-Sep-07 2:08
josip cagalj19-Sep-07 2:08 
AnswerRe: CListCtrl Pin
sheshidar19-Sep-07 2:27
sheshidar19-Sep-07 2:27 
GeneralRe: CListCtrl Pin
josip cagalj19-Sep-07 2:32
josip cagalj19-Sep-07 2:32 
GeneralRe: CListCtrl Pin
Nelek19-Sep-07 2:58
protectorNelek19-Sep-07 2:58 
I don't know how to do it with the messages that you are trying, but what do you think about...

If you move the mouse, reset a timer that counts while the mouse is quiet.
If the timer ends its count and the pointer is in the ListCtrl area (you can easyly make a PtInRect with the corners of the ctrl) you can emulate the click of the mouse
and then you get the hitlited and the row number with the NM_CLICK like:

int CView::OnClickListCtrl(NMHDR* pNMHDR, LRESULT* pResult)
{ int nRowNum = -1;
POSITION pos = m_clcMyListCtrl.GetFirstSelectedItemPosition();

while (pos)
{ int nPos = m_clcRuleList.GetNextSelectedItem(pos);
nRowNum = nPos;
}

return nRowNum;
}

With this you have the number of the row, and can use it to get the item text and anything you want

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

QuestionSent Message Pin
sunit519-Sep-07 1:56
sunit519-Sep-07 1:56 
AnswerRe: Sent Message Pin
Randor 19-Sep-07 2:11
professional Randor 19-Sep-07 2:11 
GeneralRe: Sent Message [modified] Pin
sunit519-Sep-07 2:35
sunit519-Sep-07 2:35 
GeneralRe: Sent Message Pin
sunit519-Sep-07 2:38
sunit519-Sep-07 2:38 
QuestionRe: Sent Message Pin
David Crow19-Sep-07 2:41
David Crow19-Sep-07 2:41 
AnswerRe: Sent Message Pin
sunit519-Sep-07 18:54
sunit519-Sep-07 18:54 
GeneralRe: Sent Message Pin
Randor 19-Sep-07 3:31
professional Randor 19-Sep-07 3:31 
GeneralRe: Sent Message Pin
sunit519-Sep-07 18:40
sunit519-Sep-07 18:40 
QuestionInsertion of Smiley Faces in Rich Edit Control Pin
_Shiva19-Sep-07 1:53
_Shiva19-Sep-07 1:53 
AnswerRe: Insertion of Smiley Faces in Rich Edit Control Pin
David Crow19-Sep-07 2:43
David Crow19-Sep-07 2:43 
QuestionAdjusting the size of the page in the property sheet Pin
Nishad S19-Sep-07 1:27
Nishad S19-Sep-07 1:27 
AnswerRe: Adjusting the size of the page in the property sheet Pin
KarstenK19-Sep-07 2:22
mveKarstenK19-Sep-07 2:22 
AnswerRe: Adjusting the size of the page in the property sheet Pin
David Crow19-Sep-07 2:44
David Crow19-Sep-07 2:44 
GeneralRe: Adjusting the size of the page in the property sheet Pin
Nishad S19-Sep-07 19:09
Nishad S19-Sep-07 19:09 
GeneralRe: Adjusting the size of the page in the property sheet Pin
Nelek19-Sep-07 20:18
protectorNelek19-Sep-07 20:18 
GeneralRe: Adjusting the size of the page in the property sheet Pin
Nishad S19-Sep-07 20:32
Nishad S19-Sep-07 20:32 
GeneralRe: Adjusting the size of the page in the property sheet Pin
Nelek19-Sep-07 22:02
protectorNelek19-Sep-07 22: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.