易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关问答:

vb如何调用Illustrator(此前Illustrator未启动)?

请教一下:我用vb写了一个调用Illustrator的测试程序,代码很简单:Private Sub Command1_Click()
Dim app As New Illustrator.Application
Dim doc As Illustrator.Document
Dim thislayer As Illustrator.Layer ......

如何用VB采集部分网页数据

要采集的页面:http://city.qzone.qq.com/html/user/searchpro.htm#mod=0&act=city&cd=120000&pg=1

我想把搜索出来的QQ都采集出来,该怎么做。看了下代码好像不是普通的那种,网址里把1改成2没用 ......

vb static

Private Sub fun()
  Static a As Integer
      A=a+1
  Print a;
End Sub
    Private Sub Command1_Click()
      Dim m As Integer
&n ......

关于vb模块函数的调用,请高手解答

请看看以下导出文本文件的模块函数,我应该怎么在按钮点击事件中实现调用。

Option Explicit

Public Function TabintoTxt(objConn As Object, TableName As String, Optional TextFileName As String) ......

VB能否把Control对象转为一个TEXTBOX对象?

VB能否把Control对象转为一个TEXTBOX对象?
VB.NET 有个CType函数,VB没有类似的?

只有转换变量的,似乎没发现有转换控件类型的


    Dim txt As Control
    Set txt = Text1
&n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号