Jump to content

Recommended Posts

Posted

I have this code on C++.. Someone here please translate it to au.

// init DC & bmps

HWND hWindow = GetDesktopWindow();
HDC DC = GetWindowDC(hWindow);
RECT Rect;
GetWindowRect(hWindow, &Rect);
int nWidth = Rect.Right;
int nHeight = Rect.Bottom;
HBITMAP hBmp = CreateCompatibleBitmap(DC, nWidth, nHeight);
HDC hMemDC = CreateCompatibleDC(DC);
SelectObject(hMemDC, hBmp);
BitBlt(hMemDC, 0, 0, nWidth, nHeight, DC, 0, 0, SRCCOPY);

COLORREF nColor = GetPixel(hMemDC, 200, 200)
Posted

All of these functions have wrappers in WinAPI UDF, so don't be lazy and do it yourself.

"be smart, drink your wine"

Posted

[qoute]All of these functions have wrappers in WinAPI UDF, so don't be lazy and do it yourself. [/qoute]

sorry eh'! im just a little kid in au.. thanks for you zedna.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...