💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[昵图网](http://www.nipic.com/) 图片自适应窗口的 StretchBlt ```c++ CPaintDC dc(this); // 用于绘制的设备上下文 CRect rect; GetClientRect(rect); BITMAP bmpInfo; CBitmap bitmap;// bitmap.LoadBitmap(IDB_PEOPIO); //GetObject(bitmap,sizeof(bmpInfo),&bmpInfo); bitmap.GetBitmap(&bmpInfo); CDC m_cdc;//屏幕DC m_cdc.CreateCompatibleDC(&dc);//内存DC m_cdc.SelectObject(&bitmap);// dc.StretchBlt(0,0,rect.Width(),rect.Height(),&m_cdc,0,0,bmpInfo.bmWidth,bmpInfo.bmHeight,SRCCOPY);//在窗口绘图 m_cdc.DeleteDC(); bitmap.DeleteObject(); ``` 窗口自适应图片 MoveWindow ``` m_dc[i].LoadBitmap(IDB_BITMAP1 + i); MoveWindow(0,0,m_dc[i].GetWidth(),m_dc[i].GetHeight(),FALSE); ```