Click here to Skip to main content
15,925,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLNK1181...'shlwapi. newbie Pin
~toki14-Feb-04 10:54
~toki14-Feb-04 10:54 
GeneralRe: LNK1181...'shlwapi. newbie Pin
Tim Smith14-Feb-04 12:59
Tim Smith14-Feb-04 12:59 
GeneralRe: LNK1181...'shlwapi. newbie Pin
Michael Dunn14-Feb-04 14:12
sitebuilderMichael Dunn14-Feb-04 14:12 
Generalinfinite loop Pin
4ize14-Feb-04 10:50
4ize14-Feb-04 10:50 
GeneralRe: infinite loop Pin
Michael P Butler15-Feb-04 1:43
Michael P Butler15-Feb-04 1:43 
GeneralRe: infinite loop Pin
Robert A. T. Káldy16-Feb-04 12:23
Robert A. T. Káldy16-Feb-04 12:23 
GeneralGraphic interface Pin
Anonymous14-Feb-04 10:30
Anonymous14-Feb-04 10:30 
GeneralRe: Graphic interface Pin
Antti Keskinen14-Feb-04 10:43
Antti Keskinen14-Feb-04 10:43 
The interaction of a GUI, in it's simplest form, is implemented by a series of WM_PAINT calls.

You can, for example, create two integer variables xPos and yPos that determine the position of a ball when it is drawn on-screen. Then, a click of a button sends these balls into a continous WM_PAINT loop, and during each iteration of the loop, the positional variables are altered, thus causing the ball to "move".

This approach, however, will result in your application looking pretty much frozen, as it will stop answering to other messages during the animation loop. I suggest you dwelve into concepts like Direct3D and OpenGL if you want to draw fast graphics without obscuring the messaging queue.

Unfortunately I cannot provide you with a code example..

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Graphic interface Pin
Andrew Walker14-Feb-04 20:17
Andrew Walker14-Feb-04 20:17 
GeneralBug!!! Pin
mebraun14-Feb-04 9:47
mebraun14-Feb-04 9:47 
GeneralRe: Bug!!! Pin
Shog914-Feb-04 10:29
sitebuilderShog914-Feb-04 10:29 
Generaladditional details Pin
mebraun14-Feb-04 12:58
mebraun14-Feb-04 12:58 
GeneralHTML text from VC++ app Pin
progman14-Feb-04 9:39
progman14-Feb-04 9:39 
GeneralRichedit redisplay problem Pin
Sara Burns14-Feb-04 9:12
Sara Burns14-Feb-04 9:12 
GeneralDisabling menu selection Pin
krugger14-Feb-04 9:00
krugger14-Feb-04 9:00 
GeneralRe: Disabling menu selection Pin
Michael P Butler15-Feb-04 1:48
Michael P Butler15-Feb-04 1:48 
GeneralDialog closes on Escape Pin
krugger14-Feb-04 8:58
krugger14-Feb-04 8:58 
GeneralRe: Dialog closes on Escape Pin
Michael Dunn14-Feb-04 9:23
sitebuilderMichael Dunn14-Feb-04 9:23 
GeneralRe: Dialog closes on Escape Pin
alex.barylski14-Feb-04 10:56
alex.barylski14-Feb-04 10:56 
GeneralProblem with MFC minimize box Pin
Dev57814-Feb-04 7:07
Dev57814-Feb-04 7:07 
GeneralRe: Problem with MFC minimize box Pin
Antti Keskinen14-Feb-04 7:49
Antti Keskinen14-Feb-04 7:49 
Generalopening a SDL within MFC application Pin
Anonymous14-Feb-04 5:09
Anonymous14-Feb-04 5:09 
GeneralRe: opening a SDL within MFC application Pin
valikac14-Feb-04 5:28
valikac14-Feb-04 5:28 
Generalwinexec window control ! Pin
Anonymous14-Feb-04 4:29
Anonymous14-Feb-04 4:29 
GeneralRe: winexec window control ! Pin
valikac14-Feb-04 5:31
valikac14-Feb-04 5:31 

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.