Click here to Skip to main content
15,919,774 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ADODB pointer Pin
Toni785-Aug-03 22:49
Toni785-Aug-03 22:49 
GeneralRe: ADODB pointer Pin
Chao Zuo5-Aug-03 23:12
Chao Zuo5-Aug-03 23:12 
GeneralRe: ADODB pointer Pin
_crs_5-Aug-03 23:07
_crs_5-Aug-03 23:07 
GeneralConverting hexadecimal to decimal in C++ Pin
Member 1609885-Aug-03 22:15
Member 1609885-Aug-03 22:15 
GeneralRe: Converting hexadecimal to decimal in C++ Pin
Chao Zuo5-Aug-03 22:35
Chao Zuo5-Aug-03 22:35 
GeneralRe: Converting hexadecimal to decimal in C++ Pin
RChin5-Aug-03 22:36
RChin5-Aug-03 22:36 
GeneralRe: Converting hexadecimal to decimal in C++ Pin
Toni785-Aug-03 22:47
Toni785-Aug-03 22:47 
Generala clipboard question Pin
Chao Zuo5-Aug-03 21:44
Chao Zuo5-Aug-03 21:44 
How I control the size of a window meta file when paste it?

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 function. Why? How control the size in win98?

Thanks a lot.



Yes,Free Code project~~~~
GeneralCBitmapButton Pin
Marissa1825-Aug-03 21:24
Marissa1825-Aug-03 21:24 
GeneralRe: CBitmapButton Pin
Toni785-Aug-03 21:41
Toni785-Aug-03 21:41 
GeneralRe: CBitmapButton Pin
Marissa1825-Aug-03 21:43
Marissa1825-Aug-03 21:43 
GeneralRe: CBitmapButton Pin
Toni785-Aug-03 22:05
Toni785-Aug-03 22:05 
QuestionWhat is wrong in this piece of code... Pin
Exceter5-Aug-03 21:20
Exceter5-Aug-03 21:20 
AnswerRe: What is wrong in this piece of code... Pin
Toni785-Aug-03 21:51
Toni785-Aug-03 21:51 
GeneralRe: What is wrong in this piece of code... Pin
Exceter5-Aug-03 22:23
Exceter5-Aug-03 22:23 
GeneralRe: What is wrong in this piece of code... Pin
Toni785-Aug-03 22:44
Toni785-Aug-03 22:44 
GeneralRe: What is wrong in this piece of code... Pin
Exceter5-Aug-03 23:15
Exceter5-Aug-03 23:15 
GeneralRe: What is wrong in this piece of code... Pin
Steve S5-Aug-03 23:25
Steve S5-Aug-03 23:25 
GeneralRe: What is wrong in this piece of code... Pin
Exceter5-Aug-03 23:43
Exceter5-Aug-03 23:43 
QuestionWhat is wrong in this piece of code... Pin
Exceter5-Aug-03 21:20
Exceter5-Aug-03 21:20 
AnswerRe: What is wrong in this piece of code... Pin
Alexander M.,6-Aug-03 0:01
Alexander M.,6-Aug-03 0:01 
Questionwhat is the message generated? Pin
BK Pradeep5-Aug-03 21:17
BK Pradeep5-Aug-03 21:17 
AnswerRe: what is the message generated? Pin
Fredrik Skog6-Aug-03 0:50
Fredrik Skog6-Aug-03 0:50 
GeneralTransparent gradient shading Pin
lob5-Aug-03 21:08
lob5-Aug-03 21:08 
GeneralRe: Transparent gradient shading Pin
PJ Arends5-Aug-03 22:56
professionalPJ Arends5-Aug-03 22:56 

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.