Click here to Skip to main content
15,917,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hiding Afx Pin
Maximilien27-Oct-04 7:52
Maximilien27-Oct-04 7:52 
GeneralRe: Hiding Afx Pin
jmkhael27-Oct-04 8:08
jmkhael27-Oct-04 8:08 
GeneralUnicode compiling Pin
Timothy Grabrian27-Oct-04 7:41
professionalTimothy Grabrian27-Oct-04 7:41 
GeneralRe: Unicode compiling Pin
l a u r e n27-Oct-04 15:11
l a u r e n27-Oct-04 15:11 
GeneralRe: Unicode compiling Pin
Timothy Grabrian27-Oct-04 15:25
professionalTimothy Grabrian27-Oct-04 15:25 
GeneralRe: Unicode compiling Pin
Ryan Binns27-Oct-04 18:40
Ryan Binns27-Oct-04 18:40 
GeneralHiding Afx Pin
Leyu27-Oct-04 7:28
Leyu27-Oct-04 7:28 
GeneralDrawing a line, fast! Pin
Obliterator27-Oct-04 6:43
Obliterator27-Oct-04 6:43 
How simple can this be?

I want to draw a moving white line on a black screen at a fixed frame rate.
How can this be achieved?

I need to ensure that only one line is visible on the screen at any one time. But I'm having trouble getting my head around how this works with monitor refresh rates.

Currently I'm using DirectX, drawing on the back surface and then flipping the primary surface and back surface (with DDFLIP_WAIT). I draw a black rectangle then the white line and then flip. But it doesn't seem to behave as I would expect. I appear to see two or three lines on screen at once.

If I draw the white line, then black rectangle over it and then flip I should see only a black screen right? Wrong I still see the line!!! How?!

Can anyone help?


--

The Obliterator
GeneralPorting VB GUI to VC++ Pin
flashback827-Oct-04 6:39
flashback827-Oct-04 6:39 
GeneralRe: Porting VB GUI to VC++ Pin
BlackDice27-Oct-04 7:15
BlackDice27-Oct-04 7:15 
GeneralRe: Porting VB GUI to VC++ Pin
BlackDice27-Oct-04 7:19
BlackDice27-Oct-04 7:19 
GeneralRe: Porting VB GUI to VC++ Pin
flashback827-Oct-04 9:36
flashback827-Oct-04 9:36 
GeneralRe: Porting VB GUI to VC++ Pin
ThatsAlok27-Oct-04 18:58
ThatsAlok27-Oct-04 18:58 
GeneralCheck for Updates Pin
Anonymous27-Oct-04 6:04
Anonymous27-Oct-04 6:04 
GeneralRe: Check for Updates Pin
Ravi Bhavnani27-Oct-04 6:20
professionalRavi Bhavnani27-Oct-04 6:20 
QuestionIs the window on top? Pin
RobJones27-Oct-04 5:57
RobJones27-Oct-04 5:57 
AnswerRe: Is the window on top? Pin
David Crow27-Oct-04 6:04
David Crow27-Oct-04 6:04 
GeneralRe: Is the window on top? Pin
RobJones27-Oct-04 6:42
RobJones27-Oct-04 6:42 
GeneralFigured it out Pin
RobJones27-Oct-04 6:54
RobJones27-Oct-04 6:54 
GeneralC++ Windows Program Pin
Member 139789327-Oct-04 5:54
Member 139789327-Oct-04 5:54 
GeneralRe: C++ Windows Program Pin
David Crow27-Oct-04 6:08
David Crow27-Oct-04 6:08 
Generaldisplaying sequence of images in a dialog box Pin
witty6527-Oct-04 5:50
witty6527-Oct-04 5:50 
GeneralPlay a sound from a resource Pin
doctorpi27-Oct-04 5:21
doctorpi27-Oct-04 5:21 
GeneralRe: Play a sound from a resource Pin
David Crow27-Oct-04 6:10
David Crow27-Oct-04 6:10 
GeneralRe: Play a sound from a resource Pin
doctorpi27-Oct-04 6:34
doctorpi27-Oct-04 6: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.