title: How do I get if static window is clicked
body: <p>I have a static Window in my C++ program, but it doesn't respond when I click on it. Code I use to create control:</p>
  
  <pre><code> hButton = CreateWindowEx(0, "static",NULL,
        WS_VISIBLE | WS_CHILD | BS_BITMAP,
        10, 5, 200, 40,
        hwnd, (HMENU) ID_hButton, hInstance, NULL);
  </code></pre>
  
  <p>It wont show the MessageBox when I click it.</p>
  
  <pre><code> case WM_COMMAND:{
        switch(wParam){
             case ID_hButton:
                  MessageBox(0,"","",0);
                  break;
             }
        }
        break;
   }
  </code></pre>
  
  <p>So is there something wrong here or is it my App?</p>
  
  <p><strong>Now I have a new problem:</strong> when I click the static control it does not show the MessageBox until I press <code>Alt</code>. Anyone want to refer on why that is happening?</p>