Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDisable Restart from the windows shutdown dialog box Pin
sirtimid15-Sep-04 23:14
sirtimid15-Sep-04 23:14 
GeneralDisable Restart from the windows shutdown dialog box Pin
sirtimid15-Sep-04 23:13
sirtimid15-Sep-04 23:13 
GeneralDeleting ODBC Datasources Pin
si_6915-Sep-04 23:00
si_6915-Sep-04 23:00 
GeneralRe: Deleting ODBC Datasources Pin
P-Rex15-Sep-04 23:55
P-Rex15-Sep-04 23:55 
GeneralRe: Deleting ODBC Datasources Pin
P-Rex16-Sep-04 0:01
P-Rex16-Sep-04 0:01 
GeneralAsynch Serial Comms - IO Completion Pin
louis15-Sep-04 22:40
louis15-Sep-04 22:40 
GeneralVisual C++ (MFC) : Using Matrix to set an part of an image to zero Pin
pohcb_sonic15-Sep-04 21:50
pohcb_sonic15-Sep-04 21:50 
GeneralRe: Visual C++ (MFC) : Using Matrix to set an part of an image to zero Pin
V.15-Sep-04 22:15
professionalV.15-Sep-04 22:15 
from MSDN:

SetPixelV
The SetPixelV function sets the pixel at the specified coordinates to the closest approximation of the specified color. The point must be in the clipping region and the visible part of the device surface.

BOOL SetPixelV(<br />
  HDC hdc,           // handle to device context<br />
  int X,             // x-coordinate of pixel<br />
  int Y,             // y-coordinate of pixel<br />
  COLORREF crColor   // new pixel color<br />
);

Parameters:
hdc
[in] Handle to the device context.
X
[in] Specifies the x-coordinate, in logical units, of the point to be set.
Y
[in] Specifies the y-coordinate, in logical units, of the point to be set.
crColor
[in] Specifies the color to be used to paint the point. To create a COLORREF color value, use the RGB macro.
Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Windows NT/2000/XP: To get extended error information, call GetLastError.

Remarks
Not all devices support the SetPixelV function. For more information, see the description of the RC_BITBLT capability in the GetDeviceCaps function.

SetPixelV is faster than SetPixel because it does not need to return the color value of the point actually painted.

Requirements
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.

See Also
Bitmaps Overview, Bitmap Functions, GetDeviceCaps, SetPixel, COLORREF, RGB

I'm not sure which format of image it is, but I'm sure you can use the CDC class or something.

"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
GeneralRe: Visual C++ (MFC) : Using Matrix to set an part of an image to zero Pin
pohcb_sonic16-Sep-04 15:21
pohcb_sonic16-Sep-04 15:21 
GeneralRe: Visual C++ (MFC) : Using Matrix to set an part of an image to zero Pin
V.16-Sep-04 20:39
professionalV.16-Sep-04 20:39 
GeneralUnable to view document Pin
Mughi15-Sep-04 21:43
Mughi15-Sep-04 21:43 
QuestionCan anyone help me create this DLL? Pin
noeppkes15-Sep-04 21:34
noeppkes15-Sep-04 21:34 
GeneralVisual C++ (MFC) : Using Matrix to set an part of an image to zero Pin
pohcb_sonic15-Sep-04 20:17
pohcb_sonic15-Sep-04 20:17 
GeneralRe: Visual C++ (MFC) : Using Matrix to set an part of an image to zero Pin
User 58385215-Sep-04 20:23
User 58385215-Sep-04 20:23 
GeneralRe: Visual C++ (MFC) : Using Matrix to set an part of an image to zero Pin
pohcb_sonic15-Sep-04 21:45
pohcb_sonic15-Sep-04 21:45 
GeneralGet Hard Drive Serial Number in VC++ Pin
gokings15-Sep-04 20:13
gokings15-Sep-04 20:13 
GeneralRe: Get Hard Drive Serial Number in VC++ Pin
Arsalan Malik15-Sep-04 21:00
Arsalan Malik15-Sep-04 21:00 
GeneralRe: Get Hard Drive Serial Number in VC++ Pin
gokings18-Sep-04 2:45
gokings18-Sep-04 2:45 
GeneralRe: Get Hard Drive Serial Number in VC++ Pin
wb15-Sep-04 21:00
wb15-Sep-04 21:00 
GeneralRe: Get Hard Drive Serial Number in VC++ Pin
Arsalan Malik15-Sep-04 21:27
Arsalan Malik15-Sep-04 21:27 
GeneralRe: Get Hard Drive Serial Number in VC++ Pin
gokings18-Sep-04 2:39
gokings18-Sep-04 2:39 
GeneralRe: Get Hard Drive Serial Number in VC++ Pin
Aamir Butt16-Sep-04 2:09
Aamir Butt16-Sep-04 2:09 
GeneralDoes MFC Supports IPv6 Pin
Alpha Siera15-Sep-04 20:13
Alpha Siera15-Sep-04 20:13 
GeneralRe: Does MFC Supports IPv6 Pin
Alexander M.,16-Sep-04 9:53
Alexander M.,16-Sep-04 9:53 
GeneralRe: Does MFC Supports IPv6 Pin
Alpha Siera16-Sep-04 18:34
Alpha Siera16-Sep-04 18:34 

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.