Microsoft Visual C++ è MFC. Ïðîãðàììèðîâàíèå äëÿ Win95 è WinNT

         

Òàáëèöà àêñåëåðàòîðîâ


×òîáû óñêîðèòü äîñòóï ê ñòðîêàì ìåíþ ïðèëîæåíèÿ, MFC AppWizard äîáàâëÿåò â ôàéë ðåñóðñîâ òàáëèöó àêñåëåðàòîðîâ. Êîãäà ïîëüçîâàòåëü íàæèìàåò êîìáèíàöèþ êëàâèø, ïðåäñòàâëåííóþ â òàáëèöå àêñåëåðàòîðîâ, ïðèëîæåíèþ ïîñòóïàåò êîìàíäíîå ñîîáùåíèå ñ ñîîòâåòñòâóþùèì èäåíòèôèêàòîðîì.

//////////////////////////////////////////////////////////////

// Òàáëèöà àêñåëåðàòîðîâ

IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE

BEGIN

      "N",                  ID_FILE_NEW,                       VIRTKEY,CONTROL

      "O",                  ID_FILE_OPEN,                     VIRTKEY,CONTROL

      "S",                   ID_FILE_SAVE,                      VIRTKEY,CONTROL

      "P",                   ID_FILE_PRINT,    VIRTKEY,CONTROL

      "Z",                   ID_EDIT_UNDO,                    VIRTKEY,CONTROL

      "X",                  ID_EDIT_CUT,                       VIRTKEY,CONTROL

      "C",                   ID_EDIT_COPY,                    VIRTKEY,CONTROL

      "V",                   ID_EDIT_PASTE,   VIRTKEY,CONTROL

      VK_BACK,       ID_EDIT_UNDO,                    VIRTKEY,ALT

      VK_DELETE,   ID_EDIT_CUT,                       VIRTKEY,SHIFT

      VK_INSERT,    ID_EDIT_COPY,                    VIRTKEY,CONTROL

      VK_INSERT,    ID_EDIT_PASTE,   VIRTKEY,SHIFT

      VK_F6,       ID_NEXT_PANE,                         VIRTKEY

      VK_F6,             ID_PREV_PANE,                    VIRTKEY,SHIFT

END



Ñîäåðæàíèå ðàçäåëà