SetWindowPos()

This is a discussion on SetWindowPos() within the C++ Programming forums, part of the General Programming Boards category; SetWindowPos(...) can someone give me an example of how to use it properly? I can't seem to get it working. ...

  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, 09:56 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21