Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to use setwindowpos with MDI Pin
vancouver77719-Jan-04 6:25
vancouver77719-Jan-04 6:25 
GeneralRetrieving proxy info from IE settings Pin
haritadala16-Jan-04 11:33
haritadala16-Jan-04 11:33 
GeneralRe: Retrieving proxy info from IE settings Pin
ssudhaiyer19-Jan-04 1:36
ssudhaiyer19-Jan-04 1:36 
GeneralRe: Retrieving proxy info from IE settings Pin
haritadala19-Jan-04 2:54
haritadala19-Jan-04 2:54 
GeneralGetPixel() help needed Pin
__Cerb16-Jan-04 10:59
__Cerb16-Jan-04 10:59 
GeneralRe: GetPixel() help needed Pin
Jörgen Sigvardsson16-Jan-04 12:17
Jörgen Sigvardsson16-Jan-04 12:17 
GeneralRe: GetPixel() help needed Pin
__Cerb16-Jan-04 12:22
__Cerb16-Jan-04 12:22 
GeneralRe: GetPixel() help needed Pin
Jörgen Sigvardsson16-Jan-04 12:27
Jörgen Sigvardsson16-Jan-04 12:27 
Not to my knowledge, no. The device context mirrors what's shown on screen. If there's nothing on screen, then there are no pixels to grab.

This window you're trying to snatch pixels from.. is it in the same process as your pixel grabbing routine? If it is, you could always make the "source window" double buffered. That is, it keeps a bitmap of itself internally. That way you could access the bitmap for pixels. Otherwise it's a pretty tough job I reckon.

By the way, after GetPixel() returns -1, have you checked the error code? Either call GetLastError() or add the @err pseudo-variable in the watch window in the debugger.

--
Seraphim Shock. Gold for your ears.
GeneralRe: GetPixel() help needed Pin
__Cerb16-Jan-04 12:31
__Cerb16-Jan-04 12:31 
GeneralRe: GetPixel() help needed Pin
l a u r e n16-Jan-04 14:07
l a u r e n16-Jan-04 14:07 
GeneralRe: GetPixel() help needed Pin
__Cerb16-Jan-04 14:29
__Cerb16-Jan-04 14:29 
GeneralRe: GetPixel() help needed Pin
l a u r e n16-Jan-04 14:34
l a u r e n16-Jan-04 14:34 
GeneralRe: GetPixel() help needed Pin
__Cerb16-Jan-04 14:59
__Cerb16-Jan-04 14:59 
GeneralRe: GetPixel() help needed Pin
l a u r e n16-Jan-04 15:17
l a u r e n16-Jan-04 15:17 
GeneralRe: GetPixel() help needed Pin
__Cerb16-Jan-04 15:20
__Cerb16-Jan-04 15:20 
GeneralRe: GetPixel() help needed Pin
Jörgen Sigvardsson17-Jan-04 8:52
Jörgen Sigvardsson17-Jan-04 8:52 
GeneralRe: GetPixel() help needed Pin
l a u r e n17-Jan-04 8:59
l a u r e n17-Jan-04 8:59 
GeneralMFC File Wars Pin
_psh_16-Jan-04 10:03
_psh_16-Jan-04 10:03 
GeneralRe: MFC File Wars Pin
alex.barylski16-Jan-04 10:26
alex.barylski16-Jan-04 10:26 
GeneralRe: MFC File Wars Pin
John M. Drescher16-Jan-04 10:49
John M. Drescher16-Jan-04 10:49 
GeneralReboot PC from Program Pin
ttran770016-Jan-04 9:19
ttran770016-Jan-04 9:19 
GeneralRe: Reboot PC from Program Pin
alex.barylski16-Jan-04 10:29
alex.barylski16-Jan-04 10:29 
GeneralCount of CR in an dit control Pin
Marcello16-Jan-04 8:42
Marcello16-Jan-04 8:42 
GeneralRe: Count of CR in an dit control Pin
alex.barylski16-Jan-04 10:34
alex.barylski16-Jan-04 10:34 
GeneralRe: Count of CR in an dit control Pin
Marcello16-Jan-04 11:29
Marcello16-Jan-04 11:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.