I believe that you’re missing a correct WPARAM
for the WM_LBUTTONDOWN
message, which for the left-button is MK_LBUTTON
#define MK_LBUTTON 0x0001
More Related Contents:
- How to get parent process in .NET in managed way
- How to get started with developing Internet Explorer extensions?
- Unable to load DLL (Module could not be found HRESULT: 0x8007007E)
- How to move mouse cursor using C#?
- Win32 API function to programmatically enable/disable device
- using a class defined in a c++ dll in c# code
- Cursor.Current vs. this.Cursor
- PInvoke for C function that returns char *
- Best way to access COM objects from C#
- Move window when external application’s window moves
- Unblock File from within .net 4 c#
- How do I handle null or optional DLL struct parameters
- C# – Capturing the Mouse cursor image
- A call to PInvoke function ‘[…]’ has unbalanced the stack
- Show Authentication dialog in C# for windows Vista/7
- Returning a string from PInvoke? [duplicate]
- How can I pass a pointer to an array using p/invoke in C#?
- Add offset to IntPtr
- Launch a URL in a tab in an existing IE window from C#
- How to move the cursor or simulate clicks for other applications?
- Are P/Invoke [In, Out] attributes optional for marshaling arrays?
- Set DllImport attribute dynamically
- PInvoke C#: Function takes pointer to function as argument
- How to pass a nullable type to a P/invoked function [duplicate]
- Deploy C# ActiveX in a CAB for Internet Explorer use
- Target 32 Bit or 64 Bit native DLL depending on environment
- Is there a tool that generates P/Invoke signatures for arbitrary unmanaged DLL?
- Synchronizing 2 processes using interprocess synchronizations objects – Mutex or AutoResetEvent
- Sending CTRL-S message to a window
- Cursor Position relative to Application