使用API改变树型框背景颜色'PrivateDeclareFunctionSendMessageLib"user32"Alias"SendMessageA"(ByValhwndAsLong,ByValwMsgAsLong,ByValwParamAsLong,ByVallParamAsLong)AsLong'ConstTV-FIRST=&H1100'ConstTVM-SETBKCOLOR=TV_FIRST+29'然后再作如下调用:'CallSendMessage(TreeView1.hwnd,TVM-SETBKCOLO