int my_bitmap_proc( int msg, DIALOG* d, int c ) { STACKTRACE; if ( msg == MSG_END && d->dp ) { destroy_bitmap( (BITMAP*)d->dp ); d->dp = NULL; } if ( msg != MSG_DRAW || d->dp ) return d_bitmap_proc( msg, d, c ); return D_O_K; }
int mil_status_proc(int msg, DIALOG *d, int c) { switch (msg) { case MSG_START: d->dp = datafile[MIL_OFF_BMP].dat; break; case MSG_READY: if (mil_is_on) d->dp = datafile[MIL_ON_BMP].dat; else d->dp = datafile[MIL_OFF_BMP].dat; return D_REDRAWME; } return d_bitmap_proc(msg, d, c); }