Post by brandonhotkey » 12 May 2014, 08:35
How can I send HDC within message?
Code: Select all
SendMessage(HWindow, WM_PRINTCLIENT, HDC, 0);
prints error
cannot convert parameter 3 from 'HDC' to 'WPARAM' (C++)
Or I tryied:
Code: Select all
SendMessage(HCapture, WM_COMMAND, 0, HDc);
and recieved error:
C2664: 'SendMessageW' : cannot convert parameter 4 from 'HDC' to 'LPARAM'
There is no context in which this conversion is possible
How can I send HDC within message?
[code=autohotkey file=Script.ahk]SendMessage(HWindow, WM_PRINTCLIENT, HDC, 0);[/code]
prints error [b]cannot convert parameter 3 from 'HDC' to 'WPARAM' [/b] (C++)
Or I tryied:
[code]SendMessage(HCapture, WM_COMMAND, 0, HDc);[/code]
and recieved error:
C2664: 'SendMessageW' : cannot convert parameter 4 from 'HDC' to 'LPARAM'
There is no context in which this conversion is possible