when do:
operator HBITMAP()
{
HBITMAP hbitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size
SelectObject(hdcimage, hbitmap);//add the bitmap to memory DC
MessageBox(NULL,to_string(GetLastError()).c_str(),"error",MB_OK);
return hbitmap;
}
the hdcimage is copyied to hbitmap, right?