Displaying time in all active windows

Discussion in 'MFC' started by palz, Jan 14, 2010.

  1. palz

    palz New Member

    Joined:
    Jan 13, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    How to put time in any window i.e active window .:confused:

    I mean i want to show this time on every window that i open.for example it may be a note pad,browser.....etc

    is there any function or should i use any other method.
     
  2. palz

    palz New Member

    Joined:
    Jan 13, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    plz give me hints.
     
  3. Gene Poole

    Gene Poole New Member

    Joined:
    Nov 10, 2009
    Messages:
    93
    Likes Received:
    5
    Trophy Points:
    0
    No easy way I can think of, but it sounds like a waste of time. There's a clock down there in the lower-right corner always showing the time no matter what window is open. Alternatively, you could make a always-on-top tool window (like a gadget) with a clock in it.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I would suggest you the following.

    Do a find Window and get the handle to the window.
    Then set the active windows text and then change using the handle till the handle is valid.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice