Page 1 of 1

how to use GetDC_() with hided windows

Posted: Tue May 31, 2005 3:30 pm
by Nueng
I want to check color point on control in hided window..

this code from me...

Code: Select all

MessageRequester("Ready ?" ,"")
sysviewDC = GetDC_( hwndSysview )
color = GetPixel_( sysviewDC, x, y )
color will return -1 alway if window is background (or not shown)

but if window is foreground color will return true value of DC color point

....problem : I want to get color point from hwnd but it's hinding !!


any one have idea ? (-_-')

Posted: Tue May 31, 2005 5:57 pm
by Trond
A window which is hidden has no colour. (Duh) Eventually you can save the window's surface to a bitmap each time you minimize it.

Posted: Wed Jun 01, 2005 6:32 am
by Nueng
Arkkkkkkkkkkkkk....

:cry:

Posted: Sat Jun 04, 2005 2:29 pm
by Sub-Routine
Can you read the color before opening the Requester?

Rand