I was using this book called: "Teach yourself visual C++ 6 in 21 days". It's a hands on tutorial for MFC. I used it, and had to stop cuz I was stuck. It told me to make an event handler for the dialog that would handle any change in the currently selected radio button.
This is the event handler:
Never mind the code within it, just know that its supposed to do that when the user clicks on a radio button.
void CGraphicsDlg: nRSelection()
{
//Synchronize the data
UpdateData(TRUE);
//Repaint the second dialog
m_dlgPaint.Invalidate();
}
I was doubtful, but I tried it anyway. It doesn't work. All event handlers I've used from the book up till now have been "attached" to messages using the class wizard. I've looked in the message maps, but there's no WM_RSELECTION message. What am I to do?
This is the event handler:
Never mind the code within it, just know that its supposed to do that when the user clicks on a radio button.
void CGraphicsDlg: nRSelection()
{
//Synchronize the data
UpdateData(TRUE);
//Repaint the second dialog
m_dlgPaint.Invalidate();
}
I was doubtful, but I tried it anyway. It doesn't work. All event handlers I've used from the book up till now have been "attached" to messages using the class wizard. I've looked in the message maps, but there's no WM_RSELECTION message. What am I to do?