-
January 15th, 2014, 06:53 AM
#1
how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbnail)
hi
i can write a mfc program to make a Thumbnail view with image but can not this when change image with CDialogBox.
Thumbnail view with image(chart) like this:
for (int i=0;i<10;i++)
{
CChartContainer *cc = new CChartContainer();
if(cc->m_frmWin->Create(_T(""),
WS_CHILD|WS_VISIBLE|SS_BITMAP, rc,
this,idDyn))
{
}
}
how can i write mfc program to make a Thumbnail view of CDialogBoxs?
do i can use CListCtrl for show multiple DialogBoxs?
-
January 16th, 2014, 08:41 AM
#2
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
1. What do you mean by "change image with CDialogBox"?
What is CChartContainer?
Victor Nijegorodov
-
January 17th, 2014, 06:22 AM
#3
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
ClistCtrl can view image in cells but i will show DialogBox in every cell.
some sample codes are for insert one control (ComboBox , EditControl , ...) in one cell of ClistCtrl but they can not solve my problem.
thankful for your attention.
-
January 18th, 2014, 04:46 AM
#4
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
Originally Posted by hessamini
ClistCtrl can view image in cells but i will show DialogBox in every cell.
some sample codes are for insert one control (ComboBox , EditControl , ...) in one cell of ClistCtrl but they can not solve my problem.
But you didn't explain your problem yet!
Victor Nijegorodov
-
January 18th, 2014, 08:19 AM
#5
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
A dialog isn't an image. What you're asking isn't doable in any reasonable way that I know of. The best thing would be just to create an image that represents the dialog and use that.
-
January 18th, 2014, 08:47 AM
#6
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
i will write a program as if show multiple dialog box together.
i don't have a very good idea for this purpose .
my experience in mfc is about 8 year but can not wrote this program.
i think i can use CListCtrl for view a lot of dialog box in there .
i think CListCtrl can contain a lot of dialog box and arrange them or scroll them and any other work that it has capability.
is that right???????????????????????
i'm sorry for bad English.
-
January 18th, 2014, 09:45 AM
#7
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
Did you consider to use MDI application with multiple CFormView derived classes (CFormView is an analog of CDilaog) instead?
Victor Nijegorodov
-
January 18th, 2014, 09:58 AM
#8
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
Originally Posted by hessamini
i will write a program as if show multiple dialog box together.
i don't have a very good idea for this purpose .
my experience in mfc is about 8 year but can not wrote this program.
i think i can use CListCtrl for view a lot of dialog box in there .
i think CListCtrl can contain a lot of dialog box and arrange them or scroll them and any other work that it has capability.
is that right???????????????????????
i'm sorry for bad English.
Did you read my reply that said it doesn't work that way?
-
January 19th, 2014, 01:08 AM
#9
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
Doesn't really help for MFC and C++, but you can do this using WPF.
-
January 20th, 2014, 07:43 AM
#10
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
Originally Posted by VictorN
Did you consider to use MDI application with multiple CFormView derived classes (CFormView is an analog of CDilaog) instead?
i will write a project as if show multiple dialog box together. my need is this and i can not change it. i can clear my purpose for you : i will design a dashboard for many servers. this dashboard can view information and average and statistic of users activity. this dashboard must be like a big application of a big company . so i can not design optional by myself. if my way for design this project is wrong you suggest another one please. thankful for attention.
-
January 20th, 2014, 08:11 AM
#11
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
Originally Posted by hessamini
ii will design a dashboard for many servers. this dashboard can view information and average and statistic of users activity. this dashboard must be like a big application of a big company . so i can not design optional by myself.
So what is wrong for you in MDI application?
Originally Posted by hessamini
i if my way for design this project is wrong you suggest another one please.
I already did! Use MDI application with multiple CFormView derived classes. Then you'll be able to tile all these views as well as make them overlapped or maximize only one of them...
Victor Nijegorodov
-
January 20th, 2014, 08:12 AM
#12
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
You may want to look into embedded dialogs. Create a CDialog based app and nest other dialogs inside it. Here's an article about how they work.
http://www.codeproject.com/Articles/...dialogs-in-MFC
-
January 20th, 2014, 10:06 AM
#13
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
As already said before in this thread, a common Windows listview control (SysListView32, kept by CListCtrl or CListView MFC classes) is NOT designed to keep dialogs.
Although at last everything is possible, e.g. placing child dialogs over listview items, that may be a real overkill.
I would like to suggest the following solutions:
- Show only one dialog at a time and select the current one from a combo or a listbox.
- Use a property sheet (see CPropertySheet and CPropertyPage MFC classes).
- Place a few child dialogs in a (form)view and change the current ones from a scrollbar control.
-
January 21st, 2014, 07:40 AM
#14
Re: how to use CListCtrl for show multiple DialogBoxs like items in icon view?(Thumbn
You may want to look into using a grid as a means of input rather than trying to stuff dialogs into a listcontrol and trying to tie it all together.
There's no standard grid in Windows however, so you will need to find some external source for one (there's many, even free ones).
MFC does have a property-grid, but that's not quite the same, though it may be servicable to you depending on what you're really looking for.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|