I got a program with some checkbox controls on wm_create (BS_AUTOCHECKBOX to be exact).

I need my program to check them if checkvar=1 and if checkvar=0 they have to be unchecked.

Anyone has any ideas?