From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Kanis Newsgroups: gmane.emacs.devel Subject: Full screen mode on windows Date: Sat, 31 May 2008 13:16:55 +0200 Message-ID: <871w3ik9js.fsf@kanis.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212232820 2086 80.91.229.12 (31 May 2008 11:20:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 May 2008 11:20:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 31 13:21:01 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K2P8u-0005bb-G5 for ged-emacs-devel@m.gmane.org; Sat, 31 May 2008 13:21:00 +0200 Original-Received: from localhost ([127.0.0.1]:42830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2P88-0004Sr-IA for ged-emacs-devel@m.gmane.org; Sat, 31 May 2008 07:20:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K2P83-0004Sg-Ta for emacs-devel@gnu.org; Sat, 31 May 2008 07:20:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K2P82-0004SU-NM for emacs-devel@gnu.org; Sat, 31 May 2008 07:20:06 -0400 Original-Received: from [199.232.76.173] (port=47249 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2P82-0004SR-IV for emacs-devel@gnu.org; Sat, 31 May 2008 07:20:06 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:57087 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K2P82-0003Ve-Dt for emacs-devel@gnu.org; Sat, 31 May 2008 07:20:06 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1K2P7y-0005vN-U9 for emacs-devel@gnu.org; Sat, 31 May 2008 11:20:02 +0000 Original-Received: from pir44-1-89-87-99-142.dsl.club-internet.fr ([89.87.99.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 May 2008 11:20:02 +0000 Original-Received: from expire-by-2008-06-06 by pir44-1-89-87-99-142.dsl.club-internet.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 May 2008 11:20:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pir44-1-89-87-99-142.dsl.club-internet.fr Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAPFBMVEUAAABIPTwvJSaTgX38 +PQRCAqxnp339/92Z2bLvMAFAAT///8bEBLp5eny8uvd1NNcUFQVABUIAAj///carFalAAAB10lE QVRIie2U25brIAiGUaLxGIx9/3cd0GmnjXTW7sW+G9q1kiAfEPkNwMeWP7I/4Mcq3W9i/ReA7DmJ WCD8Angz01GBGYcdAOXmeBR6ASzYkbixt/A1yFyFRAtmW4HDclzkQgAdypYjXztXoJGgrsBuONDU zUriRNxY4p+vpzybYwWkdYAWp8R8m9dg4N7ZFbhZaQFmABT3IlHUXlpaWm34UtSABiuR0nAZdQ4N FGJ6vD64a3i/P/eqAqi9wWBa1oAqA0hXIAlS1Aqjo977pa+RIijAZpSOoJgxj7KtAAFY34oJLAmU DXPBO2hbjBF/enoC/CjMmbwLQ6lBBD/kG6Erg+M9oryz5XjsMhOfd/GzgyD5FeCQyCFC8N/IdPf9 nkuTRhvbvY8acjbBCS9QLWoFznlyyCZAHVtzzrSVVzQAeQx2+ucZkwkjYpB5OloBmqchBGwnFIwU nuSnqZWV8dCFPXKk+RGYk0cF4J6cY0akQzFAx6MBK6lzmlPVEmvDDTlxX65ETMWMAumdWmU70pSe 8ceRySQnjjQ+Phrwrb/OWvIR0WNxU9yU3wAiHng6pvOF8JbfA/nmx74/EIP0sr4AbAeRx9CaCUT1 dlnUgF/tD/hfwIf2BQZnSFIDGmgZAAAAAElFTkSuQmCC User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:uSKbCVf+/1PLmp+tyoYN9TtHFr0= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:98126 Archived-At: 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