home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / CODIGO_1 / CANCELBT / MODELESS.FRM (.txt) < prev   
Encoding:
Visual Basic Form  |  1994-01-28  |  1.0 KB  |  37 lines

  1. VERSION 2.00
  2. Begin Form CanDialog 
  3.    Caption         =   "Modeless Cancel Dialog"
  4.    ClientHeight    =   1425
  5.    ClientLeft      =   1650
  6.    ClientTop       =   2415
  7.    ClientWidth     =   4095
  8.    Height          =   1830
  9.    HelpContextID   =   102
  10.    Left            =   1590
  11.    LinkTopic       =   "Form2"
  12.    ScaleHeight     =   1425
  13.    ScaleWidth      =   4095
  14.    Top             =   2070
  15.    Width           =   4215
  16.    Begin CommandButton Command1 
  17.       Caption         =   "&Cancel"
  18.       Height          =   495
  19.       Left            =   1380
  20.       TabIndex        =   0
  21.       Top             =   480
  22.       Width           =   1215
  23.    End
  24. DefInt A-Z
  25. Declare Sub SetWindowWord Lib "User" (ByVal hWnd, ByVal nCmd, ByVal nVal)
  26. Const SWW_HPARENT = -8
  27. Sub Command1_Click ()
  28.     MainForm.Text1.Tag = "Canned!"
  29.     Unload Me
  30. End Sub
  31. Sub Form_Load ()
  32.    SetWindowWord hWnd, SWW_HPARENT, MainForm.hWnd
  33. End Sub
  34. Sub Form_Unload (Cancel As Integer)
  35.    SetWindowWord hWnd, SWW_HPARENT, 0
  36. End Sub
  37.