Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set window neg 1

Status
Not open for further replies.

Vec

IS-IT--Management
Jan 29, 2002
418
US
I use this to lock the app so that nothing else can move above it, but what is the opposite, or basically how do I turn it off? There are times when I need forms to open and then they need to be on top.

result = SetWindowPos(frmMain.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)

-------------------------------------------------------------------------
-------------------------------------------------------------------------

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
- Albert Einstein (1879-1955)
 
result = SetWindowPos(frmMain.hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, FLAGS)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top