Click here to Skip to main content
15,917,565 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pop-up windows Pin
PJ Arends6-Aug-03 21:48
professionalPJ Arends6-Aug-03 21:48 
GeneralRe: Pop-up windows Pin
Hktam6-Aug-03 21:53
Hktam6-Aug-03 21:53 
GeneralChecking the screen res Pin
bneacetp6-Aug-03 15:29
bneacetp6-Aug-03 15:29 
GeneralRe: Checking the screen res Pin
Hktam6-Aug-03 15:51
Hktam6-Aug-03 15:51 
GeneralRe: Checking the screen res Pin
bneacetp6-Aug-03 16:52
bneacetp6-Aug-03 16:52 
GeneralRe: Checking the screen res Pin
xxhimanshu6-Aug-03 19:01
xxhimanshu6-Aug-03 19:01 
GeneralRe: Checking the screen res Pin
Dangleberry7-Aug-03 2:50
sussDangleberry7-Aug-03 2:50 
Generala clipboard-question too Pin
Chao Zuo6-Aug-03 15:11
Chao Zuo6-Aug-03 15:11 
Hello,all

How control the size of a window meta file(WMF) when paste it into a richedit?

example:

//write a WMF and put it into the clipboard.
void copy()
{
CMetaFileDC * m_pMetaDC = new CMetaFileDC();
CRect rc(0,0,20000,20000);
m_pMetaDC->CreateEnhanced(GetDC(),_T ("c:\\test.wmf"),&rc,"name");

//drawing the lines in the DC.....

HENHMETAFILE hMF= m_pMetaDC->CloseEnhanced();

//copy to the clipboard
OpenClipboard();
EmptyClipboard();
::SetClipboardData(CF_ENHMETAFILE,hMF);
CloseClipboard();
}

//then paste the file in a CRichEditView.
void CMyView::PasteIt()
{
GetRichEditCtrl()->Paste();

//clear the clipboard
OpenClipboard();
EmptyClipboard();
CloseClipboard();
}

In windows2000, I can control the size of the metafile with the third parameter of the function CreateEnhanced().But in Win98, the parameter have no effect on the program. Why? How control the size in win98?

Thanks a lot.





Yes,Free Code project~~~~
GeneralRe: a clipboard-question too Pin
Chao Zuo6-Aug-03 16:07
Chao Zuo6-Aug-03 16:07 
GeneralPacking and running files with protection Pin
Kayembi6-Aug-03 14:44
Kayembi6-Aug-03 14:44 
GeneralRe: Packing and running files with protection Pin
Andrew Walker6-Aug-03 15:13
Andrew Walker6-Aug-03 15:13 
GeneralRe: Packing and running files with protection Pin
Kayembi7-Aug-03 0:20
Kayembi7-Aug-03 0:20 
GeneralMFC picture control Pin
rapace6-Aug-03 13:20
rapace6-Aug-03 13:20 
GeneralRe: MFC picture control Pin
zeki yugnak6-Aug-03 13:43
zeki yugnak6-Aug-03 13:43 
GeneralRe: MFC picture control Pin
rapace6-Aug-03 13:51
rapace6-Aug-03 13:51 
GeneralCreating MHT archives Pin
DarrollWalsh6-Aug-03 12:47
DarrollWalsh6-Aug-03 12:47 
QuestionHow to use Windows XP 'fade to black and white' screen? Pin
ckr6-Aug-03 11:38
ckr6-Aug-03 11:38 
GeneralProblem with ShowWindow() and losing focus Pin
s_k6-Aug-03 11:17
s_k6-Aug-03 11:17 
GeneralMouse X.Y in WM_NOTIFY: LVN_ITEMACTIVATE Pin
Mike Doner6-Aug-03 8:59
Mike Doner6-Aug-03 8:59 
GeneralRe: Mouse X.Y in WM_NOTIFY: LVN_ITEMACTIVATE Pin
Chunhua Liu6-Aug-03 11:37
Chunhua Liu6-Aug-03 11:37 
GeneralRe: Mouse X.Y in WM_NOTIFY: LVN_ITEMACTIVATE Pin
jhwurmbach6-Aug-03 22:01
jhwurmbach6-Aug-03 22:01 
QuestionCreate a report in VC6? Pin
_skidrow_vn_6-Aug-03 8:48
_skidrow_vn_6-Aug-03 8:48 
GeneralCString toupper Pin
keegan6-Aug-03 8:38
keegan6-Aug-03 8:38 
GeneralRe: CString toupper Pin
Michael P Butler6-Aug-03 9:14
Michael P Butler6-Aug-03 9:14 
GeneralRe: CString toupper Pin
keegan6-Aug-03 9:23
keegan6-Aug-03 9:23 

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.