Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to pass values between dialog window in MFC Pin
lamrinraj9-May-11 1:56
lamrinraj9-May-11 1:56 
QuestionRe: how to pass values between dialog window in MFC Pin
David Crow9-May-11 3:54
David Crow9-May-11 3:54 
AnswerRe: how to pass values between dialog window in MFC Pin
Niklas L6-May-11 1:12
Niklas L6-May-11 1:12 
QuestionBall Physics Pin
Cyclone_S5-May-11 23:51
Cyclone_S5-May-11 23:51 
AnswerRe: Ball Physics Pin
Richard MacCutchan6-May-11 2:58
mveRichard MacCutchan6-May-11 2:58 
GeneralRe: Ball Physics Pin
Cyclone_S6-May-11 7:57
Cyclone_S6-May-11 7:57 
AnswerRe: Ball Physics Pin
CPallini6-May-11 10:29
mveCPallini6-May-11 10:29 
GeneralRe: Ball Physics Pin
Cyclone_S6-May-11 21:35
Cyclone_S6-May-11 21:35 
This is as close as I got so far but it makes the ball pause for a moment when it hits the top and bottom of the brick. This code is in the timer event. Any solution to this? Thanks.

// Check for brick collisions.
					if(left == false && Ball_List[b]->gameBall->Bounds.IntersectsWith(Brick1->Bounds))
					{
						
						if((Ball_List[b]->gameBall->Right >= Brick1->Left || Ball_List[b]->gameBall->Left <= Brick1->Right))
						{
							Ball_List[b]->xVel = -Ball_List[b]->xVel; left = true; top = true;

						}

					}
					else {left=false;}

					if(top == false && Ball_List[b]->gameBall->Bounds.IntersectsWith(Brick1->Bounds))
					{
						
						if((Ball_List[b]->gameBall->Bottom >= Brick1->Top || Ball_List[b]->gameBall->Top <= Brick1->Bottom))
						{
							Ball_List[b]->yVel = -Ball_List[b]->yVel; top = true;
						}
					}
					else{top=false;}

AnswerRe: Ball Physics Pin
Stefan_Lang10-May-11 5:11
Stefan_Lang10-May-11 5:11 
QuestionSetting BGColor to a WebBrowser Control [modified] Pin
pix_programmer5-May-11 1:32
pix_programmer5-May-11 1:32 
QuestionRe: Setting BGColor to a WebBrowser Control Pin
వేంకటనారాయణ(venkatmakam)5-May-11 1:54
వేంకటనారాయణ(venkatmakam)5-May-11 1:54 
AnswerRe: Setting BGColor to a WebBrowser Control Pin
pix_programmer5-May-11 2:17
pix_programmer5-May-11 2:17 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
_Flaviu5-May-11 2:32
_Flaviu5-May-11 2:32 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
pix_programmer5-May-11 2:34
pix_programmer5-May-11 2:34 
QuestionRe: Setting BGColor to a WebBrowser Control Pin
Maximilien5-May-11 7:19
Maximilien5-May-11 7:19 
AnswerRe: Setting BGColor to a WebBrowser Control Pin
pix_programmer5-May-11 18:08
pix_programmer5-May-11 18:08 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
barneyman5-May-11 20:03
barneyman5-May-11 20:03 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
Cool_Dev5-May-11 22:18
Cool_Dev5-May-11 22:18 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
వేంకటనారాయణ(venkatmakam)5-May-11 22:50
వేంకటనారాయణ(venkatmakam)5-May-11 22:50 
QuestionA strange thing about using SHGetFileInfo to get icon [modified][solved] Pin
yu-jian4-May-11 22:55
yu-jian4-May-11 22:55 
AnswerRe: A strange thing about using SHGetFileInfo to get icon Pin
Michael Dunn5-May-11 13:46
sitebuilderMichael Dunn5-May-11 13:46 
AnswerRe: A strange thing about using SHGetFileInfo to get icon Pin
Iain Clarke, Warrior Programmer6-May-11 4:53
Iain Clarke, Warrior Programmer6-May-11 4:53 
GeneralRe: A strange thing about using SHGetFileInfo to get icon Pin
yu-jian9-May-11 23:44
yu-jian9-May-11 23:44 
QuestionMFC data structures Pin
_Flaviu4-May-11 20:50
_Flaviu4-May-11 20:50 
AnswerRe: MFC data structures Pin
Alexandre GRANVAUD4-May-11 21:44
Alexandre GRANVAUD4-May-11 21:44 

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.