From: "paul.gerfen" Newsgroups: comp.os.msdos.djgpp Subject: Allegro in windows Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4132.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4132.1200 Message-ID: Date: Sun, 17 Sep 2000 00:33:40 +0100 NNTP-Posting-Host: 62.252.165.80 X-Complaints-To: abuse AT ntlworld DOT com X-Trace: news6-win.server.ntlworld.com 969146792 62.252.165.80 (Sun, 17 Sep 2000 00:26:32 BST) NNTP-Posting-Date: Sun, 17 Sep 2000 00:26:32 BST Organization: ntlworld News Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, Firstly - sorry its not a specific question about DJGPP but I`m really stuck on a problem and could do with a helping hand. I`m writing a little APP using allegro. I`m setting the full-screen up using the directx driver (640x480 hicolour), all works fine. I`ve recently stubbled upon the windows driver which sets my program running in a window on the desktop. Although its not a proper coded w32 it still runs perfectly. Its like being able to program in DOS but being able to get in running in windows. The only problem being that I cant shut it down with the 'x'. The minimize button works but not the close button. As i`m not properly coding for w32, I guess it isnt being polled for it. At the moment the only way of closing my program is by putting a quit button in the actual program. Does anyone please know of a way I can poll for the close button without resorting to w32 code or changing my programs code completely. Please Help ! Paul JG paul DOT gerfen AT ntlworld DOT com