CHtmlView item or page properties...

When I right-click on the CHtmlView, I get a property dialog giving me information such as size.  If I do the same on an image, I get the size and dimensions and such.

If instead of opening up a HTML file, I open an image, is there some way in code, I can get the properties.  I don't want to bring up the property box, I'd like to be able to get a structure worth of information.  Size and dimensions are the most important at the moment...

Thanx in advance for your help..
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Look into the Dynamic HTML (DHTML) Object Model. Retrieve the IHTMLImgElement interface and call its methods, get_fileSize, get_height and get_width.
jubjubAuthor Commented:
Thanx, Chensu, but I only have one small questions.  I've created the CHtmlView as an object inside a Dialog App.  My experience with Interfaces is minimal, but the problem I have, is how do I actually get an interface to this object?

I assume its probably a 1 or 2 line piece of code, but if you can tell me this, it'll greatly increase my knowledge and understanding that I'm lacking at the moment.

Call CHtmlView::GetHtmlDocument (equivalent to IWebBrowser2::get_Document) to retrieve the IDispatch interface of the document. With this interface, call QueryInterface to retrieve the interface you want. Check out

Driller sample

You don't have to reject an answer to add a comment.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

jubjubAuthor Commented:
oh..sorry about the rejection..don't take it personally
No problem.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.