Thanks for your help In solving my problem I try to add a button that can change the background of the dialog to a different color i using visual studio 2010 but i think its might be wrong way to do that
void PainterDlg::OnBnClickedButton7()
{
CBrush m_brush;
m_brush.CreateSolidBrush(RGB(255, 255, 255));
return m_brush;
}
Or it should look like this
void PainterDlg::OnBnClickedButton7()
{
CBrush m_brush;
m_brush.CreateSolidBrush(RGB(255, 255, 255));
return m_brush;
}
both ways are not work for me thankS in advance
WM_COMMAND
-handlers do not have a return value. Randomly returning objects will not do anything meaningful. Why don't you start by decomposing your problem into its constituents:1
Responding to user input.2
Changing the visual representation.