ok while on MSDN i find lots of things that need a structure. likeHow would i make a structure how would i complete that?Code:this .
"Pointer to a TVINSERTSTRUCT structure that specifies the attributes of the tree-view item. "
Printable View
ok while on MSDN i find lots of things that need a structure. likeHow would i make a structure how would i complete that?Code:this .
"Pointer to a TVINSERTSTRUCT structure that specifies the attributes of the tree-view item. "
Code:TVINSERTSTRUCT *pTVINSERTSTRUCT;
TVINSERTSTRUCT m;
pTVINSERTSTRUCT = &m;
The structures are already defined in the windows headers.
yes but how do i use them
:confused: like any other struct...
Code:TVINSERTSTRUCT tis;
tis.hParent = NULL;
tis.hInsertAfter = TVI_FIRST;
tis.item.mask = TVIV_TEXT;
tis.item.pszText = LPSTR_TEXTCALLBACK;
tis.item.cchTextMax = 0;
HTREEITEM hNew = reinterpret_cast<HTREEITEM>(
SendMessage(hwndTree, TVM_INSERTITEM,
0, reinterpret_cast<LPARAM>(&tis));