How MFC CComboBox data item stored? - mfc

In MFC, (Visual Studio -> design mode -> resource view), CCombobox has 'data' property. This property is for populating data items in combo box. But when dialog.rc (resource) file is opened in notepad, it doesn't contain the same data items. My question is how these combo box items are stored if they don't exist in dialog box resource (dialog.rc) file ?

I found:
Data is being stored into same resource file but in other section in some HEX codes.

Related

How to capture a key pressed event while a menu item is highlighted (in Lazarus)

In Lazarus, I want to programmatically delete a menu item (say under the File menu) during runtime. The user will open the File menu to list all its items, then use the arrow keys to go to a specific (deletable) item, like a recently used file, and press Del key to delete that menu item from the File menu.
How can I capture the event of Del key being pressed while a specific menu item is selected (highlighted) by the user?
Please note that I am coding for both Windows and Linux (GTK2) at the same time. So, I would need a "standard" (Lazarus-way of) solution that will work on both systems: Suggested Windows-related answers are not appropriate in my case.

How to limit numbers in edit box created in VS designer

I have a project in Visual Studio. There is a dialog that I created in the designer view, which results in a bunch of IDs and properties in the .rc file. One of the controls is an edit box with ES_NUMBER set.
How can I set a min and max? All the answers I see are for programmatically created controls where one subclasses CEdit. Is it even possible to spawn a subclassed edit control when using the .rc?
Use a auto-buddy Up-Down control.

Is it possible to display image file thumbnails with "CMFCShellListCtrl"?

I am working on MFC project based on VCSamples in Github. This project similar "Windows Explorer.exe" (Under picture).
I know that select button of "Large Icons" ,"Small Icons" "Details" and "List" is can change file list view. But I want large size of Thumbnails for Image file like windows real explorer.exe (Under picture)
I searched for information about "CMFCShellListCtrl", but there was no information or only information on "CMFCShellTreeCtrl". ("CMFCShellListCtrl" is in 'ExplorerView.h/.cpp' in VCSamples project)
Did I misunderstand? Or Should I customize "CMFCShellListCtrl"?

C++ SaveFileDialog file icon

In C++ using Windows OS, I am using a System::Windows::Forms::SaveFileDialog object to choose a file in which some data will be serialized. I would like to know if it is possible to set a custom icon to the file that will be created. I have set the Filter property to "[ProjectName] file (.hys)|.hys" and the file icon is blank, but I would like to assign a custom icon to it.

How do I get messages to embedded dialogs in MFC?

I seem to have the original problem from Embedded Modeless Child Dialog not getting messages. I have managed to add rows to my property page using tips form What is the best way to manage data for rows of similar controls in MFC? but now when I click on the controls in the embedded dialog, nothing happens. I assume there's some message routing I need to do in the parent dialog but I don't know what it is.
The properties of the row dialog resource included Disabled = True. I have no idea how that happened.