>You're right, it's probably something wrong I'm doing, but there is a
>chance it's something wrong with cross-compiler.
>Here's the relevant code (complete code in original post), for anyone
>familiar with treeview controls:
>Tree_g = CreateWindow (WC_TREEVIEW, NULL,
> TVS_HASBUTTONS | WS_VISIBLE | WS_BORDER | WS_CHILD,
> 10, 10, 100, 100, MainWin_g, (HMENU) 3, HInstance_g, NULL) ;
>dwStyle = (DWORD) GetWindowLongPtr (Tree_g, GWL_STYLE);
>dwStyle |= TVS_CHECKBOXES;
>SetWindowLongPtr (Tree_g, GWL_STYLE, (LONG_PTR) dwStyle);
Comparing with the first example I found on google
immediately suggested the hypothesis that the TVS_CHECKBOXES
flag is used in the extended style dword, not the style dword.
Best of luck.
The MSN Entertainment Guide to Golden Globes is here. Get all the scoop.
Get latest updates about Open Source Projects, Conferences and News.