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

C / C++ / MFC

 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 4:28
Matthew Faithfull4-Apr-08 4:28 
GeneralRe: CComVariant Pin
George_George4-Apr-08 4:39
George_George4-Apr-08 4:39 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 4:53
Matthew Faithfull4-Apr-08 4:53 
GeneralRe: CComVariant Pin
George_George6-Apr-08 15:50
George_George6-Apr-08 15:50 
GeneralImageList of TreeView. Pin
Le@rner4-Apr-08 0:24
Le@rner4-Apr-08 0:24 
GeneralRe: ImageList of TreeView. Pin
Iain Clarke, Warrior Programmer4-Apr-08 1:10
Iain Clarke, Warrior Programmer4-Apr-08 1:10 
GeneralRe: ImageList of TreeView. Pin
Le@rner4-Apr-08 1:55
Le@rner4-Apr-08 1:55 
GeneralRe: ImageList of TreeView. Pin
Iain Clarke, Warrior Programmer4-Apr-08 2:56
Iain Clarke, Warrior Programmer4-Apr-08 2:56 
ThatsMe. wrote:
Please can u give some example of code


Nope! There's several stages in there.

Look up ON_NOTIFY, and NM_CLICK to write a handler to monitor for clicks.

Then TVM_HITTEST to find out which item was clicked.

Then TVM_SETITEM, with a tvItem.mask = TVIF_IMAGE to change the image index to something else.

Lastly, You may need to invalidate the control.

This is a decent chunk of work, but like most programming jobs, break it into bite size chunks.

Iain.

Iain Clarke appears because CPallini still cares.

QuestionSystem imagelist: how can I retrieve icons 48х48? Pin
stas133-Apr-08 23:46
stas133-Apr-08 23:46 
AnswerRe: System imagelist: how can I retrieve icons 48х48? Pin
Michael Dunn4-Apr-08 10:15
sitebuilderMichael Dunn4-Apr-08 10:15 
GeneralTo display a messagebox after the application is closed Pin
guru moorthy.k3-Apr-08 20:47
guru moorthy.k3-Apr-08 20:47 
GeneralRe: To display a messagebox after the application is closed Pin
Cedric Moonen3-Apr-08 20:53
Cedric Moonen3-Apr-08 20:53 
JokeRe: To display a messagebox after the application is closed Pin
Rajesh R Subramanian3-Apr-08 23:13
professionalRajesh R Subramanian3-Apr-08 23:13 
GeneralRe: To display a messagebox after the application is closed Pin
CPallini3-Apr-08 23:23
mveCPallini3-Apr-08 23:23 
GeneralRe: To display a messagebox after the application is closed Pin
Mukesh Kumar4-Apr-08 0:41
Mukesh Kumar4-Apr-08 0:41 
GeneralRe: To display a messagebox after the application is closed Pin
Nitheesh George4-Apr-08 1:45
Nitheesh George4-Apr-08 1:45 
GeneralRe: To display a messagebox after the application is closed Pin
Hamid_RT7-Apr-08 19:38
Hamid_RT7-Apr-08 19:38 
QuestionAre Detours compatible with Windows CE? Pin
tony_Udz3-Apr-08 20:15
tony_Udz3-Apr-08 20:15 
GeneralProblem in OnInitialUpdate Function. Pin
Le@rner3-Apr-08 20:14
Le@rner3-Apr-08 20:14 
GeneralRe: Problem in OnInitialUpdate Function. Pin
Iain Clarke, Warrior Programmer3-Apr-08 22:10
Iain Clarke, Warrior Programmer3-Apr-08 22:10 
General(Resolved): Problem in OnInitialUpdate Function. Pin
Le@rner3-Apr-08 23:01
Le@rner3-Apr-08 23:01 
GeneralRe: Problem in OnInitialUpdate Function. [modified] Pin
Nitheesh George4-Apr-08 1:37
Nitheesh George4-Apr-08 1:37 
QuestionRe: Problem in OnInitialUpdate Function. Pin
David Crow4-Apr-08 2:50
David Crow4-Apr-08 2:50 
GeneralRe: Problem in OnInitialUpdate Function. Pin
Iain Clarke, Warrior Programmer4-Apr-08 3:03
Iain Clarke, Warrior Programmer4-Apr-08 3:03 
GeneralRe: Problem in OnInitialUpdate Function. Pin
David Crow4-Apr-08 3:17
David Crow4-Apr-08 3:17 

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.