Using shortcuts in the Mode dialog

xiaoxiao2021-03-06  40

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.

转载请注明原文地址:https://www.9cbs.com/read-52110.html

New Post(0)