How to write the source code of the screenshot
This article will explain in detail how to write the screenshot source code for you. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
RECT rect;:: GetWindowRect; int nleft; int nTop; int nWidth; int nHeight; nleft = rect.left + 10; nTop = rect.top + 93; nWidth = 600; nHeight = 260; CScreen * screen=new CScreen (16, NULL, nWidth, nHeight); screen- > GetScreen (nleft, nTop, nWidth, nHeight) Xstring xstrBmp = CConfigureInstance::Singleton ()-> GetCfgUserPath (); xstrBmp + = _ T ("\\ 1.bmp"); string strBmp = CommonUtil::XStrToStr (xstrBmp); char pszChars [Max _ PATH] = {'0'}; sprintf (pszChar, "% s", strBmp.c_str ()); screen- > SetScreentoPath (pszChar); delete screen About the screenshot of the source code how to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.