[转] Two things you may not understand in VB6

xiaoxiao2021-03-06  50

Q: - What is the meaning of hwnd attribute in VB?

RE:

The Microsoft Windows operating system manages all windows by specifying a unique identification number (window handle or h WND) to each window. The operating system continuously monitors the signal of each window. The event can be generated by a manual operation such as a click mouse or pressing the button, or can be generated by the control of the program, and can even be generated by another window. You can see this property in the parameters of many API functions.

Q: Can you add the WAV file to an EXE file in VB? How to do it?

RE:

1, definition format for text resources

StringTable Begin 8001, "Your String1" 8002, "Your String2" End

Where 8001, 8002 is a text number, the calling method is as follows:

s = loadingresstring (8001)

2, the rc.exe file just when VB is just installed, it is not found to get the VB installation disk, and copy the RCDLL.DLL file at the same time.

3, other resource calls

Set image1.picture = loading ("resource", vbresbitmap) set me.icon = loadingRespicture ("Earth", vbresicon) set me.mouseicon = loadingrespicture ("BIGPOINT", VBRESCURSOR)

转载请注明原文地址:https://www.9cbs.com/read-109979.html

New Post(0)