title: How To Detect Pushbutton pressing?
body: <p>Im trying to build simple application (Using Win32 API) which shows a black window within a button which should close the application, The problem is that I cant figure out how detect a PushBotton click.</p>
  
  <p>Little peace of my code for example: </p>
  
  <pre><code>HWND hButton = CreateWindow(TEXT("Button"),TEXT("Exit"),WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,100,100,50,50,hWnd,0,hInstance,0);
  </code></pre>