VB 窗口和控件类名是否自动销毁?
昨天谢谢 chenhui530 帮我解决了窗口和类名的动态随机生成。 但现在有一个疑问,就是所有窗口和控件改成的随机类名后,是否在程序关闭时自动销毁了呢?
如果卸载窗体时加上END,会自动进行清理。 最好养成 RegisterClass 和 UnregisterClass 配对使用的习惯。 引用 Windows NT/2000/XP: No window classes registered by a DLL are unregistered when the DLL is unloaded. A DLL must explicitly unregister its classes when it is unloaded. 问题是我的控件太多,如果是一个窗口的话,结束时还好办! 既然是随机,必定各不相同,每窗口关闭时负责注销自己相关的类名就可以了。引用 最好养成 RegisterClass 和 UnregisterClass 配对使用的习惯。 http://msdn.microsoft.com/en-us/library/ms633586(VS.85).aspx Windows NT/2000/XP: No window classes registered by a DLL are unregistered when the DLL is unloaded. A DLL must explicitly unregister its classes when it is unloaded. 这效果怎么出来的? 哦 猜出来了 估计是用quote
相关问答:
为什么C写的DLL文件C、PB能调用VB不能调用? VB里为什么有的DLL直接通过引用可以使用?有的需要通过declare申明外部函数?这些DLL有什么差别? 1、为什么PB能通过DECLARE声明而VB不行? 2、如果这个dll中的 ......
login.aspx.vb: Public ReadOnly Property nameT() As String Get Return TextBox1.Text &nb ......
大家好,问个vb打印问题 printer.print "dsff" ..... .... Printer.EndDoc 打印成功后我将执行 sqlstr = "update vc_yh set pr=' 已打印 ', ......
请教一下:我用vb写了一个调用Illustrator的测试程序,代码很简单:Private Sub Command1_Click() Dim app As New Illustrator.Application Dim doc As Illustrator.Document Dim thislayer As Illustrator.Layer ......
Private Sub Command1_Click(Index As Integer) Select Case Index Case 3 ’刪除 Dim YesNo As String &nbs ......