Possible problem with setNotifyHandler
- Posted by Jonas Temple <jtemple at yhti.net> Nov 25, 2003
- 412 views
Derek, I may be either using this incorrectly or have found a possible problem regarding notification handlers. I have a main program that uses: void = setNotifyHandler( NM_RCLICK, routine_id("DoNM_RCLICK")) to handle when the user right clicks in a tree view. I have now developed a dialog to search for objects that also contains the same call (also contains the same routine, but not defined as a global). When the dialog is called all right clicks are working fine. Upon returning from the dialog to the main window the right click notification no longer happens in the main program but works fine in subsequent calls to the dialog. In the main program after the call to the dialog procedure I added: void = setNotifyHandler( NM_RCLICK, routine_id("DoNM_RCLICK")) and the right clicks began working again in the main program. Am I doing something wrong? Thanks, Jonas