PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: WM_CONTEXTMENU for TreeView control never fire ?  (Read 728 times)

Jean-pierre Leroy

  • Senior Member
  • ***
  • Posts: 469
  • expect nothing, be prepared for everything ...
WM_CONTEXTMENU for TreeView control never fire ?
« on: April 13, 2011, 10:46: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
Logged

Robert Eaton

  • Junior Member
  • **
  • Posts: 126
Re: WM_CONTEXTMENU for TreeView control never fire ?
« Reply #1 on: April 13, 2011, 11:30:36 AM »

Double right click seems to make it fire.  ???
Logged

Robert Eaton

  • Junior Member
  • **
  • Posts: 126
Re: WM_CONTEXTMENU for TreeView control never fire ?
« Reply #2 on: April 13, 2011, 07:28: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
Logged