Home > database >  Pb by ole inserted into the Windows of the common control toolbar, buttonclick code execution of 2 t
Pb by ole inserted into the Windows of the common control toolbar, buttonclick code execution of 2 t

Time:10-14

Here to download the routine code http://blog.csdn.net/aasmfox/article/details/8740182? LocationNum=5


In the PB by inserting the Microsoft OLE toolbar control 6.0 sp6, this code executes in the buttonclick toolbar control 2 times, I don't know what reason be?






Source: after download pictures, change the suffix for zip can


https://img.codepudding.com/202010/146752140926312.png


CodePudding user response:

Look at the source, itself has no problems, estimation is controls and pb compatibility problem, if you want to use, suggest to write their own code block the problem of the second call


Such as increasing the instance variables ib_once=true, in a click

If ib_once then
.
End the if

Then call a post event ib_once assignment to true
  • Related