title: C++ Button with transparent background
body: <p>I'm creating a basic application in C++ (Win32 API). I tried to make a button with the CreateWindow() function as seen below:</p>
  
  <pre><code>button1 = CreateWindow("button", TEXT("Click Me!"), WS_TABSTOP | WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, 100, 200, 70, 25, hwnd, (HMENU)NULL, NULL, NULL);
  </code></pre>
  
  <p>The problem is that there is a white border around the button as you can see here:
  <a href="http://imgur.com/NTwPGTp" rel="nofollow">Link</a></p>
  
  <p>I tried to make it transparent with this code but is doesn't work.</p>
  
  <pre><code>case WM_CTLCOLORBTN:{
      HBRUSH hBrushbtn;
      hBrushbtn = (HBRUSH)GetStockObject(NULL_BRUSH);
      SetBkMode((HDC) wParam, TRANSPARENT);
      return ((LRESULT)hBrushbtn);
      break;
  }
  </code></pre>
  
  <p>How can I do this?</p>
  
  <p>Thanks</p>