me.paintpicture picback.picture, 0, 0, frmmain.width, frmmain.height
else '如果为平铺
for j = 0 to frmmain.scaleheight step picback.scaleheight
for i = 0 to frmmain.scalewidth step picback.scalewidth
me.paintpicture picback.picture, i, j
next
next
end if
me.font.name = "楷体_gb2312"
me.forecolor = vbblue
me.font.size = 24
me.fontbold = true
me.currentx = frmmain.scalewidth - 3500
me.currenty = frmmain.scaleheight - 1000
me.print "咨询管理系统"
frmmain.picture = me.image
frmmain.backcolor = frmmain.backcolor - 1 '为了刷mdi窗口,否则背景不会改变
end sub
private sub form_load()
on error resume next
me.autoredraw = true
picback.autosize = true
end sub
option explicit
'模块代码
public type openfilename
lstructsize as long
hwndowner as long
hinstance as long
lpstrfilter as string
lpstrcustomfilter as string
nmaxcustfilter as long
nfilterindex as long
lpstrfile as string
nmaxfile as long
lpstrfiletitle as string
nmaxfiletitle as long
lpstrinitialdir as string
lpstrtitle as string
flags as long
nfileoffset as integer
nfileextension as integer
lpstrdefext as string
lcustdata as long
lpfnhook as long
lptemplatename as string
end type
public const ofn_longnames = &h200000
public const ofn_pathmustexist = &h800
public const ofn_filemustexist = &h1000
public const ofn_hidereadonly = &h4
public const ofn_explorer = &h80000
public const ofn_overwriteprompt = &h2
public declare function getopenfilename lib "comdlg32.dll" alias "getopenfilenamea" (popenfilename as openfilename) as long