1. Add members in class files: Haccel AccelTable;
2, read shortcuts when initialization: acceltable = loading (), makeintresource (iDR_accelerator1);
3, BOOL spanFractalDlg :: PreTranslateMessage (MSG * pMsg) {if (accelTable) {if (:: TranslateAccelerator (m_hWnd, accelTable, pMsg)) {return (TRUE);}} return CDialog :: PreTranslateMessage (pMsg);}
Hey, this is not my original, just I found on Microsoft's website.