Click here to Skip to main content
15,113,855 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionImplementing a mathematical PI control for a reasonable "if" structure Pin
Md Mubdiul Hasan 18-Aug-21 19:37
MemberMd Mubdiul Hasan 18-Aug-21 19:37 
AnswerRe: Implementing a mathematical PI control for a reasonable "if" structure Pin
markkuk18-Aug-21 21:18
Membermarkkuk18-Aug-21 21:18 
GeneralRe: Implementing a mathematical PI control for a reasonable "if" structure Pin
Md Mubdiul Hasan 18-Aug-21 21:46
MemberMd Mubdiul Hasan 18-Aug-21 21:46 
AnswerRe: Implementing a mathematical PI control for a reasonable "if" structure Pin
Richard MacCutchan18-Aug-21 23:19
mveRichard MacCutchan18-Aug-21 23:19 
QuestionHandling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
ForNow30-Jul-21 5:07
MemberForNow30-Jul-21 5:07 
AnswerRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
Graham Breach30-Jul-21 5:40
MemberGraham Breach30-Jul-21 5:40 
GeneralRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
ForNow30-Jul-21 6:59
MemberForNow30-Jul-21 6:59 
GeneralRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
Graham Breach30-Jul-21 7:29
MemberGraham Breach30-Jul-21 7:29 
Here's the Windows docs page: TranslateAcceleratorA function (winuser.h) - Win32 apps | Microsoft Docs[^]

The function returns nonzero when it successfully translates the accelerator, which is when you should not pass the message through to the default handler. Your code is bypassing the default handler entirely when your h_accel and debug variables are set (without checking if the message was a translated keycode).
GeneralRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
ForNow30-Jul-21 8:23
MemberForNow30-Jul-21 8:23 
GeneralRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
Graham Breach30-Jul-21 9:17
MemberGraham Breach30-Jul-21 9:17 
GeneralRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
ForNow30-Jul-21 9:28
MemberForNow30-Jul-21 9:28 
GeneralRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
Graham Breach30-Jul-21 9:49
MemberGraham Breach30-Jul-21 9:49 
AnswerRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
Richard MacCutchan30-Jul-21 5:56
mveRichard MacCutchan30-Jul-21 5:56 
GeneralRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
ForNow30-Jul-21 6:11
MemberForNow30-Jul-21 6:11 
GeneralRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
Richard MacCutchan30-Jul-21 6:28
mveRichard MacCutchan30-Jul-21 6:28 
GeneralRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
Dave Kreskowiak30-Jul-21 7:10
mveDave Kreskowiak30-Jul-21 7:10 
GeneralRe: Handling KeyBoard messages/accelerators handling in MFC dialog based applications Pin
Richard MacCutchan30-Jul-21 7:15
mveRichard MacCutchan30-Jul-21 7:15 
QuestionDynamically creating CToolBar Pin
Benjamin Bruno30-Jul-21 4:54
MemberBenjamin Bruno30-Jul-21 4:54 
AnswerRe: Dynamically creating CToolBar Pin
Richard MacCutchan30-Jul-21 5:52
mveRichard MacCutchan30-Jul-21 5:52 
QuestionRGB image to CMYK gdi+ Pin
Gopi Nath15-Jul-21 23:25
MemberGopi Nath15-Jul-21 23:25 
AnswerRe: RGB image to CMYK gdi+ Pin
Richard MacCutchan17-Jul-21 7:15
mveRichard MacCutchan17-Jul-21 7:15 
AnswerRe: RGB image to CMYK gdi+ Pin
RedDk16-Oct-21 9:24
MemberRedDk16-Oct-21 9:24 
QuestionException handler Pin
Drugodrf14-Jul-21 7:39
MemberDrugodrf14-Jul-21 7:39 
AnswerRe: Exception handler Pin
Greg Utas14-Jul-21 10:15
mvaGreg Utas14-Jul-21 10:15 
AnswerRe: Exception handler Pin
SeeSharp214-Jul-21 11:31
MemberSeeSharp214-Jul-21 11:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.