Mail Archives: djgpp/1996/10/29/05:38:17
From: | "Chris A. Triebel" <cat AT sun4 DOT iol DOT unh DOT edu>
|
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: | <Pine.SUN.3.91.961028212047.13154A-100000@sun4.iol.unh.edu>
|
NNTP-Posting-Host: | sun4.iol.unh.edu
|
Mime-Version: | 1.0
|
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;
}
- Raw text -