Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » Fix for TopMost on Win32 to allow it to be changed at any time.
Re: Fix for TopMost on Win32 to allow it to be changed at any time. [message #5535 is a reply to message #5530] Sun, 01 October 2006 18:47 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
gprentice wrote on Sat, 30 September 2006 21:02

Hi
I've found that on Win32, calling TopMost to change the topmost property doesn't work the second or subsequent times. SDK help says SetWindowPos has to be called to change it. UPP is currently calling SetWindowLong. The code below works for me.



Thanks.

Quote:


I don't know why the first call to TopMost actually succeeds - I don't particularly care either!



I think it is because there are two phases there (which U++ usually makes look the same, but windows not) - I think that you have done the first call before opening the window (HWND does not exist), so exstyle is used for CreateWindow.

Quote:


Any idea why the code navigator takes me to TopWinX11.cpp when I use "goto definition" on the call to TopMost() ?



It should cycle through all places where it is defined/declared.

And, of course, the heurestic parser is still not perfect Smile
 
Read Message
Read Message
Previous Topic: Testers Needed for trayicon for linux version 0.2
Next Topic: [Solved] How to merge two EventLoops together
Goto Forum:
  


Current Time: Sun Aug 24 14:23:17 CEST 2025

Total time taken to generate the page: 0.03819 seconds