From: "Chris A. Triebel" Newsgroups: comp.os.msdos.djgpp Subject: button/bitmap for allegro Date: Mon, 28 Oct 1996 21:21:53 -0500 Organization: University of New Hampshire - Durham, NH Lines: 29 Message-ID: NNTP-Posting-Host: sun4.iol.unh.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp As I promised ... hope this works for everyone. int A_bitmap_proc(int msg,DIALOG *d, int c) { BITMAP *b=(BITMAP*)d->dp; switch(msg) { case MSG_WANTFOCUS: { return D_WANTFOCUS; } case MSG_GOTFOCUS: { return D_REDRAW; } case MSG_DRAW: { show_mouse(0); blit(b,screen,0,0, d->x, d->y, d->w, d->h); show_mouse(screen); break; } } return D_O_K; }