locked
[WinAPI]TCITEMHEADER - how does it work? RRS feed

  • Question

  • TCM_INSERTITEM message allows to specify not only TC_ITEM structure but any structure with TCITEMHEADER as first item. Question is how does Windows determine size of user defined structure? How does it store this structure? How does it return this structure on TCM_GETITEM message? Maybe I just didn't notice a field where I should specify sizeof(my application-defined structure)?

    Monday, January 10, 2011 1:18 AM

Answers

  • Northsoft wrote:

    TCM_INSERTITEM message allows to specify not only TC_ITEM structure  but any structure with TCITEMHEADER as first item. Question
    is how does Windows determine size of user defined structure?

    TCM_SETITEMEXTRA


    Igor Tandetnik

    • Marked as answer by Northsoft Monday, January 10, 2011 2:16 AM
    Monday, January 10, 2011 2:15 AM

All replies

  • Northsoft wrote:

    TCM_INSERTITEM message allows to specify not only TC_ITEM structure  but any structure with TCITEMHEADER as first item. Question
    is how does Windows determine size of user defined structure?

    TCM_SETITEMEXTRA


    Igor Tandetnik

    • Marked as answer by Northsoft Monday, January 10, 2011 2:16 AM
    Monday, January 10, 2011 2:15 AM
  • Thanks a lot, Igor! There is no one word about this message at MSDN articles.

    Огромное спасибо Вам, Игорь! В MSDN об этом сообщении — ни слова.

    Monday, January 10, 2011 2:19 AM