im trying to capture a full client are of one window, but my problem is when i use the api GetWindowDC it get the full window capture (frames,sittle bar,exit buttons...) so i wonder if there is a way to get
a window client are handle. is there any way?



int widthW ;
int heightW;

int widthC ;
int heightC;

HDC hdc = GetWindowDC(hwnd);


GetWindowRect(hwnd,&rcwindow); // find the dimensions needed

widthW=rcwindow.right-rcwindow.left ;
heightW=rcwindow.bottom-rcwindow.top;


GetClientRect(hwnd,&rcclient); // find the dimensions needed

widthC=rcclient.right-rcclient.left ;
heightC=rcclient.bottom-rcclient.top;