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

C / C++ / MFC

 
AnswerRe: Set point's size Pin
Hamid_RT14-Apr-07 6:14
Hamid_RT14-Apr-07 6:14 
QuestionRe: Set point's size Pin
Mark Salsbery14-Apr-07 7:45
Mark Salsbery14-Apr-07 7:45 
AnswerRe: Set point's size Pin
bob1697214-Apr-07 8:30
bob1697214-Apr-07 8:30 
GeneralRe: Set point's size Pin
John R. Shaw14-Apr-07 15:21
John R. Shaw14-Apr-07 15:21 
GeneralRe: Set point's size Pin
bob1697214-Apr-07 16:19
bob1697214-Apr-07 16:19 
GeneralRe: Set point's size Pin
John R. Shaw14-Apr-07 16:54
John R. Shaw14-Apr-07 16:54 
GeneralRe: Set point's size Pin
Chen-XuNuo14-Apr-07 22:05
Chen-XuNuo14-Apr-07 22:05 
GeneralRe: Set point's size Pin
Mark Salsbery15-Apr-07 14:02
Mark Salsbery15-Apr-07 14:02 
Chen-XuNuo wrote:
What I want to ask is that when I call the SetPixel function,a dot appear in where I click the mouse,and I want to change the size of the dot.


I had a feeling that's what you meant.

You can't change the size of a screen pixel. The size of one pixel on the screen is detemined by
the video resolution set for the monitor. All the pixels for a given resolution are the same
size.

That said, you can only go so small. For bigger "dots" you need to draw a cluster of pixels.
An easy way to do this is in Windows GDI is to use a pen with a thickness the desired size.

I'm not sure what's going wrong with your MoveTo/LineTo code. You'll need to post an example
of how you set up the DC and make the calls so we can better help you.

Mark


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

QuestionRegarding Error, Please help. Pin
dhavalshah12314-Apr-07 1:00
dhavalshah12314-Apr-07 1:00 
AnswerRe: Regarding Error, Please help. Pin
Hamid_RT14-Apr-07 6:24
Hamid_RT14-Apr-07 6:24 
GeneralRe: Regarding Error, Please help. Pin
Nikhil Trivedi16-Apr-07 0:03
Nikhil Trivedi16-Apr-07 0:03 
GeneralRe: Regarding Error, Please help. Pin
Hamid_RT16-Apr-07 0:45
Hamid_RT16-Apr-07 0:45 
AnswerRe: Regarding Error, Please help. Pin
John R. Shaw14-Apr-07 15:32
John R. Shaw14-Apr-07 15:32 
AnswerRe: Regarding Error, Please help. Pin
Michael Dunn14-Apr-07 21:40
sitebuilderMichael Dunn14-Apr-07 21:40 
Questionto define callback function Pin
zon_cpp14-Apr-07 0:18
zon_cpp14-Apr-07 0:18 
AnswerRe: to define callback function Pin
John R. Shaw14-Apr-07 15:41
John R. Shaw14-Apr-07 15:41 
GeneralRe: to define callback function Pin
zon_cpp14-Apr-07 20:54
zon_cpp14-Apr-07 20:54 
QuestionX.25 Protocol Pin
B. A. Gupta13-Apr-07 22:36
B. A. Gupta13-Apr-07 22:36 
AnswerRe: X.25 Protocol Pin
Nirmal S22-Sep-09 2:01
Nirmal S22-Sep-09 2:01 
QuestionAlternative to CImage Pin
QuickDeveloper13-Apr-07 22:33
QuickDeveloper13-Apr-07 22:33 
AnswerRe: Alternative to CImage Pin
Hamid_RT14-Apr-07 6:11
Hamid_RT14-Apr-07 6:11 
AnswerRe: Alternative to CImage Pin
Mark Salsbery14-Apr-07 7:47
Mark Salsbery14-Apr-07 7:47 
AnswerRe: Alternative to CImage Pin
Hamid_RT14-Apr-07 7:49
Hamid_RT14-Apr-07 7:49 
AnswerRe: Alternative to CImage Pin
bob1697214-Apr-07 16:16
bob1697214-Apr-07 16:16 
QuestionTitleBar Pin
samira forooghi13-Apr-07 22:02
samira forooghi13-Apr-07 22:02 

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.