How to pass HDC within Message?

Discuss other programming languages besides AutoHotkey
brandonhotkey
Posts: 113
Joined: 03 Nov 2013, 05:46

How to pass HDC within Message?

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
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: How to pass HDC within Message?

12 May 2014, 08:50

SendMessage(HWindow, WM_PRINTCLIENT, (WPARAM)HDC, 0);

Return to “Other Programming Languages”

Who is online

Users browsing this forum: No registered users and 6 guests