title: CreateWindowEx lpParam for button, etc in WM_NCCREATE
body: <p>I pass the pointer to the class wrapper instance pointer for controls as <code>lpParam</code> parameter and catch it when receiving <code>WN_NCCREATE</code>.</p>
  
  <p>This message does not get send when creating controls like static or button (so far).</p>
  
  <p>So I create a Window, a static and a button, log the pointers of the instances and only one <code>WN_NCCREATE</code> message is received with the windows pointer.</p>
  
  <p>My question is: How can I get the passed parameter?</p>
  
  <p>In my previous attempt several years ago, I used an <code>std::map hwnd -&gt; ptr</code> which worked fine. In this attempt, I am trying to get a little deeper in WinAPI and try a different approach. Now I'm stuck with this, Google results didn't help much so far.</p>
  
  <p>Should I stick with the map or is there another solution?</p>