Begging VB6.0, background music and avoid flashing problem (anxious !!!!)

xiaoxiao2021-03-06  40

1) Background music.. The system I use is XP SP2. I have read the article on the online music to make a background music. I tried it is not easy, I don't know why. Please advise. The following is an article that I saw online:

You are using VB 6.0, but the API functions you call are 16, of course, will not succeed. The correct way is as follows: to achieve by adding the following statement: Private Declare Function mciSendString Lib "winmm.dll" Alias ​​_ "mciSendStringA" (ByVal lpstrCommand As String, ByVal _ lpstrReturnString As Any, ByVal uReturnLength As Long, ByVal _ hwndCallback As Long) As Long 'If you want to play other files, modify this Private const song as string = "c: /win95/Media/canyon.mid" Play as follows: McInstring "Open" & Song & "Type Sequencer Alias ​​Canyon", _ 0 & , 0, 0 mciSendString "Play Canyon from 0", 0 &, 0, 0 stops: McISendstring "Close Canyon", 0 &, 0, 0 2) Eliminate the flash problem. I plan to play a GIF animation in VB, this animation is a pigeon, only the ability to incite wings, so I want to carry it with some controls (the best control can be transparent) and let the control The trajectory moves in the screen, but I found that as long as it is a transparent control, there is inevitable flashing problem. If the background color of the control is set to the background color of the Form, you can't flicker. Please teach what controls I should use, or how to solve it.

Thank you.

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

New Post(0)