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

Thread: SetWindowPos

  1. #1
    Join Date
    Dec 2003
    Location
    Spain
    Posts
    52

    SetWindowPos

    I want two forms to be always on top of any window.Besides, form1 must be on top of form2. I haven't been able to get this last thing to work with SetWindowPos. Some help please?

  2. #2
    Join Date
    Jul 2003
    Posts
    147

    Re: SetWindowPos

    Try something like this.

    Code:
    form2.SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE);
    form1.SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE);
    "Live only for tomorrow, and you will have a lot of empty yesterdays today."

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