Sorry for asking here. But i have no time now.
CString myfuntion(HWND hWnd,CDC* dc,CPoint point)
{
CString str;
CBitmap bmpCOM;
BITMAP bm;
bmpCOM.LoadBitmap(IDB_ROKU);
bmpCOM.GetBitmap(&bm);
CDC dcMem;
dcMem.CreateCompatibleDC(dc);
dcMem.SelectObject(bmpCOM);
HDC hdcMem=dcMem;
COLORREF clr= GetPixel(hdcMem,point.x,point.y);
str.Format("W:%d H:%d {X:%d Y=%d}RGB(%d,%d,%d)",bm.bmWidth,bm.bmHeight,point.x,point.y,GetRValue(clr),GetGValue(clr),GetBValue(clr));
return str;
}
this is the code i wrote by my mind.
But when i used it, the Y axis is not right.
Instead of y=10, it became y=15 in temp DC.
I tried to solve 3 days but have no way.
PLEASE I BEG everyone.
this is where my life is end.