title: How can I set pixel data storage for BITMAP
body: <p>I have a following problem.
  Somewhere I have defined array for storing pixels of my bitmap.</p>
  
  <pre><code>unsigned int table[512*512];
  </code></pre>
  
  <p>I would like this array to be used as data. I've found CreateBitmap(), but it does not behave in desired way. Instead of bounding the pointer to my table it creates a kind of snapshot of my array.</p>
  
  <pre><code>CreateBitmap(512, 512, 32, 1, table);
  </code></pre>
  
  <p>It looks like this:</p>
  
  <pre><code>table[5000]=0x00FFFFFF;
  PlaceWhereICreateBitmap();
  table[5001]=0x00FFFFFF;
  PlaceWhereIDisplayBitmap(); //only pixel no. 5000 is updated
  </code></pre>
  
  <p>I want to display both changes.
  I've also been reading about SetDIBits, but it copies array to the bitmap object. How can I set bitmap's buffer directly?</p>