发表评论(0)作者:we, 平台:VB6.0+Win98, 阅读:11715, 日期:2001-04-21
先加入一个frmsplash窗体,在其上加一个timer控件,interval=500
代码如下:
Private Declare Function 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) As Long
Const HWND_TOPMOST = -1
Const SWP_NOMOVE = &H2
Const SWP_NOSIZE = &H1
form_load()
SetWindowPos(pFrm.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE)
endsub
private sub timer1_timer()
static inti as integer
if inti=4 then
注释:加入主窗体
endif
if inti=6 then
unload frmsplash
endif
代码如下:
Private Declare Function 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) As Long
Const HWND_TOPMOST = -1
Const SWP_NOMOVE = &H2
Const SWP_NOSIZE = &H1
form_load()
SetWindowPos(pFrm.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE)
endsub
private sub timer1_timer()
static inti as integer
if inti=4 then
注释:加入主窗体
endif
if inti=6 then
unload frmsplash
endif