|
Hi Folks,
is there a cheap trick to show document views of a MFC MDI Application outside the mainframe of the application?
The goal is to run the application in a dual monitor environment (extended desktop setting) so that the mainframe can stay on one screen while a document view can be moved to the other one.
Thanks for your help!
Regards,
Andreas
|
|
|
|
|
I'm not sure MFC can do that, but the first place I'd look is playing with the window styles.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thanks for the idea, but my experiments didn't work out. MFC seems to be restrictive what window styles are set and also who the parent window is.
The best option I found for this works like described
here[^].
I believe there is also a code project article explaining this method but I can't locate it right now.
|
|
|
|
|
how to get the 3d effect window in domodal of propertysheet
WS_EX_CLIENTEDGE in domodal ?
www.tamilselvan.zoomshare.com
|
|
|
|
|
In Document View Architecture where the Objects of
1.Document
2.View
Objects are Getting Created ?
plz help me .
|
|
|
|
|
|
Those objects get created in the app's InitInstance() method.
BTW, you only waited 1.3 hours before asking this same question again. Be patient. Not everyone has had a chance to see it.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks, Alot
while Iam debugging I placed a breakpoint at InitInstance and Step over it ( F11 ). But iam not getting where the Objects of that classes getting created.
|
|
|
|
|
What does your InitInstance() method look like?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi i am calling a thread in onintdialog of my mfc app. the thread inturn calls a funciton which perform an inifinte loop. this infinite loop will read a file continously and display the result in the list box. when i select the item in list box it takes time to call the function inside the item seelcted. this is because of the infinite loop. what to do for this? pls help me
-- modified at 6:55 Monday 11th June, 2007
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: when i select the item in list box it takes time to call the function inside the item seelcted. this is because of the infinite loop.
What do you mean ? What is this function you are calling ? And why does it take time ?
BTW, it is generally better not to work on GUI classes from another thread. For example: add strings in your list box from another thread. It is better to send a message from your thread to the window that manages the list box.
|
|
|
|
|
see i have to list some items (read from a file say list.txt) in a list control. the file list.txt is changeble everytime. hence i used a infinite a loop to read the file and updated it to the list box using threading. when i select the items in list box it takes several time to focus the selected item. i tried with sending a message also. but it does not work. what i have to do?
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: hence i used a infinite a loop to read the file...
Instead of wasting CPU cycles polling the file, why not let the OS notify you that the file has been changed?
BTW, you might want to wait longer than 2 hours before re-posting your question in order to give everyone a chance to read it.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
in my application,i hav executed a web page in internet explorer, now i want to bold a paticular text in the page....how can i do it!!!! plzzz help me out.how can i edit a web page in VC++ MFC.
|
|
|
|
|
You really can't. Loading a page in IE just loads the HTML, not the underlying script that typically generates it, and it's jsut a text file, you can trivially write a program that does what notepad does, but really, your question makes no sense at all. It's kind of like asking how to make a car out of bananas.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You can edit web page using internet explorer if you hosted the webbrowserctrl in your application. webbrowserctrl is a COM component which is the backbone of IE.
Since IE hosted the webcontrol in a external process, You can edit the web page, if you can access the webbrowserctrl from external process, in which iam less familiar ("please search for automating Internet Explorer") .
If you really want the web page for your application, host the IE's control and do what ever you want on the html page and in run time using MSHTML COM objects.
Best Regards
Raj
-- modified at 7:03 Monday 11th June, 2007
|
|
|
|
|
thanx Raj! i m trying to implement this...
|
|
|
|
|
hi,
i am having problem in developing a viewer which can open all format of image files (like .img, .tif, .jpeg etc).
actully i have to ,make a viewer for opening a georeferenced images, these images may be maps which have latitude and longitude values in each of there pixels.
if anyone could help.
mrianl
mrinal
|
|
|
|
|
Hey,
you can use all these Libraries for opening the image format that u like to open on your viewer:
cximage.lib
j2k.lib
jasper.lib
jbig.lib
Jpeg.lib
png.lib
Tiff.lib
and also you may have to use opengl at some point, for that u can use these libraries :- "zlib.lib opengl32.lib glu32.lib"
Best Wishes,
Pankaj Sachdeva
|
|
|
|
|
Hope this[^] will help you.
Regards,
Paresh.
|
|
|
|
|
Use GDI+ for tif/jpeg/gif. You need a third party library for other formats.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Use FreeImage (it's a free image processing library available with source code on SourceForge.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You can use of GDI+ or CImage class for show some images.
|
|
|
|
|
where the Objects for Document ,view , Class objects getting created in Document view Architecture.
plz explain me .
|
|
|
|
|
As part of a macro, I need to copy the formatting, formulas, and buttons with their assigned macro's of one worksheet on a new sheet.
I've got most of the way there, but when it comes to duplicating the macro buttons (I have been copying and pasting them) the visual code says
ActiveSheet.Shapes("Button 15").Select
but this creates a problem because the future buttons won't always be number 15.
Any ideas so that the macro will apply to all future buttons?
|
|
|
|