Discussion:
how to access Dll
(too old to reply)
VKumar
2006-04-13 11:29:04 UTC
Permalink
hi

In a MFC application, i am using a dll. This dll has a dialog box. I want to
change the font of this dialog box or i want to change the font of this dll.
Can i do that? I load the dll by LoadLibrary.
Ajay Kalra
2006-04-15 12:01:59 UTC
Permalink
Post by VKumar
hi
In a MFC application, i am using a dll. This dll has a dialog box. I want to
change the font of this dialog box or i want to change the font of this dll.
Can i do that? I load the dll by LoadLibrary.
There is nothing like font of a DLL. DLL, like an EX is just a module and it
does not have any such attribute. To change the font of a dialog box, you
will need to change *its* font. You use SetFont for it. Typically you will
do it in OnInitDialog. First you will create the font(Use CFont) and then
set it using SetFont. Keep in mind this will not change the font of controls
in the dialog. You will need to change the font of each of the controls
individually.

--
Ajay Kalra [MVP - VC++]
***@yahoo.com

Loading...