Rarely used useful MFC classes
Did you know there exists a class called
1. CCheckListBox 2. CDragListBox 3. CComboBoxEx 4. CHotKeyCtrl 5. CMemoryState 6. CWaitCursor
Pretty useful classes, which you should use more for the purpose for which it’s designed instead of wasting time rolling out your own stuff. 😐
I’ve seen people trying to embed a tree in a combo box, which otherwise can be easily done through CComboBoxEx.
CHotKeyCtrl easily helps in setting up a hot key.
CWaitCursor is one of the easiest classes to use. If you are starting off on a short busy task then declare an object of CWaitCursor to change default cursor to hour glass wait cursor. Once object goes out of scope cursor will be restored back to normal. If scope is a problem then wrap the long function call in braces to force destruction of CWaitCursor object immediately after the call.
Well if none of the above satisfies your purpose then you have to roll out your own. 🙂