06-04-2009, 01:37 AM
Hi All,
I have a dialog with a Combo box. The CB box usually displays the last chosen item, which triggers certain actions via a statement int he dialog. But I need to on a regular basis "reset" the combo box field to a blank or a certain item. I can do this easily with a function but this triggers the CBN_SELCHANGE
Is there any easy way to disable CBN_SELCHANGE when the CB item is changed via CB_SelectItem. Currently I have a global variable that I set to 1 at the time of the condition that requires a reset (i.e. change in document being evaluated). In the macro being triggered, there is a line that checks if the global variable is 1, if so it changes it back to 0 and returns.
This works fine but it seems roundabout and I am always looking for ways to cut down on the number of global variables I am using.
Any ideas?
Stuart
I have a dialog with a Combo box. The CB box usually displays the last chosen item, which triggers certain actions via a statement int he dialog. But I need to on a regular basis "reset" the combo box field to a blank or a certain item. I can do this easily with a function but this triggers the CBN_SELCHANGE
Is there any easy way to disable CBN_SELCHANGE when the CB item is changed via CB_SelectItem. Currently I have a global variable that I set to 1 at the time of the condition that requires a reset (i.e. change in document being evaluated). In the macro being triggered, there is a line that checks if the global variable is 1, if so it changes it back to 0 and returns.
This works fine but it seems roundabout and I am always looking for ways to cut down on the number of global variables I am using.
Any ideas?
Stuart