You can create a panel and its background image named bmap more than one way.
The static one:
BMAP* compass_map = "compass.pcx";
PANEL* aircraft_pan =
{
bmap = compass_map; // compass_map as panel background
flags = SHOW;
}
The dynamic one:
PANEL* splashscreen;
splashscreen.bmap = bmap_create("splash.pcx");
I think there are more ways to create a panel and assign a bmap to it. Just read the manual careful. All may examples based on the manual's examples.
Just one more dynamic example (from my project):
#define PAN_MENUS_SUM 3
PANEL* pan_menus[PAN_MENUS_SUM];
pan_menus[1]=pan_create(NULL,2);
pan_menus[1].bmap = bmap_create("foo.jpg");