Skip to main content

Module download_tree_view

Module download_tree_view 

Source
Expand description

The Download scene’s tree view, mirroring pacenotes_installer::tree::Tree; each item’s lParam is its node index in the model.

Structs§

NmTvItemChange 🔒
NMTVITEMCHANGE, which windows-sys does not declare.

Constants§

STATE_IMAGE_CHECKED 🔒
STATE_IMAGE_PARTIAL 🔒
STATE_IMAGE_SHIFT 🔒
The state image lives in bits 12-15: 1 unchecked, 2 checked, 3 partial.
STATE_IMAGE_UNCHECKED 🔒
TVI_LAST 🔒
TVI_ROOT 🔒
TVM_DELETEITEM 🔒
TVM_INSERTITEMW 🔒
TVM_SETEXTENDEDSTYLE 🔒
TVM_SETITEMW 🔒
TVN_ITEMCHANGEDW
TVN_FIRST - 17, which windows-sys does not declare.
WM_SYNC_CHECKS
Posted to the page to push the model’s checkboxes into the control.

Functions§

enable_partial_checkboxes⚠
Partial checkboxes are an extended style, which a template cannot request, and the checkbox images are built when TVS_CHECKBOXES arrives: given in the template, it came first, there was no partial image, and a category with only some items ticked drew no box at all.
insert_node 🔒 ⚠
on_item_changed⚠
Takes a toggled checkbox into the model, which propagates it through the subtree, then pushes the whole model back.
populate⚠
Replaces the control’s items with the model’s.
refresh_checks⚠
Pushes every node’s checkbox from the model into the control.
row_label 🔒
The model’s label plus the localized state suffix the model leaves out, where being in the game folder outranks being in the cache.
tree_control 🔒 ⚠