CDialog and CPropertySheet authentication recommendations?

Could you tell me your way or give me a link to the best recommendations for checking the correctness of the dialogue and properties in the MFC application?

I have my own way of doing this, but I'm interested in any other opinion.

I heard that the MFC macros DDX_xxx and DDV_xxx (and the UpdateData () function) are not the best solution?

How about checking properties?

+3
source share
1 answer

I like to use the Model-View-Presenter option. A good illustration of this MFC-style practice is the "Modest Dialog " by Michael Persa.

Some principles:

  • ( ) , . /. , . , , "" .

  • . LimitedXXX. , LimitedString CString m_value, int m_maxLen, int m_minLen AllowedChars m_allowedChars. AllowedChars - , , , / , , .. , .

  • . , , , . , . , , .

  • , . . , , .

+3

Source: https://habr.com/ru/post/1710992/


All Articles