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++ Widgets - General questions or Mixed problems » RegisterSystemHotKey() only inside a program
Re: RegisterSystemHotKey() only inside a program [message #36088 is a reply to message #36087] Thu, 26 April 2012 15:40 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
Hi koldo:

I examined some relevant upp source, chance is there is no such facilities provided currently.

eg, for Win32

$(uppsrc)/CtrlCore/Win32Wnd.cpp
void Ctrl::sProcessMSG(MSG& msg)
{
	if (msg.message == WM_HOTKEY) {
		if(msg.wParam >= 0 && (int)msg.wParam < Ctrl::hotkey.GetCount())
			Ctrl::hotkey[(int)msg.wParam]();
		return;
	}
	if(msg.message != WM_SYSKEYDOWN && msg.message != WM_SYSKEYUP
	|| PassWindowsKey((dword)msg.wParam) || msg.wParam == VK_MENU) //17.11 Mirek - fix to get windows menu invoked on Alt+Space
		TranslateMessage(&msg); // 04/09/07: TRC fix to make barcode reader going better

        // Code can be inserted here to add the required facility IMHO

	if(IsWindowUnicode(msg.hwnd))
		DispatchMessageW(&msg);
	else
		DispatchMessage(&msg);
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem compiling r4596
Next Topic: PushButton with text in the bottom
Goto Forum:
  


Current Time: Mon Feb 02 00:37:25 CET 2026

Total time taken to generate the page: 0.12569 seconds