mt4 dialog box panel is not a bug, create a simple dialog box, compile on mt5 everything is fine, mt4 once switch cycle panel will change the wrong, the same code comes out different results

 
Calling the system gui library and creating a simple dialog program initializes fine on mt4, but once the chart cycle is switched several times, it will be wrong, while on mt5 there is no such problem, everything is fine

The code and images are in the attachment
Files:
mt4.png  124 kb
mt5.png  35 kb
test.mq4  11 kb
test.mq5  11 kb