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 » U++ Library : Other (not classified elsewhere) » How to set a global (system) keyboard hook?
Re: How to set a global (system) keyboard hook? [message #23134 is a reply to message #23132] Fri, 18 September 2009 05:55 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
midra wrote on Thu, 17 September 2009 18:37

Hi!
I'm new to U++ Sad
My problem is: how can I set a global (system) keyboard hook?

I want my dialog to appear on top of other windows when user presses some combination of keys (e.g. Control+Alt+C)

My program is supposed to run in Windows.

Thanks in advance for any help!
Best regards,
midra



You have to use host platform API (Win32).

I guess this one is what you need:

http://msdn.microsoft.com/en-us/library/ms646309%28VS.85%29. aspx?ppud=4

Then put GetHWND of some of your TopWindows in there and override

virtual LRESULT Ctrl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam);


(Do not forget to call TopWindow::WindowProc at the end).

Mirek
 
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: Segfaults with One container?
Next Topic: Add maximize and reduce to icon
Goto Forum:
  


Current Time: Fri Jul 18 03:51:31 CEST 2025

Total time taken to generate the page: 0.04894 seconds