|
An idiot with no humor has down voted me. I don't get the point. I am talking to you and someone else is voting me down for no reason. I hate when this happens.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Well I voted you up to balance and I have the superpowers...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Thanks for the vote! We now have a super-powered addict.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: super-powered addict
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
For this one, I think even the CPMRU would have failed
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
|
CPMRU: code project mind reader unit
|
|
|
|
|
Cedric Moonen wrote: CPMRU: code project mind reader unit
oh.. any training available for that
|
|
|
|
|
Well, yes you can practice a lot on that recently on this message board
|
|
|
|
|
no i want to learn .. i want to expert no no no no ... i want to learn
|
|
|
|
|
Hi Firends,
I am using the fllowing code to create a meta file
HDC hDCMeta = CreateEnhMetaFile(m_hDC, "D:\\Data.emf", NULL, buf);
m_hDc is handle to printer dc. buf represents the name of application.
after creating the meta file I am drawing some information with m_hDC and at the end closing the metafile.
m_hMeta = CloseEnhMetaFile( hDCMeta );
CloseEnhMetaFile() function fails as it returns NULL but when tring to get the error message using GetLastError its returning ERROR_SUCCESS.
Before calling CloseEnhMetaFile() I prompted a messagebox and checked that the file Data.emf created in D:\ drive with size more than 1 GB. (I am having 1 GB ram).
soon after CloseEnhMetaFile() call fails the file also get delete disk.
Please help.
Sandip
|
|
|
|
|
Hi all,
I have made a static text box in my application. i want to make the text of that static dialog box as BOLD. I dont want to change the font just want to make it as bold....
How could i do so....
Thanks in advance
|
|
|
|
|
Add a control variable to your static control (m_static here) and add a CFont member to your class (myFont here). You could then apply the bold style to the font in your control like this:
CFont *font = m_static.GetFont();
LOGFONT lf;
font->GetLogFont(&lf);
lf.lfWeight = FW_BOLD;
myFont.CreateFontIndirect(&lf);
m_static.SetFont(&myFont);
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I am unable to get which type of variable is myFont
|
|
|
|
|
it's a CFont , I suppose.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I suppose she's going to declare the font object to be function local.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
From my (Italian) point of view your most challenging supposition is about OP gender.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Neha = Indian lady name.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I supposed!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I said it in my previous reply[^] to you:
Rajesh R Subramanian wrote: and add a CFont member to your class (myFont here).
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Also, please make sure that you do NOT have that CFont object (myFont) declared in a local function, but instead as a member of your class. This is to prevent the font object from going out of scope prematurely.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
There's an example in the Extras section of this article.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi all
i am getting warning while build my project.how to remove warning C4996.
|
|
|
|