title: In win32 C++ programming to close a window, should I call DestroyWindow(hWnd) myself or SendMessage(WM_CLOSE, hWnd, 0, 0)?
body: <p>I'm handling <code>ESC</code> key in my application and when this key is received I wish to close the current window.</p>
  
  <p>Should I simply call <code>DestroyWindow(hWnd)</code> or should I <code>SendMessage(WM_CLOSE, hWnd, 0, 0)</code>, or should I be closing the current window in some different way?</p>