Thread: Flashing when minimized

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    102

    Flashing when minimized

    hello, i am trying to make my program in the task bar start flashing when there is a change to my program that i want to inform the user about, I hope you understand what I mean.

    thanks

  2. #2
    Registered User
    Join Date
    Jul 2004
    Posts
    35
    Like when using an IM, such as MSN, and someone sends you a message when the window is inactive?

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Have a look at FlashWindow() and FlashWindowEx().

    gg

  4. #4
    Registered User
    Join Date
    Apr 2004
    Posts
    102
    FlashWindow() works to flash once, and it says use FlashWindowEx() if you want it to flash more than once, but VC++ 6.0 isn't recognising FlashWindowEx() or the FLASHWINFO struct.
    error C2065: 'FlashWindowEx' : undeclared identifier
    error C2065: 'FLASHWINFO' : undeclared identifier

    Any ideas?
    windows.h is included.

  5. #5
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    FlashWindowEx() is not available on all Windows versions. Which version are you using, and is you SDK up to date?
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  6. #6
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214
    Client: Requires Windows XP, Windows 2000 Professional, Windows Me, or Windows 98

  7. #7
    Registered User
    Join Date
    Aug 2004
    Posts
    23

    Smile SetForegroundWindow

    Try SetForegroundWindow(). if the window isn't active then it starts flashing in the taskbar, it works on my Win 98.

    it's used like this: SetForegroundWindow(hwnd);

    cal
    Last edited by calpol2004; 10-10-2004 at 10:55 AM. Reason: function named wrong

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. show window minimized maximized without focus taken
    By eXistenZ in forum Windows Programming
    Replies: 16
    Last Post: 12-15-2008, 12:38 PM
  2. Make screenshot of a minimized window
    By Plasm4 in forum Windows Programming
    Replies: 7
    Last Post: 07-25-2008, 07:46 AM
  3. Detecting if a window is minimized
    By Yuri in forum Windows Programming
    Replies: 1
    Last Post: 05-06-2006, 03:46 AM
  4. Flashing screen?????
    By Joe100 in forum Game Programming
    Replies: 2
    Last Post: 10-29-2003, 03:03 AM
  5. Print without flashing cursor
    By johnnyd in forum C Programming
    Replies: 4
    Last Post: 04-02-2002, 09:37 PM