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