March 28th, 2013, 08:57 AM
I have solved part of the problem. Thanks to those who have helped. It seems that HMETAFILE is not an handle or, more exactly, the Handle functions do not work with HMETAFILE. I can, instead, save...
March 27th, 2013, 02:05 PM
do you have an example project that I can open with Visual Studio 2012 and compare with mine?
March 27th, 2013, 12:18 PM
Here is the whole function:
void PerformPaste( Document *doc )
PageInfo *page = doc->page;
Layout *L = page->piece;
int ceiling =...
March 27th, 2013, 12:03 PM
what shall i do to get a valid handle from the METAFILEPICT structure?
March 27th, 2013, 11:50 AM
GetLastError() returns 6. I can't find the meaning of this code, however.
GlobalFlags( mfp->hMF ) returns GMEM_INVALID_HANDLE
March 27th, 2013, 09:28 AM
I want to paste a picture from Paint into my program. My code is:
HANDLE handle = GetClipboardData( CF_METAFILEPICT );
if ( handle )
METAFILEPICT *mfp = (METAFILEPICT*) GlobalLock( handle );...
August 30th, 2012, 04:47 AM
Thanks a lot, this is all I needed. :wave:
August 28th, 2012, 03:32 PM
The editor for dialog templates (in Visual Studio 11), shows an option into the "Properties" panel. The name of the option is "Help ID" and the explanation is: "Assigns a help ID based on the...
August 25th, 2012, 11:45 AM
Hello, I am rather new to Windows programming and I am writing a C application using the Win32 APIs.
My application should look more or less like the picture in this old (but not outdated) msdn...