Solved

# Minimizing and time usage

Posted on 1998-04-25
183 Views
How do you minimize an app like normal windows by pressing a standard button?

Also how can I convert seconds into hh:mm:ss ?

I am using CBuilder 1 (I know, golden oldie)

Kind Regs,
Rob Green.
0
Question by:robjgreen
• 2

LVL 22

Accepted Solution

nietod earned 50 total points
0

LVL 22

Expert Comment

1.  To minimize a window use the ShowWindow() procedure with the SW_MINIMIZE. "command".

2.  To convert seconds to hours divide by 3600 (that's 60*60).  Take the integer part of that (or do the math in integer instead of floating point).  Then to do the minutes take the remainder of the division and divide by 60.  The integer part is the minutes the remainder is the seconds.  For example.given the seconds in TotalSeconds.

int Hours = TotalSeconds / 3600;

TotalsSecond = TotalSeconds % 3600;

int Minutes = TotalSeconds / 60;
Int Seconds = TotalSeconds % 60;
0

## Featured Post

Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.