Click here to Skip to main content
15,913,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: win32 print preview Pin
Waldermort5-Feb-07 8:56
Waldermort5-Feb-07 8:56 
GeneralRe: win32 print preview Pin
stephen.hazel5-Feb-07 10:10
stephen.hazel5-Feb-07 10:10 
GeneralRe: win32 print preview Pin
stephen.hazel5-Feb-07 11:29
stephen.hazel5-Feb-07 11:29 
QuestionUnicode in MFC Pin
omid kamangar5-Feb-07 6:30
omid kamangar5-Feb-07 6:30 
AnswerRe: Unicode in MFC Pin
ThatsAlok6-Feb-07 20:08
ThatsAlok6-Feb-07 20:08 
QuestionAlternative to getPixel() Pin
ceejeeb5-Feb-07 5:45
ceejeeb5-Feb-07 5:45 
AnswerRe: Alternative to getPixel() Pin
Waldermort5-Feb-07 6:16
Waldermort5-Feb-07 6:16 
GeneralRe: Alternative to getPixel() Pin
ceejeeb5-Feb-07 6:33
ceejeeb5-Feb-07 6:33 
Im not too sure what you mean by "recalculate the pixel's offset and convert to a DWORD each time" because i dont think im doing that now. This is my code it compares each pixel in the 2 dc's :
<br />
for (int w = 0; w < width; w++)<br />
	{<br />
	   for (int h = 0; h < height; h++)<br />
	   {<br />
		  if (GetPixel(hdcOld, w, h) != GetPixel(hdcNew, w, h))<br />
		  {<br />
			SetPixel(dcNew, w, h, RGB(255, 255, 255));<br />
			pixelCount++;<br />
		  }<br />
		  else<br />
		  {<br />
			 SetPixel(dcNew, w, h, RGB(0, 0, 0));<br />
		  }<br />
	   }<br />
	}<br />

GeneralRe: Alternative to getPixel() Pin
Waldermort5-Feb-07 6:56
Waldermort5-Feb-07 6:56 
GeneralRe: Alternative to getPixel() Pin
ceejeeb5-Feb-07 6:58
ceejeeb5-Feb-07 6:58 
GeneralRe: Alternative to getPixel() Pin
Waldermort5-Feb-07 7:12
Waldermort5-Feb-07 7:12 
GeneralRe: Alternative to getPixel() Pin
ceejeeb5-Feb-07 7:55
ceejeeb5-Feb-07 7:55 
GeneralRe: Alternative to getPixel() Pin
Waldermort5-Feb-07 9:11
Waldermort5-Feb-07 9:11 
QuestionHow to call method inside another method.. Pin
Shah Satish5-Feb-07 4:44
Shah Satish5-Feb-07 4:44 
AnswerRe: How to call method inside another method.. Pin
Maximilien5-Feb-07 5:01
Maximilien5-Feb-07 5:01 
GeneralRe: How to call method inside another method.. Pin
Shah Satish5-Feb-07 5:09
Shah Satish5-Feb-07 5:09 
GeneralRe: How to call method inside another method.. Pin
Maximilien5-Feb-07 8:20
Maximilien5-Feb-07 8:20 
AnswerRe: How to call method inside another method.. Pin
benjymous5-Feb-07 5:04
benjymous5-Feb-07 5:04 
GeneralRe: How to call method inside another method.. Pin
Shah Satish5-Feb-07 5:09
Shah Satish5-Feb-07 5:09 
AnswerRe: How to call method inside another method.. Pin
Hamid_RT5-Feb-07 7:53
Hamid_RT5-Feb-07 7:53 
GeneralRe: How to call method inside another method.. Pin
Shah Satish5-Feb-07 7:55
Shah Satish5-Feb-07 7:55 
GeneralRe: How to call method inside another method.. Pin
Hamid_RT5-Feb-07 19:17
Hamid_RT5-Feb-07 19:17 
QuestionRight-click on Tree Control gives bad values. Pin
Maximilien5-Feb-07 4:22
Maximilien5-Feb-07 4:22 
AnswerRe: Right-click on Tree Control gives bad values. Pin
Gary R. Wheeler5-Feb-07 12:57
Gary R. Wheeler5-Feb-07 12:57 
QuestionUnable to export a public static member. Pin
tntlei5-Feb-07 3:30
tntlei5-Feb-07 3:30 

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.