title: C++ win32 Api resource file
body: <p>i am learning win32 api . i know how to add pushbutton on the fly. now i am trying to add a pushbutton using a resource file ( rse.rc ) . below is my res.rc file defination:</p>
  
  <pre><code>IDB_B1 PUSHBUTTON "TOGGLE",7 , 20, 180, 200, 30
  </code></pre>
  
  <p>and i have evn generated a resource.h file to be included in the source. now the problem i am facing is how d i add this button to my main window ? i have tried adding cursor and icon using .rc file which is easy  but can not get my head around this button .</p>
  
  <p>i guess it has to be under:</p>
  
  <pre><code>WM_CREATE:
  </code></pre>
  
  <p>but how exactly to call it from .rc file?</p>