[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: [MD:2738] w32-send-sys-command



1>>>>> [meadow-develop : No.2738] にて
>>>>> "himi" = MIYASHITA Hisashi(宮下 尚:HIMI) <himi@xxxxxxxxxxx> さんは書きました:
himi> ふむ、こういうのどうでしょう?

himi> (w32-access-windows-intrinsic-facility
himi>    <CATEGORY> <CATEGORY-DEPENDENT-ARGS>...)
himi> This function is internal use only.  Don't call it directly.

himi> When CATEGORY is 'wm-syscommand, you can choose
himi>    SC-KEYMENU,
himi>    SC-MONITORPOWER,
himi>    SC-TASKLIST...
himi> as <CATEGORY-DEPENDENT-ARG>

himi> で、w32-activate-menubarは、Emacs Lisp Functionにすると。


以下の方針で実装しようと思うのですが、どうでしょうか?
特に、関数名や引数についてご意見ください。

(1) primitive function (@mw32fns.c)

(w32-access-windows-intrinsic-facility
 category category-dependent-args &optional optional-args frame)
  "This function is internal use only.  Don't call it directly.\n\
\n\
When CATEGORY is WM-SYSCOMMAND, you can choose\n\
   SC-KEYMENU,\n\
   SC-MONITORPOWER,\n\
   SC-TASKLIST,\n\
   SC-MAXIMIZE,\n\
   SC-RESTORE,\n\
as <CATEGORY-DEPENDENT-ARG>."


(2) elisp function (@meadow.el)

(w32-activate-menu-bar &optional frame)
  "Activate the menu bar in the frame FRAME.
If FRAME is omitted, the selected frame is used."

(w32-activate-start-menu)
  "Activate the start menu."

(w32-set-monitor-state state)
  "Sets the state of the monitor.
STATE can have the following values:
 low-power: the monitor is going to low power.
 shut-off: the monitor is being shut off."

(w32-maximize-frame &optional frame)
  "Maximize the frame FRAME.
If FRAME is omitted, the selected frame is used."

(w32-restore-frame &optional frame)
  "Restore the maximized frame FRAME.
If FRAME is omitted, the selected frame is used."

--
三好 雅則 mailto:miyoshi@xxxxxxxxxxxxxxxx
          http://www.boreas.dti.ne.jp/~miyoshi/ (Meadow2 のページ始めました)