PDA

View Full Version : Message



Pipes
13-04-2010, 00:52
Hello thinBasic users,

I can't figure it out. What callback message is sent when someone clicks a check box used inside the tree view control? (%TVS_CHECKBOXES)

Pipes

ErosOlmi
13-04-2010, 07:56
%TVS_CHECKBOXES is the style to be used in order to have checkbox in treview
http://msdn.microsoft.com/en-us/library/bb760013(VS.85).aspx

Not sure about what message is sent when checkbox change but I'm pretty sure it will be in form of notification message %WM_NOTIFY.
At that point my idea is that you can check %TVN_ITEMCHANGED notification and CBLPARAM should contain a PTR to a NMTVITEMCHANGE (http://msdn.microsoft.com/en-us/library/bb773425(v=VS.85).aspx) structure.
http://msdn.microsoft.com/en-us/library/bb773526(v=VS.85).aspx

Never tested. If I will have some spare time I will try to check if it works as expected

Eros

Michael Clease
13-04-2010, 09:57
I dont have much time but heres what your looking for from PB.

http://www.powerbasic.com/support/pbforums/showthread.php?t=41947