Click here to Skip to main content
15,902,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to use Class matrix in VC++ Pin
chen100013-Oct-05 1:40
chen100013-Oct-05 1:40 
GeneralRe: how to use Class matrix in VC++ Pin
ddmcr13-Oct-05 2:13
ddmcr13-Oct-05 2:13 
GeneralRe: how to use Class matrix in VC++ Pin
chen100016-Oct-05 0:43
chen100016-Oct-05 0:43 
QuestionWant to read and write to video memory to process the display of the monitor Pin
dreammaker13-Oct-05 1:01
dreammaker13-Oct-05 1:01 
AnswerRe: Want to read and write to video memory to process the display of the monitor Pin
vikas amin13-Oct-05 2:28
vikas amin13-Oct-05 2:28 
AnswerRe: Want to read and write to video memory to process the display of the monitor Pin
l a u r e n13-Oct-05 17:19
l a u r e n13-Oct-05 17:19 
AnswerRe: Want to read and write to video memory to process the display of the monitor Pin
normanS13-Oct-05 19:42
normanS13-Oct-05 19:42 
AnswerRe: Want to read and write to video memory to process the display of the monitor Pin
normanS13-Oct-05 19:54
normanS13-Oct-05 19:54 
OK, some more information!

I suggest you download and have a look at the Colour Finder application, which is at http://www.codeproject.com/miscctrl/ColorFindercp1.asp[^]

To quote from the article, first a handle to the desktop device context is obtained using the API GetDCEx . This handle is then converted to a CDC class pointer using CDC::FromHandle. Then color is retrieved using the CDC method GetPixel.

I have not looked at the Colour Finder in detail, but it could be a good basis for what you want to do, and it's always easier to start with a working application, even if you throw away large bits (like tracking mouse movement, etc.) and add some bits (like changing the colour at a particular location.)
GeneralRe: Want to read and write to video memory to process the display of the monitor Pin
dreammaker13-Oct-05 22:51
dreammaker13-Oct-05 22:51 
Questionwant help for Dialogbar Pin
vikas amin13-Oct-05 0:55
vikas amin13-Oct-05 0:55 
QuestionSelf Calling function Pin
benjnp13-Oct-05 0:53
benjnp13-Oct-05 0:53 
AnswerRe: Self Calling function Pin
Eytukan13-Oct-05 1:29
Eytukan13-Oct-05 1:29 
AnswerRe: Self Calling function Pin
Eytukan13-Oct-05 1:43
Eytukan13-Oct-05 1:43 
AnswerRe: Self Calling function Pin
Fired Fish13-Oct-05 1:46
Fired Fish13-Oct-05 1:46 
AnswerRe: Self Calling function Pin
kakan13-Oct-05 2:03
professionalkakan13-Oct-05 2:03 
QuestionXP versus NT Pin
benjnp13-Oct-05 0:47
benjnp13-Oct-05 0:47 
QuestionIP address Pin
benjnp13-Oct-05 0:36
benjnp13-Oct-05 0:36 
AnswerRe: IP address Pin
ThatsAlok13-Oct-05 1:06
ThatsAlok13-Oct-05 1:06 
AnswerRe: IP address Pin
Anonymous13-Oct-05 4:04
Anonymous13-Oct-05 4:04 
QuestionINI to XML conveersion (very urgent) Pin
swaapu13-Oct-05 0:22
swaapu13-Oct-05 0:22 
AnswerRe: INI to XML conveersion (very urgent) Pin
The NULL Developer13-Oct-05 0:39
professionalThe NULL Developer13-Oct-05 0:39 
AnswerRe: INI to XML conveersion (very urgent) Pin
ThatsAlok13-Oct-05 1:12
ThatsAlok13-Oct-05 1:12 
QuestionRe: INI to XML conveersion (very urgent) Pin
David Crow13-Oct-05 3:32
David Crow13-Oct-05 3:32 
QuestionODBC with VC++ Pin
sirtimid13-Oct-05 0:17
sirtimid13-Oct-05 0:17 
QuestionRe: ODBC with VC++ Pin
David Crow13-Oct-05 3:33
David Crow13-Oct-05 3:33 

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.