title: how to change the position of the child window inside the parent window and show the toolbar?
body: <p>I have the following code which passes a window handler form OpenCV window to win32 handler, therefore I can show the grabbed images from camera to the screen and the images will show as a child window of my main API. 
  but the problem is that when I want to add a tooldbar to my program, the image window handler comes at the top of the toolbar. how can I sort this out?</p>
  
  <pre><code>//create a window and set the handler from openCV to win32 
  cv::namedWindow("test",cv::WINDOW_AUTOSIZE);                        
  hWnd2 = (HWND) cvGetWindowHandle("test"); 
  hParent = ::GetParent(hWnd2);       
  ::SetParent(hWnd2, hWnd);                       
  ::ShowWindow(hParent, SW_HIDE); 
  _liveCapturing=true;
  lastPicNr = 0;  
  SetWindowTextW(hStatus, L"Live Capturing ... ");
  if(FullScreen()){
      ::ShowWindow(hWnd, SW_MAXIMIZE);
  }
  </code></pre>
  
  <p>code for the toolbar :</p>
  
  <pre><code>HWND CreateToolbar(HWND hwnd){
      HWND hTbar = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | CCS_TOP  , 0, 0, 0, 0, hwnd, (HMENU)12, GetModuleHandle(NULL), NULL);
      SendMessage(hTbar, TB_BUTTONSTRUCTSIZE, (WPARAM)sizeof(TBBUTTON), 0);
  
      TBBUTTON tbb[3];
      TBADDBITMAP tbab;
  
      tbab.hInst = HINST_COMMCTRL;
      tbab.nID = IDB_STD_SMALL_COLOR; 
      SendMessage(hTbar, TB_ADDBITMAP, 0, (LPARAM)&amp;tbab);
      return hTbar;
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/3d2bN.png" alt="Screebshot of the window overlapping the toolbar"></p>