Solved

Minimizing and time usage

Posted on 1998-04-25
2
184 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
ID: 1164158
answers coming.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1164159
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

920 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

13 Experts available now in Live!

Get 1:1 Help Now