home *** CD-ROM | disk | FTP | other *** search
/ Microsoft DirectX SDK 7.0 / Dx7.bin / DXF / samples / multimedia / vbsamples / d3dim / src / fireworks / fireworksform.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-07-29  |  1.4 KB  |  48 lines

  1. VERSION 5.00
  2. Object = "{D0B8DDCE-E796-11D2-A21E-00C04F68AD33}#1.1#0"; "IMCONTROL.OCX"
  3. Begin VB.Form FireWorksForm 
  4.    Caption         =   "Fireworks"
  5.    ClientHeight    =   3345
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   4785
  9.    Icon            =   "FireWorksForm.frx":0000
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   223
  12.    ScaleMode       =   3  'Pixel
  13.    ScaleWidth      =   319
  14.    StartUpPosition =   3  'Windows Default
  15.    Begin DirectXIMControl.IMCanvas IMCanvas1 
  16.       Height          =   3255
  17.       Left            =   0
  18.       TabIndex        =   0
  19.       Top             =   0
  20.       Width           =   4695
  21.       _ExtentX        =   8281
  22.       _ExtentY        =   5741
  23.    End
  24. Attribute VB_Name = "FireWorksForm"
  25. Attribute VB_GlobalNameSpace = False
  26. Attribute VB_Creatable = False
  27. Attribute VB_PredeclaredId = True
  28. Attribute VB_Exposed = False
  29. Private Sub Form_Resize()
  30.     IMCanvas1.Width = FireWorksForm.ScaleWidth
  31.     IMCanvas1.Height = FireWorksForm.ScaleHeight
  32.     CleanUp
  33.     If UseRGB Then
  34.         IMCanvas1.InitWindowed "", "IID_IDirect3DRGBDevice"
  35.     Else
  36.         IMCanvas1.StartWindowed
  37.     End If
  38.     OneTimeSceneInit
  39.     InitDeviceObjects
  40. End Sub
  41. Private Sub Form_Unload(Cancel As Integer)
  42.     MustExit = True
  43. End Sub
  44. Private Sub IMCanvas1_NewDDraw()
  45.         OneTimeSceneInit
  46.         InitDeviceObjects
  47. End Sub
  48.