Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVC7.1 IDE: Toolbars for debug Pin
peterchen3-Oct-03 19:59
peterchen3-Oct-03 19:59 
GeneralRe: VC7.1 IDE: Toolbars for debug Pin
spiritualfields3-Oct-03 20:56
spiritualfields3-Oct-03 20:56 
Questionhow to monitor application's access to network (say,internet)? Pin
lxy5103-Oct-03 19:03
lxy5103-Oct-03 19:03 
AnswerRe: how to monitor application's access to network (say,internet)? Pin
abc8764-Oct-03 2:14
abc8764-Oct-03 2:14 
AnswerRe: how to monitor application's access to network (say,internet)? Pin
Alexander M.,5-Oct-03 6:07
Alexander M.,5-Oct-03 6:07 
Questionhow to draw pixel by pixel? Pin
coda_x3-Oct-03 17:37
coda_x3-Oct-03 17:37 
AnswerRe: how to draw pixel by pixel? Pin
J. Dunlap3-Oct-03 17:51
J. Dunlap3-Oct-03 17:51 
AnswerRe: how to draw pixel by pixel? Pin
Terry O'Nolley4-Oct-03 4:52
Terry O'Nolley4-Oct-03 4:52 
If you truly want to set an individual pixel's color, you can use CDC's SetPixel method:

<big>CDC::SetPixel </big>
COLORREF SetPixel( int x, int y, COLORREF crColor );

COLORREF SetPixel( POINT point, COLORREF crColor );

Return Value

An RGB value for the color that the point is actually painted. This value can be different
from that specified by crColor if an approximation of that color is used. If the function 
fails (if the point is outside the clipping region), the return value is -1.

Parameters

x

Specifies the logical x-coordinate of the point to be set.

y

Specifies the logical y-coordinate of the point to be set.

crColor

Specifies the color used to paint the point.

point

Specifies the logical x- and y-coordinates of the point to be set. You can pass either a 
POINT structure or a CPoint object for this parameter.

Remarks

Sets the pixel at the point specified to the closest approximation of the color specified by
crColor. The point must be in the clipping region. If the point is not in the clipping region, 
the function does nothing. 

Not all devices support the SetPixel function. To determine whether a device supports SetPixel,
call the GetDeviceCaps member function with the RASTERCAPS index and check the return value 
for the RC_BITBLT flag.











QuestionHow to check whether a buffer contains a double number? Pin
George23-Oct-03 17:31
George23-Oct-03 17:31 
AnswerRe: How to check whether a buffer contains a double number? Pin
peterchen3-Oct-03 20:27
peterchen3-Oct-03 20:27 
GeneralRe: How to check whether a buffer contains a double number? Pin
George23-Oct-03 20:52
George23-Oct-03 20:52 
GeneralRe: How to check whether a buffer contains a double number? Pin
Dominik Reichl4-Oct-03 1:28
Dominik Reichl4-Oct-03 1:28 
GeneralRe: How to check whether a buffer contains a double number? Pin
Bo Hunter4-Oct-03 9:25
Bo Hunter4-Oct-03 9:25 
GeneralRe: How to check whether a buffer contains a double number? Pin
George24-Oct-03 16:45
George24-Oct-03 16:45 
GeneralRe: How to check whether a buffer contains a double number? Pin
Dominik Reichl4-Oct-03 22:56
Dominik Reichl4-Oct-03 22:56 
GeneralRe: How to check whether a buffer contains a double number? Pin
George24-Oct-03 23:25
George24-Oct-03 23:25 
GeneralRe: How to check whether a buffer contains a double number? Pin
George24-Oct-03 16:42
George24-Oct-03 16:42 
GeneralRe: How to check whether a buffer contains a double number? Pin
Dominik Reichl4-Oct-03 23:00
Dominik Reichl4-Oct-03 23:00 
GeneralRe: How to check whether a buffer contains a double number? Pin
George24-Oct-03 23:22
George24-Oct-03 23:22 
QuestionWhat's the difference between C's printf and C++'s cout? Pin
Link26003-Oct-03 16:17
Link26003-Oct-03 16:17 
AnswerRe: What's the difference between C's printf and C++'s cout? Pin
Ian Darling3-Oct-03 22:22
Ian Darling3-Oct-03 22:22 
GeneralRe: What's the difference between C's printf and C++'s cout? Pin
Mike Dimmick3-Oct-03 23:44
Mike Dimmick3-Oct-03 23:44 
GeneralRe: What's the difference between C's printf and C++'s cout? Pin
Ian Darling4-Oct-03 2:03
Ian Darling4-Oct-03 2:03 
GeneralRe: What's the difference between C's printf and C++'s cout? Pin
Kevin McFarlane4-Oct-03 0:23
Kevin McFarlane4-Oct-03 0:23 
GeneralCHtmlView - form without SUBMIT button Pin
trof3-Oct-03 14:36
trof3-Oct-03 14:36 

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.