标题:如何能直接添加 windows mediaplayer OLE控件 而不是手动?
取消只看楼主
zhken
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:11
帖 子:273
专家分:594
注 册:2012-9-21
结帖率:96.67%
已结贴  问题点数:10 回复次数:0 
如何能直接添加 windows mediaplayer OLE控件 而不是手动?
**

PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN
    **************************************************
*-- Form:         form1 (e:\xp2\temp3.scx)
*-- 父类:  form
*-- 基类:    form
*-- 时间戳:   04/18/20 06:36:11 PM
*
DEFINE CLASS form1 AS form


    Top = 0
    Left = 0
    Height = 233
    Width = 334
    DoCreate = .T.
    Caption = "Form1"
    Name = "Form1"


    ADD OBJECT olecontrol1 AS olecontrol WITH ;
        Top = 48, ;
        Left = 36, ;
        Height = 96, ;
        Width = 228, ;
        Visible = .T., ;
        Name = "Olecontrol1"


    ADD OBJECT command1 AS commandbutton WITH ;
        Top = 168, ;
        Left = 84, ;
        Height = 25, ;
        Width = 60, ;
        Caption = "Command1", ;
        Name = "Command1"


    PROCEDURE command1.Click
        thisform.Olecontrol1.url='temp.mp3'
    ENDPROC


ENDDEFINE
*
*-- EndDefine: form1
**************************************************
搜索更多相关主题的帖子: Top windows Form Name 添加 
2020-04-18 19:44



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-501117-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.165537 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved