Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Minimizing and time usage

Posted on 1998-04-25
2
Medium Priority
?
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 100 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall‚Ķ
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
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.

722 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