Thread: SetWindowPos()

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    22

    SetWindowPos()

    SetWindowPos(...)
    can someone give me an example of how to use it properly?
    I can't seem to get it working.
    I just want to make the window always on top.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Maybe something like:

    Code:
    SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
    If not, then look up the parameters it takes on MSDN and experiment.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SetWindowPos not resizing
    By axr0284 in forum Windows Programming
    Replies: 2
    Last Post: 03-10-2006, 09:33 AM
  2. need SetWindowPos() help
    By nerore in forum C++ Programming
    Replies: 5
    Last Post: 01-11-2004, 06:31 AM
  3. SetWindowPos doesn't seem to work
    By Mithoric in forum Windows Programming
    Replies: 10
    Last Post: 12-21-2003, 10:10 PM
  4. setwindowpos()
    By kryptkat in forum Windows Programming
    Replies: 2
    Last Post: 07-08-2003, 08:56 AM