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 » [FEATURE] Setting TopWindow to urgent/flashing state
Re: [FEATURE] Setting TopWindow to urgent/flashing state [message #30895 is a reply to message #30883] Thu, 27 January 2011 22:16 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Testedon windows Vista and it works fine Wink

Only problem is when compiling with Mingw, there is probably some bug in mingw headers, causing FLASHWINFO to be undeclared. So to fix it, following must be added at te top of TopWin32.cpp:
#ifdef COMPILER_MINGW
	extern "C"{
		struct FLASHWINFO {
			UINT  cbSize;
			HWND  hwnd;
			DWORD dwFlags;
			UINT  uCount;
			DWORD dwTimeout;
		};
		WINUSERAPI BOOL WINAPI FlashWindowEx(FLASHWINFO*);
	}
	#define FLASHW_STOP         0
	#define FLASHW_CAPTION      0x00000001
	#define FLASHW_TRAY         0x00000002
	#define FLASHW_ALL          (FLASHW_CAPTION | FLASHW_TRAY)
	#define FLASHW_TIMER        0x00000004
	#define FLASHW_TIMERNOFG    0x0000000C
#endif


Honza
 
Read Message
Read Message
Read Message
Previous Topic: Trouble with IsMinimized / IsMaximized on X11
Next Topic: Windows that cant leave Mainwindow
Goto Forum:
  


Current Time: Fri Jun 07 06:15:03 CEST 2024

Total time taken to generate the page: 0.00801 seconds