Link to home
Start Free TrialLog in
Avatar of yarek
yarekFlag for France

asked on

delphi shelltreeview checkbox

drop a shelltreeview on a form (from samples components) and add:

procedure TForm1.FormCreate(Sender: TObject);
var
  dwStyle : DWord;
begin
  dwStyle := GetWindowLong(ShellTreeView1.Handle,GWL_STYLE);
  dwStyle := dwStyle or OBM_CHECKBOXES;
  SetWindowLong(ShellTreeView1.Handle,GWL_STYLE,dwStyle);  
end;

It displays Checkboxes and NOW...
how to get the CHECKED folders ?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of mahdiparak
mahdiparak

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of adm_adamlee
adm_adamlee

I recommend Virtual shell tool
http://www.mustangpeak.net/
it is powerful, with checkbox, easy to get checked folders.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you think you've googled enough, google some more ;)
Oh, and you'll need CommCtrl in the uses clause.
Avatar of Lukasz Zielinski
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup Zone:
split between TName {http:#17495453} and mahdiparak {http:#17467478}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

ziolko
Experts Exchange Cleanup Volunteer