Solved

Minimizing and time usage

Posted on 1998-04-25
2
183 Views
Last Modified: 2010-08-05
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
Comment
Question by:robjgreen
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
Comment Utility
answers coming.
0
 
LVL 22

Expert Comment

by:nietod
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

  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.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now