|
I don't know if I ca help much more but I think your clarification will help others to help you better.
I can't spend a lot of time studying this and thinking about it now but if I understand what you are saying then you actually have just one document and view. The first document and view I think is actually for determining what images are to be shown and/or used. For example, for files, the file open dialog is used to determine what file is or files are to be opened.
Is that relevant? If not, then I hope someone else can help.
|
|
|
|
|
Hi, thank you for your help.
The file open dialog is actually implemented in ID_FILE_OPEN command. I override this in CMyDoc::OnOpenDocument(). Here I open the image and send to view for display. The problem is that I want to display results. They are a list of images just like std::vector m_imagelist. The CMyDoc can only display images in original size, and it can't display a list of images in only a document.
In other words, what I want to do is like the Windows Explorer. It can display images in thumnail.(mine is CMyDoc2/CMyView2), When clicking thumbnails, it open the image in an image viewer.(mine is CMyDoc2/CMyView).
The question is how to communicate between them.
|
|
|
|
|
I was using the file open dialog as an example. I don't think I was refering to yours.
So are you saying that you need a treeview on the left and a listview (listcontrol) on the right, like the Windows Explorer, but you need a third window to show the image?
|
|
|
|
|
Yes, it is. I didn't think how to add a tree view. But if possible, the treeview is better. That is I need. Hope suggestion.
|
|
|
|
|
Note that the Windows Explorer (which actually explores files, not windows) uses split windows, which is the most common way to support two views at once.
Also note that there is a project type for generating Windows Explorer style applications. At least there is for VC 6 and I assume it is still in later versions.
|
|
|
|
|
I got it in VS.Net, and I'll have a try this method. Thank you.
Best Regards,
Haifeng
|
|
|
|
|
If you were to use the two documents, then I think the first document could call the application and the application could store the necessary data. Then the application could create the second document and view and then it should exit to allow the first document and view to delete themselves.
|
|
|
|
|
I am nearly certain that the MFC documentation explains how to create a new document and view. Have you tried to get answers from the documentation? I know I have found answers to questions such as this by reading the documentation and if necessary I look at the MFC source code.
|
|
|
|
|
MFC documentation has the creation of a new document and views. It is in CDocTemplate::OpenDocumentFile(). There a new document ojbect is created. But there are NOT an easy interface to use. Or you must overrride this function. That is, you have to inherit your own doctemplate class. Then use this class to create the new document/view.
|
|
|
|
|
I would like to know how to handle two joysticks at the same times?
Please help!
|
|
|
|
|
Use two hands ....
Just joking ....
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
In fact that two hands are hardly to handle two joysticks!;P
Two people will be better!
I mean how to do it in programming?
Please help!
|
|
|
|
|
Hi All...
I want to display .Jpeg file in DialogBox.
How can i do this????
There Is Nothing Right & Wrong
|
|
|
|
|
|
You can use of CImage class for read jpeg file and use of BitBlt on WM_PAINT for show it
|
|
|
|
|
How can i create an application using window mobile 5.0 sdk to send, read and store sms from a pocket pc phone?
thanks
|
|
|
|
|
Please find out what kind of a question will get you answers by reading this[^]
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Sorry but i really dunno what u mean
Im trying to create an application that can run from a pocket pc phone which can send and read sms.
|
|
|
|
|
KongHL wrote: Im trying to create an application that can run from a pocket pc phone which can send and read sms.
I mean to say that you need to ask specific questions. Try writing the application and when you have a specific problem, post it here for help.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
I do not know how to start writing that application and hope that someone with past experience with this can try to help me get started
Thanks
|
|
|
|
|
KongHL wrote: I do not know how to start
Start Here[^]. There are tutorials, starter kits, etc.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
I want my application should contain .log file so what is its use and how is develop in VC++.
Regards
M.Atul
M.Atul
|
|
|
|
|
M. Atul wrote: so what is its use
Generally, it is used for diagnostic purposes. To measure performance, to detect bug etc.
M. Atul wrote: and how is develop in VC++.
You can use simple IO operations for logging i.e use a temperory file, which will be created for certain builds, or depend on certain environment variables.
Event log can also be used for this purpose.
|
|
|
|
|
M. Atul wrote: I want my application should contain .log file so what is its use...
If you don't know what it's used for, how do you know you want one?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: If you don't know what it's used for, how do you know you want one?
For Buzzword Compliance, of course.
|
|
|
|