shadybyte
February 18th, 2008, 08:59 PM
Sorry --- I'm new to programming and I teach myself everything.....
How do you get the DC for another application's client area?
How do you get the DC for another application's client area?
|
Click to See Complete Forum and Search --> : DC for another program shadybyte February 18th, 2008, 08:59 PM Sorry --- I'm new to programming and I teach myself everything..... How do you get the DC for another application's client area? KainPlan February 19th, 2008, 02:39 AM 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); i hope this helps. Marc G February 19th, 2008, 09:07 AM Don't forget to release the DC after you have used it. shadybyte February 19th, 2008, 09:48 PM Oh thank you guys so much. I really appreciate your comments and help. ;) ---- I can see that this is a good site already codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |