Hi, im building a remote desktop application, everything work fine now except for one thing...
Let's say i press the windows key, the start menu pop up in the controled machine as expected, but also pop up on the machine that's controling the other and the same is true for stuff like alt-space ect.
As a side note, Im using c++ builder for my project.
Now, i think i could maybe get rid of this by using a keyboard hook, but id really like to avoid this as much as possible.
So far, i tried this
class TViewerForm : public TForm
{
...
protected:
virtual void __fastcall WndProc(Messages::TMessage &Message);
...
}
void __fastcall TViewerForm::WndProc(Messages::TMessage &Message)
{
if(Message.Msg == WM_KEYDOWN || Message.Msg == WM_KEYUP || Message.Msg == WM_SYSKEYDOWN || Message.Msg == WM_SYSKEYUP){
return;
}
TForm::WndProc(Message); // Default processing for any other message
}
but it dosen't seem to work.
If anybody as an idea plz let me know.