---------------------------------------------------------------------------
| 578 | } |
| 579 | //--------------------------------------------------------------------------- |
| 580 | AnsiString TimeIntervalToString(TDateTime interval) |
| 581 | { |
| 582 | AnsiString rv; |
| 583 | DWORD dd, hh, mm, ss; |
| 584 | dd = (DWORD)(double)interval; |
| 585 | interval -= (double)dd; |
| 586 | hh = (DWORD)((double)interval/(1.0/24.0)); |
| 587 | interval -= (double)hh*(1.0/24.0); |
| 588 | mm = (DWORD)((double)interval/(1.0/1440.0)); |
| 589 | interval -= (double)mm*(1.0/1440.0); |
| 590 | ss = (DWORD)((double)interval/(1.0/86400.0)); |
| 591 | return rv.sprintf("%u %02u:%02u:%02u", dd, hh, mm, ss); |
| 592 | } |
| 593 | //--------------------------------------------------------------------------- |
| 594 | //#define AllowFormVisibleInPixel 100 |
| 595 | bool CorrectFormRect(int & l, int & t, int & w, int & h) |
nothing calls this directly
no outgoing calls
no test coverage detected