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 » Community » Newbie corner » always on top SOLVED (GUI)
Re: always on top [message #46253 is a reply to message #46252] Sat, 02 April 2016 23:43 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
It surprised me that it didn't work for you. The linked post is actually irrelevant to our situation.

If you can create a minimized sample, I can try and determine what goes wrong.

Before that, try the following
#include <CtrlLib/CtrlLib.h>

using namespace Upp;

GUI_APP_MAIN
{
	TopWindow a;
	a.Open();
	a.TopMost().Run();
}


Replace TopWindow with your TopWindow direvative. This is neater way to guarantee the TopWinow(derivative)'s top->hwnd is initiallized, ie, call Open() before call TopMost().

If above won't work, then your problem is a little different, e.g., your ctrl might have a parent (which will result in GetHWND() returning NULL).

[Updated on: Sat, 02 April 2016 23:59]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: upp-mingw-9671 with win\upp9628 SOLVED
Next Topic: link error with MINGW - - SOLVED
Goto Forum:
  


Current Time: Wed Jun 04 17:58:03 CEST 2025

Total time taken to generate the page: 1.21925 seconds