MFC histogram

Why not display the histogram?

The steps are not correct. First of all, in the class wizard, add a WM_Paint message to the class of the dialog box, and then add the OnPaint () function, and then the code of this function will automatically jump out.

Then write again! ! ! When you are free, be sure to take a good look at the steps. .

There are some small problems

 

1. There is a problem with the format of str.Format (). At the beginning, the format of the character set in the project properties was changed, but it caused a problem with the following message:

Prompt error (error C2665: "AfxMessageBox": none of the 2 overloads can convert all parameter types)

So I changed back to unicode

It should be str.Format (_T ("% d"), 10);

Guess you like

Origin www.cnblogs.com/h694879357/p/12708734.html