//load a btimap
IF nID = 103
{
filter = "Bitmap Files (*.bmp)|*.bmp||";
filename = FILEREQUEST("Load Bitmap",this,1,filter,"bmp");
if len(filename)
{
CBitmap bmp;
if bmp.LoadFromFile(filename,0)
{
w = GetSystemMetrics(0);
h = GetSystemMetrics(1);
DrawRect(0,0,w,h,RGB(255,255,255),RGB(255,255,255));
size = bmp.GetSize();
bmp.Render(this,0,0,size.x,size.y);
}
else
MessageBox(this,"Unable to load image","Error");
}
}
