|
Aryan S wrote: How to know whether a font (say Times New Roman) is installed in a system?
you can try EnumFonts too.. if you need only font name
|
|
|
|
|
hello,
I have an SDI with a view drived from CHtmlViw.I'm displaying a webpage and i want to draw a line over it. Could anyone tell me how i can do this...i want the line to persist even when a scroll down the page.
thanks..
|
|
|
|
|
Hi there,
I want to implement Mail sending option on my application (diaolog based in VC++ 6.0)
and i was wondering if you could give me some source code where you have implemented this.
I saw some examples from the articles but they are too complicated and have many options my app doesnt need so i need something more simple - just send a mail to an email adress which the user will enter.
Thanx
|
|
|
|
|
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
Oliver Shikaloski wrote: I saw some examples from the articles but they are too complicated and have many options my app doesnt need so i need something more simple - just send a mail to an email adress which the user will enter.
try one of most simple one :-
http://www.codeproject.com/internet/csmtpconn.asp[^]
|
|
|
|
|
I suggest you use PJ Naughter's CSMTPConnection v1.36[^]
Good luck and keep the good coding! (best class i've met yet)
|
|
|
|
|
Hi
How to set, in a CDialog, a property of a CStatic object that contains a string like "www.codeproject.com" to make it an hyperlink?
thanks
Have a nice code day
|
|
|
|
|
Look here[^], you'll probably found what you want.
|
|
|
|
|
mmm ...it looks a problem that I can't solve in only 3/5 minutes!
I'll study this problem later.
Thanks anyway.
Have a nice code day
|
|
|
|
|
|
|
Thank you,
I think that now I could (simply) solve my problems.
Have a nice code day
|
|
|
|
|
How to know whether one particular font is installed in my system or not?
I want to use CreateFont() for static. And if the specified font is not there then I want to set a default font. For that I want to check whether the font is installed in the system or not?
|
|
|
|
|
EnumFonts() to get ID (name) of the font.
A nice hyper tool for optimizing your Microsoft html-help contents.
A best image tool for Windows C++ programmers, don't miss it!.
Includeh10
|
|
|
|
|
Thanks.
But what exactly I want to know is can I check whether a font (say "Arial") is installed in my system?
|
|
|
|
|
Now I do something about barcode, some barcode uses Fonts, some uses draw lines.
this post is not related to barcode, but it is caused from barcode.
a vertical line can be printed by 2 methods:
1. by font (such as character '|')
2. by drawing (such as LineTo())
as I tested, vertical line is printed much clearer by font than drawing for both laser and inkjet printers, do you know why?
A nice hyper tool for optimizing your Microsoft html-help contents.
A best image tool for Windows C++ programmers, don't miss it!.
Includeh10
-- modified at 12:33 Monday 27th March, 2006
|
|
|
|
|
Well that's because of anti-aliasing I suspect. If you use a font it's scaled and a line is a line independing from the dpi. Using a line it depends on the scaling and the printer tries to optimate it, because it's graphic. So anti-aliasing will be used and the line is not not a clear as the font. For a whole picture this line is better, but as element of text or barcode it's not as good as the alternative.
Greetings,
Ingo
------------------------------
PROST Roleplaying Game
|
|
|
|
|
do you know how to create truetype font for Barcode?
I think barcode fonts are much easier to be created because they are just lines, but I don't know start point, any more help?
is anti-aliasing something about true-type?
is font graphic?
what does dpi mean?
sorry, too many questions.
thx
A nice hyper tool for optimizing your Microsoft html-help contents.
A best image tool for Windows C++ programmers, don't miss it!.
Includeh10
|
|
|
|
|
includeh10 wrote: I think barcode fonts are much easier to be created because they are just lines, but I don't know start point, any more help?
Uh well. I designed a Font using a Font-Editor. When you google for them you should find a free one. It's the easiest way. You can even create a font without an editor, but therefor you have to read the specifications and it's hard work, I think. I read parts of it, but then downloaded the editor
includeh10 wrote: is anti-aliasing something about true-type?
No. It's something about Graphics. If you draw a diagonal line it shouldn't just consist of the points in the color the line should have. You have to draw some points near to the line in color mixed from the background and the linecolor, so the line looks like a line and not only like some dots.
includeh10 wrote: is font graphic?
Well everything displayed on the screen can be called graphic. (Truetype) Fonts consist of vector-graphics. So, yes they are graphics but a printer don't uses anti-aliasing for displaying them.
includeh10 wrote: what does dpi mean?
DPI = dots per inch
includeh10 wrote: sorry, too many questions
No problem. I can stop to work for a moment to answer them. This won't make my boss happy - but I like it. :->
Ingo
------------------------------
PROST Roleplaying Game
|
|
|
|
|
Hi,
I want to create(not create but to load) activex control dynamically, so that I am using the CWnd::CreateControl function. I have to put x numbers of the control on the window. I want use all the porperties of the controls also. Can I achieve this using above methodology?
I have tried another way by inserting the active control in application(wizard option), now what I want to do is that if user says that he wants 5 controls on the window code should display 5 controls. How I can achive this?
Thanks
|
|
|
|
|
You could use the files generated by the wizard. Use a for loop to create the number of controls you need and use an array, list, or map to hold pointers to your created controls.
|
|
|
|
|
BOOL bStat=FALSE;
bStat= m_ControlWrapper.CreateControl (
strControlProgID,"",WS_VISIBLE,cRect,this,5000,NULL,
FALSE,NULL);
IOleObjectPtr pOleObj(m_ControlWrapper.GetControlUnknown ());
LPUNKNOWN lpUnknown=m_ControlWrapper.GetControlUnknown ();
now the problem is that I want to queryinterface and want to call the methods and properties. For that I have taken IDL generated by OLE view and added to the project and compiled.
IWebAgentModulecom iInterface= NULL;
the above statement gives errors "cannot instantiate abstract class due to following members"
Do I have to import the DLL??
Any Idea??
Thanks
|
|
|
|
|
Let MFC create the classes for you by adding the control to a dialog.
|
|
|
|
|