15,880,392 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 Re: Routing Enter/Return key press to a Dialog Albert Holguin15-Jun-11 5:12 Albert Holguin 15-Jun-11 5:12
 Re: Routing Enter/Return key press to a Dialog David Crow15-Jun-11 5:57 David Crow 15-Jun-11 5:57
 Problem in creating dsn using sqlconfigdatasource() shashankacharya15-Jun-11 0:58 shashankacharya 15-Jun-11 0:58
 Re: Problem in creating dsn using sqlconfigdatasource() David Crow15-Jun-11 2:09 David Crow 15-Jun-11 2:09
 Re: Problem in creating dsn using sqlconfigdatasource() gaspher17-Jun-11 13:06 gaspher 17-Jun-11 13:06
 VPN Server and Client dwk0014-Jun-11 22:34 dwk00 14-Jun-11 22:34
 Equation for a straight line Cyclone_S14-Jun-11 13:48 Cyclone_S 14-Jun-11 13:48
 Re: Equation for a straight line tolw14-Jun-11 19:27 tolw 14-Jun-11 19:27
 1. Think about how fast you want the box to go - i.e. how many timer ticks should it take. For example: NumberOfTicks = 10; 2. Look at the coordinates independently. DistanceX = 291 - 9 = 282 DistanceY = 178 - 6 = 172 3. Calculate the step needed in each tick to get there in time. Careful! It may not be precise if you use ints - but that's not a problem: StepX = 282 / NumberOfTicks ~= 28 StepY = 172 / NumberOfTicks ~= 17 4. Change the box position by the given step in each timer tick. Because the steps are rounded down (see step 3) you should also store the end position you want to get to and move the box there in the last step (not too elegant, but it will get the job done without anyone noticing). Sure hope this helps, but seriously if this math is too complex to figure out you've got a long way to go my friend. Best of luck to you.
 Re: Equation for a straight line Cyclone_S15-Jun-11 10:31 Cyclone_S 15-Jun-11 10:31
 Re: Equation for a straight line tolw15-Jun-11 18:56 tolw 15-Jun-11 18:56
 Re: Equation for a straight line Stefan_Lang15-Jun-11 23:48 Stefan_Lang 15-Jun-11 23:48
 Re: Equation for a straight line Cyclone_S17-Jun-11 15:13 Cyclone_S 17-Jun-11 15:13
 Why is there no cfind() in the std containers? Craig Longman14-Jun-11 12:15 Craig Longman 14-Jun-11 12:15
 Re: Why is there no cfind() in the std containers? Stefan_Lang15-Jun-11 23:19 Stefan_Lang 15-Jun-11 23:19
 Re: Why is there no cfind() in the std containers? Craig Longman20-Jun-11 12:59 Craig Longman 20-Jun-11 12:59
 [SOLVED]CWebBrowser2 not getting displayed on a dialog in a dll. [modified] chandu00414-Jun-11 11:26 chandu004 14-Jun-11 11:26
 Re: CWebBrowser2 not getting displayed on a dialog in a dll. chandu00414-Jun-11 12:19 chandu004 14-Jun-11 12:19
 Re: CWebBrowser2 not getting displayed on a dialog in a dll. pix_programmer14-Jun-11 21:08 pix_programmer 14-Jun-11 21:08
 [SOLUTION] chandu00417-Jun-11 11:19 chandu004 17-Jun-11 11:19
 convert short to Cstring... spalanivel14-Jun-11 2:27 spalanivel 14-Jun-11 2:27
 Re: convert short to Cstring... వేంకటనారాయణ(venkatmakam)14-Jun-11 2:37 వేంకటనారాయణ(venkatmakam) 14-Jun-11 2:37
 Re: convert short to Cstring... Albert Holguin14-Jun-11 3:29 Albert Holguin 14-Jun-11 3:29
 Re: convert short to Cstring... Richard MacCutchan14-Jun-11 2:41 Richard MacCutchan 14-Jun-11 2:41
 Re: convert short to Cstring... Cool_Dev15-Jun-11 3:45 Cool_Dev 15-Jun-11 3:45
 [SOLVED] Problem with adding set of strings from registry to combobox [modified] Gaurav Paul14-Jun-11 0:45 Gaurav Paul 14-Jun-11 0:45
 Last Visit: 31-Dec-99 18:00     Last Update: 17-Apr-24 14:15 Refresh ᐊ Prev1...1279128012811282128312841285128612871288 Next ᐅ

General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.