Click here to Skip to main content
16,017,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to populate a CBitmap correctly Pin
Naveen6-Jun-07 13:10
Naveen6-Jun-07 13:10 
GeneralRe: How to populate a CBitmap correctly Pin
C. Tam6-Jun-07 15:56
C. Tam6-Jun-07 15:56 
GeneralRe: How to populate a CBitmap correctly Pin
Naveen6-Jun-07 15:59
Naveen6-Jun-07 15:59 
GeneralRe: How to populate a CBitmap correctly Pin
C. Tam6-Jun-07 19:38
C. Tam6-Jun-07 19:38 
GeneralRe: How to populate a CBitmap correctly Pin
Naveen6-Jun-07 19:55
Naveen6-Jun-07 19:55 
GeneralRe: How to populate a CBitmap correctly Pin
C. Tam7-Jun-07 15:28
C. Tam7-Jun-07 15:28 
GeneralRe: How to populate a CBitmap correctly Pin
Naveen7-Jun-07 16:39
Naveen7-Jun-07 16:39 
GeneralRe: How to populate a CBitmap correctly Pin
Mark Salsbery4-Jun-07 5:31
Mark Salsbery4-Jun-07 5:31 
C. Tam wrote:
Unfortunately, I've noticed this function fails to work when it is invoked by a timer and the source window area is obscured by another application.


If there's aother window on top of the one you are copying pixels from then you're going to get
the pixels of the obscurring window. Is this what's happening?

If you want this to work you'll need to keep a bitmap copy of the window's contents so when you
receive a timer event you can use that bitmap instead of scraping the screen.

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: How to populate a CBitmap correctly Pin
C. Tam4-Jun-07 9:26
C. Tam4-Jun-07 9:26 
QuestionMixing ATL and MFC Pin
Anorexic Tribble3-Jun-07 7:40
Anorexic Tribble3-Jun-07 7:40 
AnswerRe: Mixing ATL and MFC Pin
Matthew Faithfull3-Jun-07 8:25
Matthew Faithfull3-Jun-07 8:25 
GeneralRe: Mixing ATL and MFC Pin
Stephen Hewitt3-Jun-07 14:05
Stephen Hewitt3-Jun-07 14:05 
Questionsimple problem Pin
Software_Specialist3-Jun-07 4:30
Software_Specialist3-Jun-07 4:30 
AnswerRe: simple problem Pin
Arman S.3-Jun-07 5:06
Arman S.3-Jun-07 5:06 
GeneralRe: simple problem Pin
Software_Specialist3-Jun-07 5:10
Software_Specialist3-Jun-07 5:10 
Questioncode to search in a text file Pin
non light3-Jun-07 3:10
non light3-Jun-07 3:10 
AnswerRe: code to search in a text file Pin
CPallini3-Jun-07 3:52
mveCPallini3-Jun-07 3:52 
GeneralRe: code to search in a text file Pin
non light3-Jun-07 4:04
non light3-Jun-07 4:04 
GeneralRe: code to search in a text file Pin
Hans Dietrich3-Jun-07 4:19
mentorHans Dietrich3-Jun-07 4:19 
GeneralRe: code to search in a text file Pin
non light3-Jun-07 4:39
non light3-Jun-07 4:39 
GeneralRe: code to search in a text file Pin
Christian Graus3-Jun-07 11:22
protectorChristian Graus3-Jun-07 11:22 
GeneralRe: code to search in a text file Pin
CPallini3-Jun-07 10:16
mveCPallini3-Jun-07 10:16 
AnswerRe: code to search in a text file Pin
Hamid_RT3-Jun-07 7:33
Hamid_RT3-Jun-07 7:33 
QuestionHeap corruption. Pin
Polite Programmer3-Jun-07 1:26
Polite Programmer3-Jun-07 1:26 
AnswerRe: Heap corruption. Pin
Gary R. Wheeler3-Jun-07 1:44
Gary R. Wheeler3-Jun-07 1:44 

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.