How do I find out what font a text control in a C++ dialog is using? Or, what is this font? - mfc

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?

Related

How to apply VisualStudio 11 theme to my MFC application?

The new VS 11 features a grey-style user interface that is cool. Is it possible for me apply this to my MFC App? Thanks!
The last "update" for MFC controls and their appearance was the MFC Feature Pack, as described here: http://msdn.microsoft.com/en-us/library/bb982354.aspx
Unfortunately, it does not include the VS 2011 style, but maybe you find something else which would be interesting for your application (for example ribbons etc).
They did not include pictures of their controls, you can only check them in their sample application, which you can download here
http://msdn.microsoft.com/en-us/library/bb983962.aspx
or via Google Image Search
http://www.google.com/search?q=mfc+feature+pack

How to auto-generate settings/options dialog box?

Using Visual Studio 2010 C++ with MFC. The number of configurable settings in my application is slowly creeping up. I managed to design a settings class where adding a single line will add a setting to the program and support reading/writing that setting to my ini file. However, I still need to go into my gui editor and edit the options dialog box, moving text boxes around, aligning labels etc. which is kind of a pain.
How would I autogenerate my options dialog box such that I could give it a data structure and it could generate the option interface for me? It's okay if it's something like a list box. I'm thinking something like the the Visual Studio properties dialog box which has the look of something that's programmatically generated:
I'm just trying to get a conceptual overview of what controls would be best and how to piece it together. Of course if there is a link to a web page discussing this that would be great.
You want the CMFCPropertyGridCtrl class. It was introduced in one of the MFC updates, but I'm not sure whether or not they come pre-installed with Visual Studio 2010; you may need to install something extra.

Nice looking MFC listbox

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

Where can I find a reference which controls are in which version of MFC?

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.

Detail Grid in MFC

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