NT Emacs Utility Program - EMWINMSG.EXE Author: Theodore A. Jump (tjump@spgs.com) Revision: 1.0 (8/5/97) Usage: (shell-command (format "emwinmsg.exe SHOW %s" "OPTION")) Building: You will need a Microsoft NMAKE driven compiler for Win32, it should work with either MSVC 4.x or 5.x. The only thing you should have to do is the following (assuming you have the proper environment variables set for using the compiler from the command line): nmake /f nmake.mak Description: Expose the Win32 "ShowWindow" API to the elisp programmer. This program currently allows elisp code to call upon this api to interactively operate on the currently visible emacs frame. I built this so that I could call if near the end of my .emacs file to maximize my NTemacs frame. ;-) The currently supported options are: hide SW_HIDE maximize SW_MAXIMIZE minimize SW_MINIMIZE restore SW_RESTORE show SW_SHOW showdefault SW_SHOWDEFAULT showmaximized SW_SHOWMAXIMIZED showminimized SW_SHOWMINIMIZED showminnoactive SW_SHOWMINNOACTIVE showna SW_SHOWNA shownoactivate SW_SHOWNOACTIVATE normal SW_SHOWNORMAL Limitations: I have no idea what will happen when you have multiple frames on display, I'm guessing that emwinmsg will get the first that was created but there's no guarantee. Other Notes: IF there was a way for elisp code to change the Win32 window caption to something specific, it would then be trivial to modify emwinmsg to search for a window with a specific name with which to interact. Currently it locates a window of class "Emacs" just like the ehelp utility previously published.