Multiple choice technology programming languages

The permitted ways to destroy a Windows object are

  1. CWnd Destroy member function

  2. Explicitly deleting with the delete operator.

  3. Manually closing the windows

  4. Calling CWnd::DestroyWindow or the Windows API DestroyWindow.

Reveal answer Fill a bubble to check yourself
B,D Correct answer
Explanation

Windows objects can be destroyed either by explicitly using the delete operator (which calls the destructor) or by calling the DestroyWindow API function (which destroys the window but not the C++ object). The CWnd::DestroyWindow member function wraps the Windows API. 'Manually closing windows' is ambiguous, and there is no 'CWnd Destroy' member function.