home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
tool
/
various
/
barvbx
/
createbc.bas
< prev
next >
Wrap
BASIC Source File
|
1995-02-27
|
704b
|
21 lines
Type DOCINFO
cbSize As Integer
DocName As Long
Output As Long
End Type
Global Const PD_RETURNDC = &H100&
Global Const PD_PRINTSETUP = &H40&
Declare Function StartDoc Lib "GDI" (ByVal hDC As Integer, lpdi As DOCINFO) As Integer
Declare Function EndPage Lib "GDI" (ByVal hDC As Integer) As Integer
Declare Function EndDocAPI Lib "GDI" Alias "EndDoc" (ByVal hDC As Integer) As Integer
Declare Function StartPage Lib "GDI" (ByVal hDC As Integer) As Integer
Declare Function DeleteDC Lib "GDI" (ByVal hDC As Integer) As Integer
Sub CenterWindow (theForm As Form)
theForm.Top = (Screen.Height - theForm.Height) / 2
theForm.Left = (Screen.Width - theForm.Width) / 2
End Sub