how to use GetDC_() with hided windows

Just starting out? Need help? Post your questions and find answers here.
Nueng
User
User
Posts: 35
Joined: Fri May 27, 2005 11:16 am

how to use GetDC_() with hided windows

Post 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 ? (-_-')
\\ (^O^) //

Thank god for send you to Help me..
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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.
Nueng
User
User
Posts: 35
Joined: Fri May 27, 2005 11:16 am

Post by Nueng »

Arkkkkkkkkkkkkk....

:cry:
\\ (^O^) //

Thank god for send you to Help me..
Sub-Routine
User
User
Posts: 82
Joined: Tue May 03, 2005 2:51 am
Location: Wheeling, Illinois, USA
Contact:

Post by Sub-Routine »

Can you read the color before opening the Requester?

Rand
Post Reply