|
#!perl -w
use Win32::GUI qw( WS_POPUP WS_CAPTION WS_THICKFRAME WS_EX_TOPMOST ) ; my $splashimage = new Win32::GUI::Bitmap( 'SPLASH' );
unless ( $splashimage ) {
$splashimage = new Win32::GUI::Bitmap( "$FindBin::Dir/SPLASH.bmp" );
}
die 'could not find splash bitmap' unless $splashimage ;
my ( $width , $height ) = $splashimage ->Info();
my $splash = new Win32::GUI::Window (
-name => "Splash" ,
-text => "Splash" ,
-height => $height ,
-width => $width ,
-left => 100,
-top => 100,
-addstyle => WS_POPUP,
-popstyle => WS_CAPTION | WS_THICKFRAME,
-addexstyle => WS_EX_TOPMOST
);
my $bitmap = $splash ->AddLabel(
-name => "Bitmap" ,
-left => 0,
-top => 0,
-width => $width ,
-height => $height ,
-bitmap => $splashimage ,
);
$splash ->Center();
$splash ->Show();
Win32::GUI::DoEvents();
my $mainwin = new Win32::GUI::Window (
-name => "Main" ,
-text => "Main window" ,
-height => 400,
-width => 500,
);
$mainwin ->Center();
sleep (2);
$mainwin ->Show();
Win32::GUI::DoEvents();
sleep (1);
$splash ->Hide;
Win32::GUI::Dialog();
|