title: C++ win32 API Message box button clicked
body: <p>I have just started learning how to program Windows GUI's using the low level Win32 API and C++ so please bear with me.</p>
  
  <p>I have a message box which is displayed at one point and as you can see below it is set to an OK/Cancel box</p>
  
  <pre><code>    MessageBox(hWnd, L"Hello", L"Caption", MB_OKCANCEL);
  </code></pre>
  
  <p>My question is, how do you check which of the two (or possibly more) buttons were pressed and act accordingly?</p>
  
  <p>Thank you</p>
  
  <p>Tom</p>