|
-
Feb 17th, 2003, 01:47 PM
#1
Thread Starter
Frenzied Member
structures
ok while on MSDN i find lots of things that need a structure. like
Code:
this .
"Pointer to a TVINSERTSTRUCT structure that specifies the attributes of the tree-view item. "
How would i make a structure how would i complete that?
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Feb 17th, 2003, 03:33 PM
#2
Frenzied Member
Code:
TVINSERTSTRUCT *pTVINSERTSTRUCT;
TVINSERTSTRUCT m;
pTVINSERTSTRUCT = &m;
-
Feb 18th, 2003, 08:57 AM
#3
The structures are already defined in the windows headers.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Feb 18th, 2003, 09:41 AM
#4
Thread Starter
Frenzied Member
yes but how do i use them
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Feb 18th, 2003, 04:09 PM
#5
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));
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|