Sorry --- I'm new to programming and I teach myself everything.....
How do you get the DC for another application's client area?
Printable View
Sorry --- I'm new to programming and I teach myself everything.....
How do you get the DC for another application's client area?
i hope this helps.Code:HANDLE hProgman, hDesktop, hDesktopListView;
//Get Window Handle
hProgman = FindWindow("Progman", 0);
hDesktop = FindWindowEx(hProgman, 0, "SHELLDLL_DefView", 0);
hDesktopListView = FindWindowEx(hDesktop, 0, "SysListView32", 0);
HDC hDC;
//Get DC From selected Window Handle
hDC = GetDC(hDesktopListView);
Don't forget to release the DC after you have used it.
Oh thank you guys so much. I really appreciate your comments and help. ;) ---- I can see that this is a good site already