CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2001
    Location
    Pune
    Posts
    7

    Application Notification

    Hello There ,

    I had a requirement where if my application is minimised and some events happens then the application should start blinking in the taskbar .

    Can anyone help me out for this situation .

    Thanks ,
    Rahul


    You can see stars when it is darks.

  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: Application Notification

    check out the FlashWindowEx API.

    HTH

    cksiow
    http://vblib.virtualave.net - share our codes


  3. #3
    Join Date
    May 2001
    Location
    Russia
    Posts
    200

    Re: Application Notification


    Const FLASHW_STOP = 0
    Const FLASHW_CAPTION = &H1
    Const FLASHW_TRAY = &H2
    Const FLASHW_ALL = (FLASHW_CAPTION Or FLASHW_TRAY)
    Const FLASHW_TIMER = &H4
    Const FLASHW_TIMERNOFG = &HC

    private Type FLASHWINFO
    cbSize as Long
    hwnd as Long
    dwFlags as Long
    uCount as Long
    dwTimeout as Long
    End Type

    private Declare Function FlashWindowEx Lib "user32" _
    (pfwi as FLASHWINFO) as Boolean

    private Sub Form_Load()
    Dim FlashInfo as FLASHWINFO
    FlashInfo.cbSize = len(FlashInfo)
    FlashInfo.dwFlags = FLASHW_ALL Or FLASHW_TIMER
    FlashInfo.dwTimeout = 0
    FlashInfo.hwnd = me.hwnd
    FlashInfo.uCount = 0
    FlashWindowEx FlashInfo
    End Sub





    Andy Tower

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured