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

C / C++ / MFC

 
AnswerRe: managing serial port interrupt Pin
Iain Clarke, Warrior Programmer30-Jan-06 8:35
Iain Clarke, Warrior Programmer30-Jan-06 8:35 
GeneralRe: managing serial port interrupt Pin
misturas30-Jan-06 9:13
misturas30-Jan-06 9:13 
Questiongetting the hwnds of opened windows Pin
Alex Cutovoi30-Jan-06 4:13
Alex Cutovoi30-Jan-06 4:13 
AnswerRe: getting the hwnds of opened windows Pin
Rage30-Jan-06 4:50
professionalRage30-Jan-06 4:50 
QuestionRetreiving attributs of a node Pin
kandukuri30-Jan-06 3:05
kandukuri30-Jan-06 3:05 
AnswerRe: Retreiving attributs of a node Pin
David Crow30-Jan-06 3:31
David Crow30-Jan-06 3:31 
GeneralRe: Retreiving attributs of a node Pin
kandukuri30-Jan-06 3:35
kandukuri30-Jan-06 3:35 
GeneralRe: Retreiving attributs of a node Pin
Rage30-Jan-06 3:42
professionalRage30-Jan-06 3:42 
A pointer on a TVITEM structure. Here you go:

typedef struct tagTVITEM{
    UINT      mask;
    HTREEITEM hItem;
    UINT      state;
    UINT      stateMask;
    LPTSTR    pszText;
    int       cchTextMax;
    int       iImage;
    int       iSelectedImage;
    int       cChildren;
    LPARAM    lParam;
} TVITEM, FAR *LPTVITEM;


See MSDN for more info.

Typical code snippet:

TVITEM tvi;
ZeroMemory(&tvi,sizeof(tvi));
tvi.hItem = YourItemId;           // Here for the item id
tvi.mask = TVIF_TEXT |TVIF_STATE; // Here the attributes you want to retrieve

m_TreeCtrl.GetItem(&tvi);


// Now tvi is fulled with the item's attributes.



~RaGE();
GeneralRe: Retreiving attributs of a node Pin
kandukuri30-Jan-06 3:57
kandukuri30-Jan-06 3:57 
GeneralRe: Retreiving attributs of a node Pin
Rage30-Jan-06 4:10
professionalRage30-Jan-06 4:10 
GeneralRe: Retreiving attributs of a node Pin
David Crow30-Jan-06 4:56
David Crow30-Jan-06 4:56 
GeneralRe: Retreiving attributs of a node Pin
Rage30-Jan-06 5:10
professionalRage30-Jan-06 5:10 
GeneralRe: Retreiving attributs of a node Pin
David Crow30-Jan-06 3:42
David Crow30-Jan-06 3:42 
QuestionTDI Pin
viliam30-Jan-06 2:45
viliam30-Jan-06 2:45 
AnswerRe: TDI Pin
Toby Opferman30-Jan-06 8:16
Toby Opferman30-Jan-06 8:16 
QuestionSaving a BITMAP Pin
spen1130-Jan-06 2:13
spen1130-Jan-06 2:13 
AnswerRe: Saving a BITMAP Pin
Rage30-Jan-06 2:21
professionalRage30-Jan-06 2:21 
AnswerRe: Saving a BITMAP Pin
Vipin Aravind30-Jan-06 2:48
Vipin Aravind30-Jan-06 2:48 
AnswerRe: Saving a BITMAP Pin
Laxman930-Jan-06 21:26
Laxman930-Jan-06 21:26 
QuestionWrong Colors Pin
Great A'Tuin30-Jan-06 1:55
Great A'Tuin30-Jan-06 1:55 
AnswerRe: Wrong Colors Pin
benjymous30-Jan-06 4:06
benjymous30-Jan-06 4:06 
GeneralRe: Wrong Colors Pin
Great A'Tuin30-Jan-06 4:16
Great A'Tuin30-Jan-06 4:16 
GeneralRe: Wrong Colors Pin
benjymous30-Jan-06 9:30
benjymous30-Jan-06 9:30 
GeneralRe: Wrong Colors Pin
Great A'Tuin30-Jan-06 22:16
Great A'Tuin30-Jan-06 22:16 
QuestionChecking other processes memory usage? Pin
chilituna30-Jan-06 1:38
chilituna30-Jan-06 1:38 

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.