Mail Archives: djgpp/1997/08/24/07:19:56
From: | Regis BOSSUT <bossut AT isen DOT fr>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Q: How to programmatically set a dos window to full screen ?
|
Date: | Thu, 21 Aug 1997 11:00:06 +0200
|
Organization: | IEMN - Dépt ISEN - Acoustique
|
Lines: | 22
|
Message-ID: | <33FC0396.526F@isen.fr>
|
References: | <33FAFCDB DOT 2B6B AT isen DOT fr>
|
NNTP-Posting-Host: | hpac1.isen.fr
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Regis BOSSUT wrote:
>
> <context deleted>
>
> Is there a programmatic solution to automatically set the dos box to
> full screen inside my application ?
>
I'm happy to answer YES to my own question :
#include <dpmi.h>
__dpmi_regs regs;
regs.x.ax = 0x168b;
regs.x.bx = 0;
__dpmi_int(0x2f,®s);
This is documented in Ralph Brown's interrupt list as available for
Windows 3.1, but still seems to work with Win95.
By the way, I don't know how to reverse the behavior...
/Régis Bossut
- Raw text -