Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. smoothie1248

    GetPixel function returns CLR_INVALID

    Hi, I am trying to use GDI GetPixel function. I first get the DC using hdc = GetDC(hWnd); then call GetPixel(hdc,x,y); function. However GetPixel returns -1 which obviously shows that GetPixel cannot read from the dc. I found that I should use GetDeviceCaps to check whether the dc is capable of...

Part and Inventory Search

Back
Top