Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCOM+ Catalog Infomation Pin
kimsangwoo1-Feb-04 15:07
kimsangwoo1-Feb-04 15:07 
GeneralFatal error Pin
Goh Hui Beng1-Feb-04 14:47
Goh Hui Beng1-Feb-04 14:47 
GeneralRe: Fatal error Pin
Cloaca1-Feb-04 17:56
Cloaca1-Feb-04 17:56 
GeneralRe: Fatal error Pin
PengFeidu1-Feb-04 18:10
PengFeidu1-Feb-04 18:10 
GeneralSlider on CDialogBar Pin
Ziban1-Feb-04 14:37
Ziban1-Feb-04 14:37 
GeneralRe: Slider on CDialogBar Pin
Robert A. T. Káldy2-Feb-04 13:31
Robert A. T. Káldy2-Feb-04 13:31 
QuestionAnyone have a simple line drawing program? Pin
getz531-Feb-04 13:36
getz531-Feb-04 13:36 
AnswerRe: Anyone have a simple line drawing program? Pin
Cloaca1-Feb-04 17:34
Cloaca1-Feb-04 17:34 
Hi Bill,

I would say that it depends partly on the OS being used. Is it Windows 9X, NT (or greater), or DOS, etc.
If it's Windows, there are API functions available that are as simple to use as:
pDC->MoveTo(x1, y1);<br />
pDC->LineTo(x2, y2);

Which together will draw a line starting at (x1, y1) and ending at (x2, y2). Are you familiar with these kinds of functions?

Also, check out http://www.codeproject.com/gdi/[^]
If you haven't seen these articles yet, there are a bunch of good ones, and some are marked as 'Beginner'. In particular, check out:
http://www.codeproject.com/gdi/dcdrawing.asp[^]
Drawing took me some getting used to (I'm also far from a pro programmer) but after a few practice programs you'll get the hang of drawing in Windows.

Best,
Eric
GeneralRe: Anyone have a simple line drawing program? Pin
getz532-Feb-04 1:31
getz532-Feb-04 1:31 
GeneralRe: Anyone have a simple line drawing program? Pin
Cloaca2-Feb-04 5:42
Cloaca2-Feb-04 5:42 
GeneralFlexgrid and Clipboard Pin
fk1511-Feb-04 12:11
fk1511-Feb-04 12:11 
QuestionHow to hide &quot;.lnk&quot; (shortcuts) in CFileDialog? Pin
julych1-Feb-04 11:34
julych1-Feb-04 11:34 
GeneralVariable Twodimensional Array Pin
Anonymous1-Feb-04 9:56
Anonymous1-Feb-04 9:56 
GeneralRe: Variable Twodimensional Array Pin
Nick Parker1-Feb-04 10:49
protectorNick Parker1-Feb-04 10:49 
GeneralRe: Variable Twodimensional Array Pin
Robert A. T. Káldy2-Feb-04 13:38
Robert A. T. Káldy2-Feb-04 13:38 
GeneralResize Dialog with buttons &amp; Bitmaps Pin
Grahamfff1-Feb-04 9:51
Grahamfff1-Feb-04 9:51 
Generalmfc control variable problem Pin
Qraven1-Feb-04 9:18
Qraven1-Feb-04 9:18 
GeneralRe: mfc control variable problem Pin
Qraven1-Feb-04 9:22
Qraven1-Feb-04 9:22 
GeneralRe: mfc control variable problem Pin
Michael P Butler1-Feb-04 9:37
Michael P Butler1-Feb-04 9:37 
GeneralRe: mfc control variable problem Pin
Qraven1-Feb-04 9:57
Qraven1-Feb-04 9:57 
GeneralBitmaps again! Pin
Dennis L1-Feb-04 9:10
Dennis L1-Feb-04 9:10 
GeneralRe: Bitmaps again! Pin
CodeBrain2-Feb-04 0:42
CodeBrain2-Feb-04 0:42 
GeneralRe: Bitmaps again! Pin
John R. Shaw2-Feb-04 1:29
John R. Shaw2-Feb-04 1:29 
GeneralCharacters Pin
seth.jackson1-Feb-04 9:03
seth.jackson1-Feb-04 9:03 
GeneralRe: Characters Pin
Robert A. T. Káldy2-Feb-04 13:46
Robert A. T. Káldy2-Feb-04 13:46 

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.