Results 1 to 5 of 5

Thread: structures

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335

    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/

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    Code:
    TVINSERTSTRUCT *pTVINSERTSTRUCT;
    TVINSERTSTRUCT m;
    
    pTVINSERTSTRUCT = &m;

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  4. #4

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    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/

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width