- Treeview with Checkboxes.
- Posted by CViniciusM on January 15th, 2004
Hello,
I have used the code below (into the oncreate method) to get a
treeview with checkboxes:
HWND handle = TreeView1->Handle;
value = GetWindowLong(handle, GWL_STYLE);
if(value)
{
value = SetWindowLong(handle, GWL_STYLE, value | TVS_CHECKBOXES);
}
But how to verify/change the state of the checkboxes manually? Any
ideas, please?
Thanks in advance, Vinicius.
P.S.: I'm using Borland C++Builder 3 Professional.
- Posted by Alex Blekhman on January 15th, 2004
"CViniciusM" <cviniciusm@uol.com.br> wrote in message
news:73464201.0401150255.24b27155@posting.google.c om...
TreeView_GetCheckState macro or TVM_GETITEMSTATE message.
- Posted by CViniciusM on January 15th, 2004
"Alex Blekhman" <tkfx.DONTSENDSPAM.@yahoo.com> wrote in message news:<bu66mi$e0bv6$1@ID-54051.news.uni-berlin.de>...
Could you send me the declaration of this macro and the value of this
message both such as on comctl32.h), please?
- Posted by CViniciusM on January 17th, 2004
cviniciusm@uol.com.br (CViniciusM) wrote in message news:<73464201.0401151615.442f9dbb@posting.google. com>...
I get the answer on MSDN library. There are two examples
TreeView_GetCheckState and TreeView_SetCheckState that resolves my
problem.