Hi,
I have a question that I hope can be answered in this forum.
What I want is quite simple to explain: I want global mouse messages (especially WM_LBUTTONDOWN, RBUTTONDOWN and DBLCLK) to be blocked and if they are over my app-window to be sent to it.
What I want to achieve is to block people from clicking on the start-button or taskbar or to open any other apps.
I have already locked the keybord by calling SetWindowsHookEx and doing everything necessary (CTRL+ALT+DEL isn't blocked, but I can live with that) and I have done the same thing with the mouse. The thing is, it works fine with the start button (no reaction on click), but I want the mouse to work in the app-window. And because Buttons etc. are windows to, they wont get any mouse messages too; only the main window. Has anyone an idea how I can find out, if a message has to be sent to a button anf if yes how to get the HWND I need for PostMessage???
Any suggestions are highly appreciated
I have a question that I hope can be answered in this forum.
What I want is quite simple to explain: I want global mouse messages (especially WM_LBUTTONDOWN, RBUTTONDOWN and DBLCLK) to be blocked and if they are over my app-window to be sent to it.
What I want to achieve is to block people from clicking on the start-button or taskbar or to open any other apps.
I have already locked the keybord by calling SetWindowsHookEx and doing everything necessary (CTRL+ALT+DEL isn't blocked, but I can live with that) and I have done the same thing with the mouse. The thing is, it works fine with the start button (no reaction on click), but I want the mouse to work in the app-window. And because Buttons etc. are windows to, they wont get any mouse messages too; only the main window. Has anyone an idea how I can find out, if a message has to be sent to a button anf if yes how to get the HWND I need for PostMessage???
Any suggestions are highly appreciated