Click here to Skip to main content
15,885,914 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: for... loop to while loop Pin
David Crow30-Sep-08 10:20
David Crow30-Sep-08 10:20 
GeneralRe: for... loop to while loop Pin
toxcct30-Sep-08 22:03
toxcct30-Sep-08 22:03 
QuestionSubitem hiliting in CListCtrl Pin
josip cagalj30-Sep-08 2:29
josip cagalj30-Sep-08 2:29 
AnswerRe: Subitem hiliting in CListCtrl Pin
led mike30-Sep-08 4:25
led mike30-Sep-08 4:25 
GeneralRe: Subitem hiliting in CListCtrl Pin
josip cagalj30-Sep-08 20:59
josip cagalj30-Sep-08 20:59 
AnswerRe: Subitem hiliting in CListCtrl [modified] Pin
Naveen30-Sep-08 20:27
Naveen30-Sep-08 20:27 
GeneralRe: Subitem hiliting in CListCtrl Pin
josip cagalj30-Sep-08 21:43
josip cagalj30-Sep-08 21:43 
GeneralRe: Subitem hiliting in CListCtrl Pin
Naveen30-Sep-08 21:55
Naveen30-Sep-08 21:55 
josip cagalj wrote:
Are you sure I can hilite cell


99%

josip cagalj wrote:
How to get row&column info where click occur?


First handle the NM_CLICK event. From that function, you can get the row and column in which the user clicked. Save this information in some variable.

The NM_CUSTOMEDRAW, will be sent before the list controls draws each column in the list control. It gives a structure that contains some variables that represent the background color, text color etc of the column to be drawn. You can change the value in those variable and the list control will draw the column with those colors. So what I am saying is, when ever the list control send a NM_CUSTOMEDRAW message and the item and subitem matches the values that we stored in NM_CLICK, change the value of the variable in the structure with the desired one.


GeneralRe: Subitem hiliting in CListCtrl [modified] Pin
josip cagalj30-Sep-08 22:12
josip cagalj30-Sep-08 22:12 
GeneralRe: Subitem hiliting in CListCtrl Pin
Naveen30-Sep-08 22:29
Naveen30-Sep-08 22:29 
GeneralRe: Subitem hiliting in CListCtrl Pin
josip cagalj1-Oct-08 3:07
josip cagalj1-Oct-08 3:07 
GeneralRe: Subitem hiliting in CListCtrl Pin
Naveen1-Oct-08 14:18
Naveen1-Oct-08 14:18 
GeneralRe: Subitem hiliting in CListCtrl Pin
josip cagalj1-Oct-08 22:42
josip cagalj1-Oct-08 22:42 
GeneralRe: Subitem hiliting in CListCtrl Pin
Naveen1-Oct-08 22:54
Naveen1-Oct-08 22:54 
GeneralRe: Subitem hiliting in CListCtrl [modified] Pin
josip cagalj1-Oct-08 23:14
josip cagalj1-Oct-08 23:14 
GeneralRe: Subitem hiliting in CListCtrl Pin
josip cagalj2-Oct-08 0:59
josip cagalj2-Oct-08 0:59 
AnswerRe: Subitem hiliting in CListCtrl Pin
josip cagalj30-Sep-08 21:49
josip cagalj30-Sep-08 21:49 
AnswerRe: Subitem hiliting in CListCtrl Pin
josip cagalj30-Sep-08 21:50
josip cagalj30-Sep-08 21:50 
QuestionProblem with VScroll Bar. [modified] Pin
Le@rner30-Sep-08 2:28
Le@rner30-Sep-08 2:28 
AnswerRe: Problem with VScroll Bar. Pin
Sarath C30-Sep-08 3:25
Sarath C30-Sep-08 3:25 
GeneralRe: Problem with VScroll Bar. Pin
Le@rner3-Oct-08 19:46
Le@rner3-Oct-08 19:46 
GeneralRe: Problem with VScroll Bar. Pin
Sarath C3-Oct-08 23:28
Sarath C3-Oct-08 23:28 
QuestionTraverse System Volume Information Folder Pin
john563230-Sep-08 2:02
john563230-Sep-08 2:02 
AnswerRe: Traverse System Volume Information Folder [modified] Pin
Michael Schubert30-Sep-08 2:30
Michael Schubert30-Sep-08 2:30 
QuestionRe: Traverse System Volume Information Folder Pin
john563230-Sep-08 20:09
john563230-Sep-08 20:09 

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.