unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ivan Kanis <expire-by-2008-06-06@kanis.fr>
To: emacs-devel@gnu.org
Subject: Full screen mode on windows
Date: Sat, 31 May 2008 13:16:55 +0200	[thread overview]
Message-ID: <871w3ik9js.fsf@kanis.fr> (raw)

Hello,

There is nice feature in Putty called full screen mode. It takes away
all windows decoration including the taskbar.

I would like to implement this feature natively on emacs. I have two
ideas for the api:

1) Either I make a function called w32-toggle-fullscreen and do all
the right thing in C,

2) Or I could expose the GetWindowLongPtr, SetWindowLongPtr and
SetWindowPos as lisp function and write the toggle in lisp.

Which approach is the most likely to get included?

For info here is the Putty code that does the job :

    /* Remove the window furniture. */
    style = GetWindowLongPtr(hwnd, GWL_STYLE);
    style &= ~(WS_CAPTION | WS_BORDER | WS_THICKFRAME);
    if (cfg.scrollbar_in_fullscreen)
	style |= WS_VSCROLL;
    else
	style &= ~WS_VSCROLL;
    SetWindowLongPtr(hwnd, GWL_STYLE, style);

    /* Resize ourselves to exactly cover the nearest monitor. */
	get_fullscreen_rect(&ss);
    SetWindowPos(hwnd, HWND_TOP, ss.left, ss.top,
			ss.right - ss.left,
			ss.bottom - ss.top,
			SWP_FRAMECHANGED);

Thanks for your feedbacks.
-- 
Ivan
http://kanis.fr

Youth is a wonderful thing. What a crime to waste it on children.
    -- George Bernard Shaw 





             reply	other threads:[~2008-05-31 11:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-31 11:16 Ivan Kanis [this message]
2008-05-31 12:53 ` Full screen mode on windows joakim
2008-05-31 13:13   ` Eli Zaretskii
2008-05-31 13:25     ` Lennart Borgman (gmail)
2008-05-31 13:52       ` Lennart Borgman (gmail)
2008-05-31 15:28         ` Eli Zaretskii
2008-05-31 15:50           ` Lennart Borgman (gmail)
2008-06-01  2:02     ` Jason Rumney
2008-05-31 18:25   ` Ivan Kanis
2008-05-31 21:11     ` Eli Zaretskii
2008-05-31 21:16       ` Tom Tromey
2008-06-01  1:30       ` Miles Bader
2008-06-01 10:05       ` Ivan Kanis
2008-06-03  6:53         ` Evans Winner
2008-06-03  7:01           ` dhruva
2008-06-03 20:56             ` Evans Winner
2008-06-03  7:23           ` Thien-Thi Nguyen
2008-06-04 17:57   ` Ivan Kanis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871w3ik9js.fsf@kanis.fr \
    --to=expire-by-2008-06-06@kanis.fr \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).