|
Anyone figure out how to get the movie rect for an ActiveMovie4 window?
|
|
|
|
|
In my initialupdate in the view I have this:
m_editright.SetSel(-1,1);
THe first thing that happens is that I see the gui, with the selection unmarked as I want. Then a Open File dialog box pops up
Just before SetSEl is a postmessage that brings up a dlg box (Open CFileDialog)). If I cancel this,the box goes away but the selection gets marked again. Why does this happen? How do I get around it? the setsel happens last in my oninitialupdate, right after PostMessage.
Thanks,
ns
|
|
|
|
|
Its a side effect of the control having SetFocus() after the open dialog is dismissed called on it.
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
Is this okay? I dont need to tab to this box so I unchecked tabstop in the designtime properties, and the focus never gets there now. It was the last ctrl on the form so I wonder where the focus is since I forced it not be be on my last ctrl. Is it possible for no control to have focus? SOmething must have the focus!
thanks,
ns
|
|
|
|
|
When you layout a dialog box in the resource editor, you should really set the tab order for the controls. You can do this by hitting Ctrl+D. You then click on the controls of the form in the order you would want the focus to move.
Your CEdit control was probably getting the focus because is was probably the first control you added to the form.
You should always set the tab order for controls on a dialog so that the sequence makes scence to the user.
Use Ctrl+T to test the dialog.
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
As I saw in a previous message I need to work with a CD-RW.
I can retrieve the list of all system drives then I can determinate which of them are a CD-ROM unit (both CD reader and CD reader/writer).
How can i determinate which of the is the CD-RW unit ??
Thanks a lot !!
Cristiano Galeazzi
|
|
|
|
|
I'm trying to connect to IE events, and made quick & dirty demo ( it's here ). TROUBLE: when I'm getting document object of the IE frame, in which loaded document from another domain (not the same as top-level frame), an error occurs. And I can't to handle it correctly!! In debug mode message box with kernel exception popups...
Demo Usage:
1) Run IE
2) Type address of page with frames from different domains ( www.search.msn.com for ex. )
3) Press "Connect to OnMouseMove Button".
When connected, if you will track mouse hover the doc, you woll listen short beeps.
Help me to correctly handle an error in debug mode, when trying to access documents at search.msn.com and similar sites!!!
Thanks!
|
|
|
|
|
Hello
I am looking for a PDF generation control that is not dependent on Adobe distiller or Adobe PDFWriter. The control should be standalone and should be able to create PDF files with text, images etc.
It should be able to handle multiple threads at the same time, where two or more clients might use the control to generate a PDF at the same time.
Commercial or Shareware - no problem! Even cost is not an issue.
I did some searching, but I want the best! And if someone who has used a similar control in the past can give any suggestions, I'd be extremely grateful!
Regards,
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Look at GhostScript - but it is not a control and it is non trivial to use - don't know if its what you want
|
|
|
|
|
My application must store some data on a CD-ROM.
I have installed EASY CD CREATOR in order to user DIRECT-CD.
In this way I can easily use the CopyFile function to solve my problem.
This operation work without problems but when the CopyFile function returns,
the CD-ROM Writer hasn't already finished to write data on CD (it has to perform the final write operations).
How can I determinate the real end of the copy operation in order to show
a meaningful progress bar ???
Thank you very much!!
Cristiano Galeazzi
|
|
|
|
|
If you're on XP, there's a nice new interface
called IMAPI that allows good control of the
burning process.
|
|
|
|
|
Unfortunately I'm under Win2K !!!!
Cristiano Galeazzi
|
|
|
|
|
Hi there,
How do I draw a rectangle around my CMainFrame derived class?
My SDI application has **multiple** mainframe derived class. When I switch between them, I want to draw a rectangle around the frame which is currently active.
Thankx very much
-Dave
|
|
|
|
|
Although i couldnt draw a rectangle around the "frame", i could draw one around the client area, by the following code in the view's OnDraw:
CRect rect;
GetClientRect(rect);
pDC->Draw3dRect(rect, RGB(255, 0, 0), RGB(255, 0, 0));
But... fi I resize the window a few times, maximize minimize etc.. the effect is bizarre. Please help.. I think its also making my system sluggish. GDI Gurus!! Pls help
|
|
|
|
|
I haven't tested your code, but I suspect the 'bizarre' effect is that the rectangle is not being erased. Override the WM_ERASEBKGND message to clear your background.
-chin-
|
|
|
|
|
Hello,
I am getting the strangest error. I have a VC++ application using VC++ 6.0. At one point in my application, if I press "Enter" the application just quits. If I press anything else of click the button to go on a next screen etc. .. it works fine. IF I press the "X" on top corner to quit, it asks me if I want to quit and quits normally. But if I press Enter on that screen it just suddenly terminates, completely blimps out!!
In Debugger, It goes into Wincore.cpp. For some reason ContinueModal() ends up returning "0" at the last minute. Until the point it calls it .. when I look at it in the Watch ContinueModal() is NonZero. But inside ContinueModal() looks like one of the pointers (WF_CONTINUEMODAL) is null.
I will really appreciate any help on insight into this. Thank you very much !
Sincerely,
Anjum Gupta.
|
|
|
|
|
If it is a dialog application, it might be the dialogs default OnOk() that causes this. If so, override it and remove the call to CDialog::OnOK().
Cheers,
Fredrik
<right>Sonork ID: 100.11430:PhatBoy
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
Thank you for your quick response. but .. i do have OnOk() function over ridden.
|
|
|
|
|
Where do you have the focus when you press enter?
Cheers,
Fredrik
<right>Sonork ID: 100.11430:PhatBoy
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
|
Could anybody suggest a good ATL book? I've found a few, and they all have pretty widely ranging reviews on Amazon, so I thought I'd ask here
ATL COM Programmer's Reference, by R. Grimes (Wrox)
Creating Lightweight Components with ATL Book/CD Package, by J. Bates (Sams)
Professional ATL COM Programming, by R. Grimes (Wrox)
Developer's Workshop to COM & ATL 3.0 Book/CD Package, by A. Troelson (Wordware
Publishing Inc.)
I thought I'd qualify the question a little more -- I'd like to develop a few Office Add-ins using COM (and thus would quite like to stick with C++ rather than going with VB), and with the possibility of also doing one or two COM components for use in ASP applications. Finally, I'd also like to produce a data access layer for a desktop app that will store data in an MSDE database. The main MFC desktop app will retrieve data via. this COM component, and the Office add-ins will also interact with the DB via. the COM component.
I've touched ATL only briefly before, mainly as a result of the Programming Visual C++ book by Kruglinski et. al., and want something a little more in-depth.
Thanks,
Paul
|
|
|
|
|
Paul Ingles wrote:
Creating Lightweight Components with ATL Book/CD Package, by J. Bates (Sams)
The best one I've found
Paul Ingles wrote:
Professional ATL COM Programming, by R. Grimes (Wrox)
Had the beginning one and it was too hard, so I imagine this one is completely not for beginners.
Christian
come on all you MS suckups, defend your sugar-daddy now. - Chris Losinger - 11/07/2002
|
|
|
|
|
I find
Professional ATL COM Programming, by R. Grimes (Wrox)
quite good, but it is maybe not for beginners.
Inside ATL, by Sheperd and King (Microsoft Press) is a good book to start with.
Cheers,
Fredrik
<right>Sonork ID: 100.11430:PhatBoy
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
Hi world...
I want to disable a main title of a menu. for example the "File" title...
How to do that ?
Thanks in advance...
Hello World!!!
from Raphaël
|
|
|
|
|
CMenu* pMainMenu = GetMenu(); // in main frame
int n = 0; // number of File menu
pMainMenu->EnableMenuItem(n, MF_BYPOSITION | MF_GRAYED); // disable
pMainMenu->EnableMenuItem(n, MF_BYPOSITION | MF_ENABLED); // enable
|
|
|
|