这个问题很难么?现在面包太多,很少人去动脑子自己做点什么。我给你个思路
1。把播放列表做成一个ini.或者其他文件。
2。在程序中放入一个timer控件,每隔一秒读取该文件。
3。如果程序重复执行,则
If App.PrevInstance Then
把打开文件的路径写入该列表。
end
End If
这样式不是就ok了,当让你也可以采用复杂的windows消息。那就去查api把。
windows api
SendMessage
GetMessage
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Declare Function GetMessage Lib "user32" Alias "GetMessageA" (lpMsg As MSG, ByVal hwnd As Long, ByVal wMsgFilterMin As Long, ByVal wMsgFilterMax As Long) As Long
我不是高手只是个菜鸟而已。
1。把播放列表做成一个ini.或者其他文件。
2。在程序中放入一个timer控件,每隔一秒读取该文件。
3。如果程序重复执行,则
If App.PrevInstance Then
把打开文件的路径写入该列表。
end
End If
这样式不是就ok了,当让你也可以采用复杂的windows消息。那就去查api把。
windows api
SendMessage
GetMessage
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Declare Function GetMessage Lib "user32" Alias "GetMessageA" (lpMsg As MSG, ByVal hwnd As Long, ByVal wMsgFilterMin As Long, ByVal wMsgFilterMax As Long) As Long
我不是高手只是个菜鸟而已。
[此贴子已经被作者于2006-11-15 13:49:19编辑过]