PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Jean-pierre Leroy on April 13, 2011, 11:16:27 AM

Title: WM_CONTEXTMENU for TreeView control never fire ?
Post by: Jean-pierre Leroy on April 13, 2011, 11:16:27 AM
Dear FF Users,

I tried to create a ContextMenu when the user right-click on a TreeView control.

With ListView control I use the WM_CONTEXTMENU as well and it works well, but with TreeView control the message never fired ?

Is there any reason for that.

Thanks,
Jean-Pierre
Title: Re: WM_CONTEXTMENU for TreeView control never fire ?
Post by: Robert Eaton on April 13, 2011, 12:00:36 PM
Double right click seems to make it fire.  ???
Title: Re: WM_CONTEXTMENU for TreeView control never fire ?
Post by: Robert Eaton on April 13, 2011, 07:58:25 PM
Still not sure why WM_CONTEXTMENU doesn't seem to fire, but the second example in this link works using hittest.

http://www.powerbasic.com/support/pbforums/showthread.php?t=13144 (http://www.powerbasic.com/support/pbforums/showthread.php?t=13144)