Note that %BN_CLICKED and %STN_CLICKED are both zero, and both arrive under %WM_COMMAND. So, if both of the former two occur in a Select Case structure under %WM_COMMAND, only the first of the two will respond. Other than to allocate a different value to one or the other, one simply has to omit the second Case statement so that it resorts under the first, and then all is well. One could also say
"Case %BN_CLICKED, %STN_CLICKED"
which is the same as "Case 0, 0".
Being stupid, I wasted some two hours before discovering this.
"Case %BN_CLICKED, %STN_CLICKED"
which is the same as "Case 0, 0".
Being stupid, I wasted some two hours before discovering this.
Comment