🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #1751

vb��gdi��ʾwmf������

#1751
From: i786
Date: Wed, 25 Mar 1998 00:00
26 lines
1369 bytes
                   vb��wmf�ļ�����ʾ����

    form1����picture1, command1��command2, ��Ԥ��picture1��
��gdi������ʾc:\yinyang.wmf, ��������:

Private Sub Command1_Click()
  Dim hMF, MyReturn As Long
  hMF = GetMetaFile("c:\yinyang.wmf")
  MyReturn = PlayMetaFile(Form1.Picture, hMF)
End Sub

Private Sub Command2_Click()
  Dim MyReturn As Long
  MyRreturn = DeleteMetaFile(hMF)
  End
End Sub

�����õ�����������:
Declare Function GetMetaFile Lib "gdi32" Alias "GetMetaFileA" (ByVal
lpFileName As String) As Long
Declare Function PlayMetaFile Lib "gdi32" (ByVal hdc As Long, ByVal hMF
As Long) As Long
Declare Function DeleteMetaFile Lib "gdi32" (ByVal hMF As Long) As Long

����������, ������command1ʱ, û��Ԥ�ڵ�ͼ����ʾ, �������?
Technical Details
Message-ID: <35185A1E.D1B9BC1E@usa.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fc86e,37473dd3299adafc,start
X-Google-Attributes: gidfc86e,public
From: i786 <i786@usa.net>
Subject: vb��gdi��ʾwmf������
Date: 1998/03/25
Message-ID: <35185A1E.D1B9BC1E@usa.net>
X-Deja-AN: 337369673
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
Organization: Net Ease
Mime-Version: 1.0
Newsgroups: cn.bbs.comp.program