|
This is not "a very edge case use". This is a very common use. If you totaled all the time PowerPoint files are open on all PCs, I believe you will find many more hours were with people viewing the PPT on their computer (just as they would read a PDF or Word document) and much less time as part of presentations where full screen usually makes sense. I almost NEVER want to view a PPT on my PC in full screen. 1st on a large monitor it is often too big to view comfortably, and I usually want to switch between the PPT and other applications, often leaving the PPT visible to a page while working in a different window.
Making the PowerPoint Viewer 2007 only display in fullscreen is another anti-consumer action by Microsoft to annoy people enough to buy Office 2007. What is needed is the PPT viewer equivalent to the Foxit PDF Reader, for those who want to view but don't need to create PPT files. I don't know of any free alternative viewers that support PPT 2007 format, except maybe OpenOffice and that is pretty heavyweight is all you want is a PPT viewer. It would be great if it were possible to launch the PPT Viewer 2007 from C++ or C# so that it was not fullscreen, but as you mention it does not appear possible from the documentation.
|
|
|
|
|
Wow, you have been looking a long way back in this forum! 8th december...
I have to agree that it would be nice if you could open ppt viewer at a specific location.
But what's in it for microsoft? Partly I'm cynical, and partly I sympathise as I program for a living - but I'm pleasantly surprised there's a free viewer at all. I consider it's very reasonable to expect anyone who wants to do more that just view slide shows to pay money to the authors of the software.
It's not anti-consumer of ford to expect you to give them money if you want to ride in a car.
Someone who makes the presentation is quite capable of printing it to (eg) pdf for other viewing. Or export to flash (allegedly).
Yours a-professional-software-writer,
Iain.
ps... if you want a full screen app in a window... Virtual Machine.
I have now moved to Sweden for love (awwww).
|
|
|
|
|
I used to use the form designer back in visual C++ 2005 express, and there was some ~200 odd controls in the toolbox that I could place in my forms.
Now in visual studio 2008, I get something like 30 controls to choose from, with many useful ones missing. If I right click on the toolbox and select show all, it brings up a much larger list of controls, but 95% of them are greyed out. I can confirm that this doesn't have anything to do with a faulty installation of visual studio, as I use visual studio at university as well, where they are also missing 95% of the controls. I can't even insert a hyperlink control!
image of my toolbox
Anyone got some ideas as to why I can't access the controls, and how to make it so I can? Honestly I think they're trying to push .NET forward as much as possible and in order to persuade developers, they're cutting everything but the most basic stuff from the C++ form designer. Yep. Better put on your tinfoil hats.
|
|
|
|
|
|
Hi,
I am writting an ASP.NET application in VS 2008. I have some COM component written in VC++ 6.0 as a DLL. I Have add reference of COM DLL in my ASP.NET application. In my application I am calling methods from COM DLL which I want to debug but I am not able to debug my COM DLL. Can any one help me how to debug? I am using IE8 on my machine.
thanks in advance.
Yudhisthira
|
|
|
|
|
Do you have the sources of the dll ? If yes, you can simply open the project with VC6 and press F5 to start debugging it. It will ask you to select an executable to run which is using your dll. You can then select IE8 and when your dll will be loaded, you will be able to set breakpoints in it.
You have to make sure that the program is using the same version as the sources you are debugging.
|
|
|
|
|
Hello Friends
I am creating a win32 based window application.I created one modal Dialog
but at the same time while first modal dialog is open I want to open another second modal dialog so for that I created second modal dialog in showWindow of First Modal Dialog.
But It is not opening.
First of all ,I want to know that can we do it ?
Or is any other way to do it?
I want to know one more thing that How can I get the Handle of Modal Dialog?
Thanks In Advance.
Regards
Yogesh
|
|
|
|
|
What do you want to achieve exactly ? That you have the two modal dialogs but only the last opened can be used (so the last one is on top and doesn't allow the first one to be clicked) ? Or do you really want to be able to click on the two dialogs at the same time but not on the rest of your application ? I guess from your question that it is what you want to achieve. In that case, your second dialog has to be a modeless dialog (if you search in the articles of codeproject, you'll find plenty of articles discussing them).
|
|
|
|
|
You first need to understand "blocking", "modality" and the relationship between them.
I can only tell you that if you really need two modal dialogs to be displayed simultaneously (why would such a thing be needed completely escapes me), then you could spawn the dialogs from two different threads (one could be the main thread).
But seriously reconsider what you're doing. Perhaps there's something better that you can do.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Your design is wrong! A modal dialog is used to stop an application while the user enters some information, selects options etc, in order to control the work to be done. The whole idea of modal dialogs is to prevent the user doing anything until the requirements of the dialog have been met. If you need more than one dialog at the same time then the design of your application is seriously flawed.
|
|
|
|
|
I suggest you merge the two dialog boxes into one model dialog box, for example, in a side-by-side way. When you want to "dismiss" any one of the original dialog boxes, just hide the appropriate side (by using some resizing and/or moving tricks).
|
|
|
|
|
|
Did u googled?
[^]
Величие не Бога может быть недооценена.
|
|
|
|
|
Adam Roderick J 09 wrote: Did u googled?
It's amazing that none of them can use Google but they all seem to be able to find us here.
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
Here[^] is a series of articles that covers the subject. BTW, a simple google search would have shown you already a lot of useful information.
|
|
|
|
|
Hi all,
i m working on SDI type application,in form view of application i want to load an image as a banner ant stretch it from top left to top right.
i do this with this code that is implement over OnPaint function.
everything is working fine.
CDC* dc=this->GetDC();
HDC memdc;
this->GetClientRect(&rect);
CBitmap bitmap;
bitmap.LoadBitmapA(IDB_HEADER);
BITMAP bm;
bitmap.GetBitmap(&bm);
int w = bm.bmWidth;
int h = bm.bmHeight;
memdc=::CreateCompatibleDC(dc->m_hDC);
::SelectObject(memdc,bitmap);
StretchBlt(dc->m_hDC,0,0,rect.Width(),50,memdc,0,0,w,h,SRCCOPY);
CString Title="";
m_Banner.GetWindowTextA(Title);
dc->SelectObject(m_Banner.GetFont());
dc->SetBkMode(TRANSPARENT);
dc->DrawText(Title, rect, DT_CENTER | DT_WORDBREAK);
problem is occur when the form scrolled with vertical scrollbar.
please help me for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Le@rner wrote: problem is occur when the form scrolled with vertical scrollbar.
And what is the problem exactly ? First, what do you want to achieve? And then, what is your program doing which is wrong ?
|
|
|
|
|
when i scroll down the loaded image also moves down.
i want to stretch the image from top-left to top-right of form.its done by program.
please tell me how can i do this.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
You mean that it always stays on top of your screen even when you scroll down and you like it to move upwards instead ?
If that's the case, what you have to do is keep the scroll offset in a member variable of your class: each time you scroll up or down, you calculate the offset that you have to apply to the drawings and you store it in the variable (and then request a repaint of your view). Then, in the OnPaint method you use this offset in the second parameter of the StretchBlt function (the y-coordinate of the upper-left corner of the destination rectangle). The scroll is not automatically managed for you, so you have to compute yourself the offset you will apply to the drawings so that they are positionned correctly.
There are also a lot of remarks for your code which is not really clean: you are for instance mixing calls to the MFC and calls to the Win32. It is not dramatic but it is really ugly. You should stick to one of the two, and as this is an MFC application, you should stick to the MFC API only (this could sometimes be really bad to mix the two).
CDC* dc=this->GetDC();
Why do you call GetDC ? You are in the OnPaint method so you receive the CDC as an argument and you should use that one.
HDC memdc;
Use the CDC class from the MFC instead of the win32 API
bitmap.LoadBitmapA(IDB_HEADER);
Never never call a specific type of a function like that. You should always call the generic version (LoadBitmap). If you have compilation errors, I strongly suggest you read this article[^] to have a better understanding of character encoding.
memdc=::CreateCompatibleDC(dc->m_hDC);
Once again you are calling the Win32 function and you should call the CDC::CreateCompatibleDC instead.
::SelectObject(memdc,bitmap);
StretchBlt(dc->m_hDC,0,0,rect.Width(),50,memdc,0,0,w,h,SRCCOPY);
Same thing here.
m_Banner.GetWindowTextA(Title);
Same remark as before: use GetWindowText instead.
|
|
|
|
|
Hi
I tried to make a bitmap file from screen drawing. I used following function to get bitmaps data
GetDIBits(dc, hBitmap, StartScan, NumScans, m_pVoid, m_pInfo, Usage);
After I saved bitmap data to a file. I found that Bitmap was "rotated".
If the bitmap should look like: (Sorry, I don't know how to show a real bitmap here).
Each number is a pixel.
1234578
1234578
1234578
1234578
1234578
1234578
1234578
But I got:
5781234
5781234
5781234
5781234
5781234
5781234
5781234
What kind of reason will cause this?
Thanks,
modified on Monday, December 7, 2009 11:13 AM
|
|
|
|
|
What are you trying to do exactly ? What do you mean also by the bitmap should "look like" ? What are these numbers ? Bytes ?
Are you aware of the byte ordering (endianness[^]) ?
Without a bit more information about what you are doing exactly an what do you expect to have, it is very difficult to answer your question.
|
|
|
|
|
I can not put a real bitmap here. So I used some numbers here. These numbers mimic the bitmap what I got.
|
|
|
|
|
And ? An explanation of it would be usefull. Each number represents a pixel ? A byte ? Please, as already stated in my previous message, explain your problem clearly. We can't see what you are thinking and seeing you know.
You didn't even put any code how you "write" your bitmap (do you even write it back to a file ?)
|
|
|
|
|
Yes, Each number represents a pixel.
|
|
|
|
|
You cannot simply dump the bits into a file to create a BMP file.
A BMP file has a certain structure which consists of some headers before the actual data.
This article will give you an idea about saving to BMP files - Saving a Drawing to a Bitmap File[^]
|
|
|
|