CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: Notify Window

  1. #1
    Join Date
    Aug 2004
    Location
    USA
    Posts
    90

    Notify Window

    Can any one help me to display Notify Window(LIKE MSN messenger window, pop up on right hand corner) on top of each other and not in front of each other?
    Any Suggestions
    Thanks in advance
    Shash

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940
    You can get the necessary information to position a window from the members of

    System.Windows.Forms.SystemInformation

    You can then create your form in an appropriate postion and possibly make it top most, or certainly put focus to it :

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

  3. #3
    Join Date
    Aug 2004
    Location
    USA
    Posts
    90

    Re: Notify Window

    Hi
    I have written the code and everything is ready from my side..but I am not getting how to display it on top of other window and NOT in front of other window?
    Any Suggestions....
    Thanks
    Shash

  4. #4
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890

    Re: Notify Window

    does the TopMost property of window helps you ?
    - Software Architect

  5. #5
    Join Date
    Aug 2004
    Location
    USA
    Posts
    90

    Re: Notify Window

    Hi
    I am sorry but I did not get what does TopMost property of Window mean?
    Thanks
    shash

  6. #6
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890

    Re: Notify Window

    Okay, do you have sample code and can you attach zip file here. ?

    thanks
    Paresh.
    - Software Architect

  7. #7
    Join Date
    Aug 2004
    Location
    USA
    Posts
    90

    Re: Notify Window

    This what information available in my code about notify window.Any suggestions Please...


    StartPosition = System.Windows.Forms.FormStartPosition.Manual;
    --------------------------------------------------------------------------------------------------------

    // SetWindowPos()
    protected const Int32 HWND_TOPMOST = -1; //-1
    protected const Int32 SWP_NOACTIVATE = 0x0010; //0x0010

    --------------------------------------------------------------------------------------------------------
    // user32.dll
    [DllImport ("user32.dll")]
    protected static extern bool ShowWindow (IntPtr hWnd, Int32 flags);
    [DllImport ("user32.dll")]
    protected static extern bool SetWindowPos (IntPtr hWnd, Int32 hWndInsertAfter, Int32 X, Int32 Y, Int32 cx, Int32 cy, uint uFlags);





    Thanks
    shash

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