home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 4.00 Begin VB.Form Form2 BorderStyle = 3 'Fixed Dialog Caption = "MSComm Terminal" ClientHeight = 1296 ClientLeft = 1776 ClientTop = 2892 ClientWidth = 5220 ControlBox = 0 'False BeginProperty Font name = "MS Sans Serif" charset = 0 weight = 400 size = 7.8 underline = 0 'False italic = 0 'False strikethrough = 0 'False EndProperty Height = 1656 Left = 1728 LinkTopic = "Form2" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 1296 ScaleWidth = 5220 Top = 2580 Width = 5316 Begin VB.CommandButton Command1 Cancel = -1 'True Caption = "Cancel" BeginProperty Font name = "MS Sans Serif" charset = 0 weight = 400 size = 7.8 underline = 0 'False italic = 0 'False strikethrough = 0 'False EndProperty Height = 372 Left = 2160 TabIndex = 1 Top = 840 Width = 972 End Begin VB.Label Label1 BeginProperty Font name = "MS Sans Serif" charset = 0 weight = 400 size = 7.8 underline = 0 'False italic = 0 'False strikethrough = 0 'False EndProperty Height = 492 Left = 120 TabIndex = 0 Top = 120 Width = 4932 End Attribute VB_Name = "Form2" Attribute VB_Creatable = False Attribute VB_Exposed = False '************************************************* ' CANSEND.FRM is a dialog box that allows the user ' to cancel a "Transmit Text File" operation. This ' is a modeless form that acts modal while allowing ' other processes to continue. '************************************************* DefInt A-Z Option Explicit #If Win32 Then Private Declare Sub SetWindowPos Lib "user32" (ByVal hWnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) #Else Private Declare Sub SetWindowPos Lib "USER" (ByVal hWnd%, ByVal hWndInsertAfter%, ByVal X%, ByVal Y%, ByVal cx%, ByVal cy%, ByVal wFlags%) #End If Const SWP_NOMOVE = &H2 Const SWP_NOSIZE = &H1 Private Sub Command1_Click() CancelSend = True End Sub Private Sub Form_Activate() ' Make this form a floating window that is always on top. SetWindowPos hWnd, -1, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE End Sub Private Sub Form_Deactivate() If Not CancelSend Then Form2.Show End If End Sub