all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Full screen mode on windows
@ 2008-05-31 11:16 Ivan Kanis
  2008-05-31 12:53 ` joakim
  0 siblings, 1 reply; 18+ messages in thread
From: Ivan Kanis @ 2008-05-31 11:16 UTC (permalink / raw)
  To: emacs-devel

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 





^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2008-06-04 17:57 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-31 11:16 Full screen mode on windows Ivan Kanis
2008-05-31 12:53 ` 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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.