Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CListCtrl? Pin
Christian Graus12-Jan-06 14:51
protectorChristian Graus12-Jan-06 14:51 
GeneralRe: CListCtrl? Pin
dipuks12-Jan-06 16:05
dipuks12-Jan-06 16:05 
GeneralRe: CListCtrl? Pin
Christian Graus12-Jan-06 16:07
protectorChristian Graus12-Jan-06 16:07 
AnswerRe: CListCtrl? Pin
Rajesh R Subramanian12-Jan-06 17:40
professionalRajesh R Subramanian12-Jan-06 17:40 
GeneralRe: CListCtrl? Pin
dipuks14-Jan-06 10:59
dipuks14-Jan-06 10:59 
GeneralRe: CListCtrl? Pin
Rajesh R Subramanian15-Jan-06 16:56
professionalRajesh R Subramanian15-Jan-06 16:56 
GeneralRe: CListCtrl? Pin
dipuks15-Jan-06 18:15
dipuks15-Jan-06 18:15 
QuestionTrying to get an object to bounce back and forth Pin
chadsxe12-Jan-06 13:36
chadsxe12-Jan-06 13:36 
Well this should be simple but I can't for the life of me figure it out.....
void Game_Run()<br />
{<br />
<br />
    RECT rect;<br />
    GetClientRect(global_hwnd, &rect);<br />
<br />
    if (rect.right > 0) <br />
    {     	<br />
		gPosX = gPosX + 1;<br />
		if ( gPosX >= rect.right )<br />
		{<br />
			gPosX = gPosX - 1;<br />
		}<br />
		if ( gPosY >  rect.bottom - 30 )<br />
		{<br />
			gPosY = 0;<br />
			gPosX=0;<br />
		}<br />
        DrawBitmap(global_hdc, "c.bmp", gPosX, gPosY); <br />
    }<br />
<br />
    //iCount++;<br />
    //sprintf(buffer,"%d",iCount );<br />
    //TextOut(global_hdc,400,10, buffer,strlen(buffer));<br />
}
I basically am trying to get this dam thing to move right (which it does) hit the rect.right and then move left hit the rect.right then repeat....anyone want to help end my misery of tyring to figure this out

thanks

Chad
AnswerRe: Trying to get an object to bounce back and forth Pin
Stephen Hewitt12-Jan-06 14:01
Stephen Hewitt12-Jan-06 14:01 
AnswerRe: Trying to get an object to bounce back and forth Pin
Bob Flynn13-Jan-06 0:39
Bob Flynn13-Jan-06 0:39 
Questionofstream driving me nuts Pin
Brian van der Beek12-Jan-06 11:00
Brian van der Beek12-Jan-06 11:00 
AnswerRe: ofstream driving me nuts Pin
Christian Graus12-Jan-06 12:57
protectorChristian Graus12-Jan-06 12:57 
GeneralRe: ofstream driving me nuts Pin
Brian van der Beek12-Jan-06 20:25
Brian van der Beek12-Jan-06 20:25 
GeneralRe: ofstream driving me nuts Pin
__yb13-Jan-06 12:05
__yb13-Jan-06 12:05 
QuestionC# DLL Pin
siedell12-Jan-06 10:40
siedell12-Jan-06 10:40 
AnswerRe: C# DLL Pin
Christian Graus12-Jan-06 12:56
protectorChristian Graus12-Jan-06 12:56 
QuestionWas It Wininet? Pin
GreenLantern12-Jan-06 9:51
GreenLantern12-Jan-06 9:51 
AnswerRe: Was It Wininet? Pin
Chris Losinger12-Jan-06 10:38
professionalChris Losinger12-Jan-06 10:38 
GeneralRe: Was It Wininet? Pin
GreenLantern12-Jan-06 13:05
GreenLantern12-Jan-06 13:05 
GeneralRe: Was It Wininet? Pin
Chris Losinger12-Jan-06 15:01
professionalChris Losinger12-Jan-06 15:01 
QuestionHow to simulate a line function? Pin
Ming Luo12-Jan-06 8:52
Ming Luo12-Jan-06 8:52 
AnswerRe: How to simulate a line function? Pin
Curtis Schlak.12-Jan-06 10:51
Curtis Schlak.12-Jan-06 10:51 
QuestionCompiling log4cpp or advice for a log api Pin
julian_ross12-Jan-06 8:03
julian_ross12-Jan-06 8:03 
AnswerRe: Compiling log4cpp or advice for a log api Pin
Chris Losinger12-Jan-06 8:39
professionalChris Losinger12-Jan-06 8:39 
GeneralRe: Compiling log4cpp or advice for a log api Pin
julian_ross12-Jan-06 8:50
julian_ross12-Jan-06 8:50 

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.