I am looking an extended MFC listbox able to manage
- icon and text
- nice selection (vista style)
Do you know a such component ?
CListCtrl in list/report mode could also include icon and text.
Some time ago, the bcgcontrolbar library was incorporated into MFC as a "feature pack".
I don't know if it supports listboxes with embedded images, but it will at least give you a nicer looking listbox with more features than the one in "old" MFC.
http://msdn.microsoft.com/en-us/library/bb984191.aspx
Related
I want to be able to create mock-ups of dialogs for UI design documents. I would like to use the same font that current dialogs are using. The project uses C++ and MFC, developed using Visual Studio 2019 on a Win10 box. Where can I look to find out what font is being used for a particular text control?
Or, perhaps more simply, can you tell me what fonts are used on this little sample?
Preferably with visual illustrations... MSDN just lists class-names and what I really want to see is which versions of MFC have nice modern functionality like dockable toobars, collapsible windows, and other graphical niceties.
Does such a 'visual catalog' exist? From MSDN it's not always clear even what each class does without a pretty picture.
I don't think there is a 'gallery' of MFC controls on MSDN.
The closest thing I can think of are the MFC samples included in Visual Studio. There should be a project like this one that shows all of the controls with examples of how to use them. The other samples in the MFC Feature Pack also have workable demos for docking windows, ribbons, etc.
I have visual studio 2008, and want to build an GUI application that on the left side has a frame that can be minimized like the firefox bookmark sidebar. So my questions are: 1) What type of project do I need? 2) What controls actually make up the sidebar. 3) What do I make the main frame so that I can resize it when the sidebar is open. A example would also be cool.
Thanks in advance.
CP
It looks like a TaskPane (CTaskPane ) attached to a simple SDI frame window (taking into account firefox is doing a lot of things custom with their own toolkit (I think, and I've been known to be wrong)
Download the MFC VS2008 feature pack (with the new UI controls) and the feature pack samples and have a look at some of the sample projects (for example "TaskPane" and "VisualStudioDemo"
Though often maligned, as Max pointed out, MFC provides CTaskBar, which is designed for exactly this sort of thing. What you have inside it looks a lot like a CTreeCtrl (or CTreeeView) with an associated CImageList to display the icons for the bookmarks. Resizing the mainframe while the sidebar is open is handled automatically. To create a project that includes this, select the "Visual Studio" application type (after choosing "MFC Application").
Just as a note for the record, I'm reasonably certain that FireFox does not actually use an MFC CTaskBar. FireFox's sidebar is quite limited by comparison -- it only allows one sidebar with one pane in one position. CTaskBar supports multiple task bars, that the user can rearrange at will, each of which can have multiple tiled and/or tabbed panes (and, for example, the user can not only move a complete task bar by dragging, but also drag panes between task bars, drag a pane out on its own to become a separate task bar, etc.
Note that nearly all of this is handled internally by MFC -- you simply create window classes for storing and drawing data in the panes, and it handles things like keeping track of where a pane is at the moment.
well, you can always download the source for FF here and have a look for yourself, you might find more than you expect ;). another good tool to remember is spy++(in VS), very useful for finding properties of windows etc
Is there an easy way in MFC to add a hyperlink in a button? I've searched the net and they seem to offer complicated stuff.
Thanks.
This video shows how to use the SysLink common control (CLinkCtrl). Beware that MFC support for this control is new and requires VS2008 and the Feature Pack.
Bear in mind that the SysLink control is XP+. If you have to support older platforms, or if you use an older VS, your best bet is probably the good old CStaticLink by Paul DiLascia (RIP).
MFC doesn't implement buttons with hyperlinks (actually win32 common buttons don't support it).
You'll have to use 3rd party buttons.
One option is to use the FooButton class which supports hyperlinks.
I want a detail grid kind of control in MFC, where on expanding each row of the grid an embedded dialog would appear for it (not a popup but inside the same parent control, inside which I can show other controls).
Can you please point me if there is any such existing library providing this kind of a control? Or else how to go about implementing it. I want to do it in C/C++, MFC, Win32.
Best,
Sourabh
You can try Codejock Xtreme Toolkit Pro (Link). I had the opportunity to use its Grid Control to create an excel like sheet in MFC. It was quite good for my needs.
Refer to this link, i think it has what you are looking for.
HTH