How to capture part of the screen and save it to a BMP? [duplicate]
问题 Possible Duplicate: how to make screen screenshot with win32 in c++? I am currently trying to create an application that saved a portion of the screen to a bmp. I have found BitBlt but I really don't know what to do with it. I have tried searching for some answers but I still haven't found a clarifying one using C++. So, basically I want this function: bool capturePartScreen(int x, int y, int w int, h, string dest){ //Capture part of screen according to coordinates, width and height. //Save