emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Full screen mode on windows


From: Ivan Kanis
Subject: Full screen mode on windows
Date: Sat, 31 May 2008 13:16:55 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]