|
Is there any way to open and view files in PDF -format in an MFC application, just like any kind of bitmaps with IPicture -based codes in the Bitmaps / Palettes section? Thanks for any answers.
|
|
|
|
|
click ME[^]
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
Thank you for the link, the PDF-in-the-box seemed pretty neat, but still there is a problem: i'd like to view PDFs without any logos or other extra stuff. Is there any way to bring PDFs into MFC -project? Thanks again.
|
|
|
|
|
As long as acrobat is installed your can just us a CHtmlView or "Microsoft Web Browser" control.
|
|
|
|
|
Thank you. Have not tested yet, but seem to be the answer.
|
|
|
|
|
Where to retrieve information about user font settings? SystemParameterInfo() is not it.
--
Sancte Míchael Archángele, defénde nos in proélio contra nequítiam et
insídias diáboli esto præsídium. Imperet illi Deus, súpplices deprecámur:
tuque, princeps milítiæ cæléstis, Sátanam aliósque spíritus malígnos, qui
ad perditiónem animárum pervagántur in mundo, divína virtúte,
In inférnum detrude. Amen.
|
|
|
|
|
From the archives, I don't have sure if this still works ...
NONCLIENTMETRICS systemMetrics;
systemMetrics.cbSize = sizeof(NONCLIENTMETRICS);
if(SystemParametersInfo(SPI_GETNONCLIENTMETRICS,
(WPARAM)&systemMetrics,
&systemMetrics.cbSize,
NULL))
{
}
else
{
}
Cheers,Joao Vaz
Three primary LAN architectures for Network Engineers,
under the sky,
Seven OSI layers for the Open System Architects,
in their halls of stone,
Nine N-xDU operations* for mortal Developers,
doomed to die,
One protocol suite for the Dark Sysadmin,
in his dark server room,
In the land of mordor.net,
where the shadowed fibers lie
|
|
|
|
|
Unfortunately, I can't use that information as I'm not dealing with non client areas.
Thanks anyway!
--
Sancte Míchael Archángele, defénde nos in proélio contra nequítiam et
insídias diáboli esto præsídium. Imperet illi Deus, súpplices deprecámur:
tuque, princeps milítiæ cæléstis, Sátanam aliósque spíritus malígnos, qui
ad perditiónem animárum pervagántur in mundo, divína virtúte,
In inférnum detrude. Amen.
|
|
|
|
|
Just to recap:
From the archives:
Changing the font in the control panel sends a WM_SETTINGCHANGE
message to all programs with a parameter of SPI_SETNONCLIENTMETRICS.
The program is supposed to fetch the new non-client metrics, and adapt
accordingly.
So, you aren't interested in changing any of five fonts defined in the NONCLIENTMETRICS structure:
caption font, the small caption font, the menu font, the status bar
font, and the message box font ????
Cheers,Joao Vaz
Three primary LAN architectures for Network Engineers,
under the sky,
Seven OSI layers for the Open System Architects,
in their halls of stone,
Nine N-xDU operations* for mortal Developers,
doomed to die,
One protocol suite for the Dark Sysadmin,
in his dark server room,
In the land of mordor.net,
where the shadowed fibers lie
|
|
|
|
|
I didn't read that far to tell you the truth. But why on earth are they using NONCLIENTMETRICS for a thing such as message box fonts? If a message box isn't client, then I don't know what is...
--
Sancte Míchael Archángele, defénde nos in proélio contra nequítiam et
insídias diáboli esto præsídium. Imperet illi Deus, súpplices deprecámur:
tuque, princeps milítiæ cæléstis, Sátanam aliósque spíritus malígnos, qui
ad perditiónem animárum pervagántur in mundo, divína virtúte,
In inférnum detrude. Amen.
|
|
|
|
|
Jörgen Sigvardsson wrote:
But why on earth are they using NONCLIENTMETRICS for a thing such as message box fonts? If a message box isn't client, then I don't know what is...
Yeah, I agree it's extremely intuitive !!!!!!!!!
Cheers,Joao Vaz
Three primary LAN architectures for Network Engineers,
under the sky,
Seven OSI layers for the Open System Architects,
in their halls of stone,
Nine N-xDU operations* for mortal Developers,
doomed to die,
One protocol suite for the Dark Sysadmin,
in his dark server room,
In the land of mordor.net,
where the shadowed fibers lie
|
|
|
|
|
Anyway, it's working as it should now. Thanks for the info/heads up!
--
Sancte Míchael Archángele, defénde nos in proélio contra nequítiam et
insídias diáboli esto præsídium. Imperet illi Deus, súpplices deprecámur:
tuque, princeps milítiæ cæléstis, Sátanam aliósque spíritus malígnos, qui
ad perditiónem animárum pervagántur in mundo, divína virtúte,
In inférnum detrude. Amen.
|
|
|
|
|
Hi All,
I have a small problem and i hope that someone out there can really solve it. Please help.. I have a dialog based application in which i did something a long time back which i dont remember so that it should not show the icons and title on task bar..now i need to show it to the user..what i am doing is i am creating a modeless dialog into a modal dialog and i want to show the title of the modeless dialog in the task bar..I hope its easy..but i can not find any solution for it.. Please help me out..i need this to be done..Thanks a lot in advance..
Regards,
Himanshu
|
|
|
|
|
You Need To Change the Dialog's Extended style
Add This ExStyle WS_EX_APPWINDOW to ur Dialog (in OnInitDialog)
For Further Explainations
Click Me[^]
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
your dialog is the main window hence the windows is showing its title bar and icon on the task bar, if you could set the main window to the model window.i.e m_pMainWnd then you will get the icon and title bar of the modeless dialog..
But i guess that also makes your modeless dialog as the main appilcation, closing that window maybe will terminate ur application not sure about it, but you can try it out.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
Hello,
How do i enable or add MFC support in my atl service.
i am using VC++ ver6.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
this might help
Click ME[^]
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
Thanx i actually wanted to know how to include mfc support in ATL service.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
I got it here is the link to that.
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q173/9/74.ASP&NoWebContent=1
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
Is it possible to adjust the system Volume from an User Interface Application using VC++ code ?
|
|
|
|
|
Click ME[^]
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
See if this article helps.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Hi all,
i want to have a windows with menus. these menus call up dialogs. these dialogs should fill the client area and move when i move the window. my dialogs stay where they appear and can be moved seperatly. and other menu items cannot be called until the dialog is closed.
any ideas and code examples?
merry xmas to ya all
;)
|
|
|
|
|
It is not very clear what you want
but from what i make of it you want an SDI application with CFormview and the Form changes when you select something else from the menu or by pressing a button on FormView.
here is good article that explains in detail with sample code
Click ME[^]
|
|
|
|
|
hai everybody.,
Can any say how to convert an CString to an integer value.
I know to convert char buff[20] to an integer thro atoi function.
Meanwhile if any one have any logical ideas or some thing special for convert the CString value to an integer value.
I tried a lot. Thank in previous.,
Bye
Anbudan.,
Shanmuga Sundar.V
|
|
|
|