169 _In_opt_ PVOID Parameter1,
170 _In_opt_ PVOID Parameter2,
171 _In_opt_ PVOID Context
175 _Out_ PPH_TREENEW_CONTEXT *Context
179 _In_ PPH_TREENEW_CONTEXT Context
186 _In_ PPH_TREENEW_CONTEXT Context,
187 _In_ CREATESTRUCT *CreateStruct
192 _In_ PPH_TREENEW_CONTEXT Context
197 _In_ PPH_TREENEW_CONTEXT Context,
204 _In_ PPH_TREENEW_CONTEXT Context,
206 _In_ STYLESTRUCT *StyleStruct
211 _In_ PPH_TREENEW_CONTEXT Context
216 _In_ PPH_TREENEW_CONTEXT Context
221 _In_ PPH_TREENEW_CONTEXT Context,
222 _In_ ULONG VirtualKey,
223 _In_opt_ PMSG Message
228 _In_ PPH_TREENEW_CONTEXT Context
233 _In_ PPH_TREENEW_CONTEXT Context,
240 _In_ PPH_TREENEW_CONTEXT Context,
241 _In_opt_ HRGN UpdateRegion
246 _In_ PPH_TREENEW_CONTEXT Context,
247 _In_ HWND CursorWindowHandle
252 _In_ PPH_TREENEW_CONTEXT Context,
258 _In_ PPH_TREENEW_CONTEXT Context,
259 _In_ ULONG VirtualKeys,
266 _In_ PPH_TREENEW_CONTEXT Context
271 _In_ PPH_TREENEW_CONTEXT Context,
273 _In_ ULONG VirtualKeys,
280 _In_ PPH_TREENEW_CONTEXT Context
285 _In_ PPH_TREENEW_CONTEXT Context,
286 _In_ ULONG VirtualKey,
292 _In_ PPH_TREENEW_CONTEXT Context,
293 _In_ ULONG Character,
299 _In_ PPH_TREENEW_CONTEXT Context,
301 _In_ ULONG VirtualKeys,
308 _In_ PPH_TREENEW_CONTEXT Context,
310 _In_ ULONG VirtualKeys,
317 _In_ PPH_TREENEW_CONTEXT Context,
318 _In_
LONG CursorScreenX,
319 _In_
LONG CursorScreenY
324 _In_ PPH_TREENEW_CONTEXT Context,
331 _In_ PPH_TREENEW_CONTEXT Context,
338 _In_ PPH_TREENEW_CONTEXT Context,
340 _Out_ LRESULT *Result
345 _In_ PPH_TREENEW_CONTEXT Context,
347 _In_ ULONG_PTR WParam,
348 _In_ ULONG_PTR LParam
354 _In_ PPH_TREENEW_CONTEXT Context,
360 _In_ PPH_TREENEW_CONTEXT Context
364 _In_ PPH_TREENEW_CONTEXT Context
368 _In_ PPH_TREENEW_CONTEXT Context
372 _In_ PPH_TREENEW_CONTEXT Context
376 _In_ PPH_TREENEW_CONTEXT Context
380 _In_ PPH_TREENEW_CONTEXT Context
384 _In_ PPH_TREENEW_CONTEXT Context
388 _In_ PPH_TREENEW_CONTEXT Context,
389 _In_ ULONG FixedWidth
393 _In_ PPH_TREENEW_CONTEXT Context,
398 _In_ PPH_TREENEW_CONTEXT Context,
404 _In_ ULONG VirtualKeys
410 _In_ PPH_TREENEW_CONTEXT Context,
415 _In_ PPH_TREENEW_CONTEXT Context,
420 _In_ PPH_TREENEW_CONTEXT Context,
425 _In_ PPH_TREENEW_CONTEXT Context,
431 _In_ PPH_TREENEW_CONTEXT Context,
438 _In_ PPH_TREENEW_CONTEXT Context
442 _In_ PPH_TREENEW_CONTEXT Context
448 _In_ PPH_TREENEW_CONTEXT Context,
453 _In_ PPH_TREENEW_CONTEXT Context,
459 _In_ PPH_TREENEW_CONTEXT Context,
464 _In_ PPH_TREENEW_CONTEXT Context
468 _In_ PPH_TREENEW_CONTEXT Context,
474 _In_ PPH_TREENEW_CONTEXT Context,
479 _In_ PPH_TREENEW_CONTEXT Context,
484 _In_ PPH_TREENEW_CONTEXT Context,
485 _In_ HWND HeaderHandle,
493 _In_ PPH_TREENEW_CONTEXT Context,
496 _Out_ PULONG NumberOfChildren
500 _In_ PPH_TREENEW_CONTEXT Context,
505 _In_ PPH_TREENEW_CONTEXT Context,
512 _In_ PPH_TREENEW_CONTEXT Context
516 _In_ PPH_TREENEW_CONTEXT Context,
522 _In_ PPH_TREENEW_CONTEXT Context,
524 _In_ BOOLEAN Expanded
528 _In_ PPH_TREENEW_CONTEXT Context,
536 _In_ PPH_TREENEW_CONTEXT Context,
544 _In_ PPH_TREENEW_CONTEXT Context,
549 _In_ PPH_TREENEW_CONTEXT Context,
553 _Out_opt_ PULONG ChangedStart,
554 _Out_opt_ PULONG ChangedEnd
558 _In_ PPH_TREENEW_CONTEXT Context,
560 _In_ BOOLEAN NewPlusMinusHot
564 _In_ PPH_TREENEW_CONTEXT Context,
572 _In_ PPH_TREENEW_CONTEXT Context,
579 _In_ PPH_TREENEW_CONTEXT Context,
585 _In_ PPH_TREENEW_CONTEXT Context,
590 _In_ PPH_TREENEW_CONTEXT Context,
597 _In_ PPH_TREENEW_CONTEXT Context,
598 _In_ ULONG VirtualKey
602 _In_ PPH_TREENEW_CONTEXT Context,
603 _In_ ULONG VirtualKey
607 _In_ PPH_TREENEW_CONTEXT Context,
612 _In_ PPH_TREENEW_CONTEXT Context,
614 _In_ BOOLEAN Partial,
621 _In_ PPH_TREENEW_CONTEXT Context
625 _In_ PPH_TREENEW_CONTEXT Context,
631 _In_ PPH_TREENEW_CONTEXT Context,
637 _In_ PPH_TREENEW_CONTEXT Context,
638 _In_ BOOLEAN Horizontal,
639 _In_ BOOLEAN Positive
646 _In_ PPH_TREENEW_CONTEXT Context,
652 _In_ PPH_TREENEW_CONTEXT Context,
658 _In_ PPH_TREENEW_CONTEXT Context,
664 _In_
LONG ColumnIndex
668 _In_ PPH_TREENEW_CONTEXT Context,
679 _In_ PPH_TREENEW_CONTEXT Context,
685 _In_ PPH_TREENEW_CONTEXT Context,
692 _In_ PPH_TREENEW_CONTEXT Context
696 _In_ PPH_TREENEW_CONTEXT Context,
702 _In_ PPH_TREENEW_CONTEXT Context
706 _In_ PPH_TREENEW_CONTEXT Context
710 _In_ PPH_TREENEW_CONTEXT Context
714 _In_ PPH_TREENEW_CONTEXT Context,
717 _Out_opt_ PRECT ItemRect
721 _In_ PPH_TREENEW_CONTEXT Context,
741 _In_ PPH_TREENEW_CONTEXT Context,
744 _In_ BOOLEAN DispatchMessages,
745 _Out_opt_ PULONG CancelledByMessage
749 _In_ PPH_TREENEW_CONTEXT Context,
755 _In_ PPH_TREENEW_CONTEXT Context,
756 _In_ ULONG VirtualKeys,
765 _In_ PPH_TREENEW_CONTEXT Context
769 _In_ PPH_TREENEW_CONTEXT Context
776 _Out_ PPOINT ClientPoint
781 #define HRGN_FULL ((HRGN)1) // passed by WM_NCPAINT even though it's completely undocumented
783 #define TNP_CELL_LEFT_MARGIN 6
784 #define TNP_CELL_RIGHT_MARGIN 6
785 #define TNP_ICON_RIGHT_PADDING 4
787 #define TNP_TIMER_NULL 1
788 #define TNP_TIMER_ANIMATE_DIVIDER 2
790 #define TNP_TOOLTIPS_ITEM 0
791 #define TNP_TOOLTIPS_FIXED_HEADER 1
792 #define TNP_TOOLTIPS_HEADER 2
793 #define TNP_TOOLTIPS_DEFAULT_MAXIMUM_WIDTH 550
795 #define TNP_ANIMATE_DIVIDER_INTERVAL 10
796 #define TNP_ANIMATE_DIVIDER_INCREMENT 17
797 #define TNP_ANIMATE_DIVIDER_DECREMENT 2
799 #define TNP_HIT_TEST_FIXED_DIVIDER(X, Context) \
800 ((Context)->FixedDividerVisible && (X) >= (Context)->FixedWidth - 8 && (X) < (Context)->FixedWidth + 8)
801 #define TNP_HIT_TEST_PLUS_MINUS_GLYPH(X, NodeLevel) \
802 (((X) >= TNP_CELL_LEFT_MARGIN + ((LONG)(NodeLevel) * SmallIconWidth)) && ((X) < TNP_CELL_LEFT_MARGIN + ((LONG)(NodeLevel) * SmallIconWidth) + SmallIconWidth))