Trying to detect focus on a tab gadget
Posted: Thu Dec 25, 2003 4:46 pm
I'm trying to detect a focus change on a tab in a panel gadget but am unable to do so thus far.. I want something to happen *only* when the tab receives the focus so I can't just check the panel's state in the WaitWindowEvent() loop.
Trying this :
That doesn't work and I can't seem to find anything like the #EN_SETFOCUS message for edit controls..
Any suggestions are appreciated! Thanks!
Trying this :
Code: Select all
If message = #WM_NOTIFY
*MyPanel.NMHDR = lParam
If *MyPanel\code = #TCN_SELCHANGE
DoSomething()
EndIf
That doesn't work and I can't seem to find anything like the #EN_SETFOCUS message for edit controls..
Any suggestions are appreciated! Thanks!