Click here to Skip to main content
15,923,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow save content (DC) of a MCI window as a Cbitmap (Urgent)? Pin
Julian10-Mar-00 5:32
Julian10-Mar-00 5:32 
Generalclass for ftp client and server Pin
Anonymous9-Mar-00 21:14
suss Anonymous9-Mar-00 21:14 
GeneralRE: class for ftp client and server Pin
Alex Gorev10-Mar-00 5:36
Alex Gorev10-Mar-00 5:36 
GeneralResizing controls on the fly Pin
zenubis9-Mar-00 5:54
zenubis9-Mar-00 5:54 
GeneralRE: Resizing controls on the fly Pin
Mike Dunn9-Mar-00 7:08
Mike Dunn9-Mar-00 7:08 
GeneralRE: RE: Resizing controls on the fly Pin
Anonymous11-Mar-00 2:26
suss Anonymous11-Mar-00 2:26 
GeneralRE: RE: RE: Resizing controls on the fly Pin
nyon11-Mar-00 2:33
nyon11-Mar-00 2:33 
GeneralAldus Placeable Metafiles -> Enhanced Metafile problems. Pin
Thales P. Carvalho8-Mar-00 22:44
Thales P. Carvalho8-Mar-00 22:44 
Hello -

I've some problems to create an Enhanced Metafile out of a Aldus Placeable Metafile. The following code works very well for Win98, but, for some reason, in WinNT all "text" output is painted upside-down and backwards. Besides, the bounding rectangles are misaligned.

Does anyone have some tip?

The code is the following:

// Aldus Pleaceable Metafile header
struct APMFILEHEADER
{
DWORD dwKey;
WORD hmf;
SHORT left;
SHORT top;
SHORT right;
SHORT bottom;
WORD inch;
DWORD dwReserved;
WORD checksum;
BYTE data[1];
};

...

// pData is a BYTE* to a memory buffer where the
// source file contents were loaded
const APMFILEHEADER* pApmH = (const APMFILEHEADER*)pData;

METAFILEPICT mfp;
mfp.hMF = NULL;
mfp.xExt = pApmH->right - pApmH->left;
mfp.yExt = pApmH->bottom - pApmH->top;
mfp.mm = MM_HIENGLISH;

// Construct a Enhanced Metafile from the
// Windows Metafile bits, usign the
// Aldus Placeable metrics
HENHMETAFILE hEmf = ::SetWinMetaFileBits(
dwSize - offsetof(APMFILEHEADER,data),
pApmH->data,
NULL,
&mfp );


Thanks in advance.

- Thales

Questionhow to make groupbox-title act like a button? Pin
Member 38508-Mar-00 22:28
Member 38508-Mar-00 22:28 
GeneralDocking window. Layout. NEED HELP!!! Pin
Anonymous8-Mar-00 21:31
suss Anonymous8-Mar-00 21:31 
GeneralRE: Docking window. Layout. NEED HELP!!! Pin
Anonymous11-Mar-00 6:43
suss Anonymous11-Mar-00 6:43 
GeneralCOM Arrays of arrays Pin
AJaeger7-Mar-00 23:31
AJaeger7-Mar-00 23:31 
GeneralRE: COM Arrays of arrays Pin
Alex Gorev9-Mar-00 11:54
Alex Gorev9-Mar-00 11:54 
QuestionHow to set focus to dialog controls Pin
Chris Vischer7-Mar-00 8:10
Chris Vischer7-Mar-00 8:10 
AnswerRE: How to set focus to dialog controls Pin
Member 44948-Mar-00 22:07
Member 44948-Mar-00 22:07 
Generalmicrophone Pin
Anonymous7-Mar-00 3:38
suss Anonymous7-Mar-00 3:38 
QuestionHow do I DCOM?... Pin
Kevin Moody5-Mar-00 17:44
Kevin Moody5-Mar-00 17:44 
AnswerRE: How do I DCOM?... Pin
Alex Gorev6-Mar-00 4:16
Alex Gorev6-Mar-00 4:16 
Generalhidding a dialog bassed app. at startup Pin
Anonymous4-Mar-00 7:57
suss Anonymous4-Mar-00 7:57 
GeneralRE: hidding a dialog bassed app. at startup Pin
Anonymous6-Mar-00 4:07
suss Anonymous6-Mar-00 4:07 
Generalmodeless proerty sheet. Pin
Anonymous4-Mar-00 0:03
suss Anonymous4-Mar-00 0:03 
GeneralHold redraw until view resizing is finished Pin
Mike Newberry3-Mar-00 12:10
sussMike Newberry3-Mar-00 12:10 
GeneralRE: Hold redraw until view resizing is finished Pin
Anonymous4-Mar-00 16:23
suss Anonymous4-Mar-00 16:23 
GeneralRE: Hold redraw until view resizing is finished Pin
Liahim5-Mar-00 9:02
sussLiahim5-Mar-00 9:02 
GeneralRE: RE: Hold redraw until view resizing is finished Pin
Anonymous7-Mar-00 14:42
suss Anonymous7-Mar-00 14:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.