I know I'm doing something wrong but I'm just not sure what it is. I have a window I created with a treeview control but I can't get the state images to display.

In the expand script I set the state image to by:
previous_image = TreeView_SetNodeStateImage('(L) TreeView0',new_node,2);
and in the dblclick script I try to togle it:
if TreeView_GetNodeStateImage('(L) TreeView0', node_ID) = 1 then
previous_image = TreeView_SetNodeStateImage('(L) TreeView0',node_ID,2);
{previous_image = TreeView_SetNodeStateImage('(L) TreeView0',node_ID,2);}
else
previous_image = TreeView_SetNodeStateImage('(L) TreeView0',node_ID,1);
{previous_image = TreeView_SetNodeStateImage('(L) TreeView0',node_ID,1);}
end if;
It has to be a step when I create my chunk file but I'm just not seeing it.
I'm just using the steps decribed in http://support.microsoft.com/kb/894700 to create my cnk file.