3 ms·
It was some time before I figured out how to do it (there was a coordinate conversion needed) That sounds overly complex - all you need to do is to catch the l
by userbinator 12y ago
It was some time before I figured out how to do it (there was a coordinate conversion needed)
That sounds overly complex - all you need to do is to catch the listbox selection message, hide all the controls that shouldn't be shown with the current list selection, and show all the ones that should be. I don't see how a coordinate conversion would be needed for that.
- raverbashing 12y agoI don't remember all the details, but it was more or less like this (with MFC) I built the dialog using their tools, one for each "tab" Then I attached that dialog on the space for it based on the selection, and the coordinate transformation (was a function in MFC) Something like this http://stackoverflow.com/questions/2653130/how-to-get-size-and-location-of-a-control-placed-on-a-dialog-in-mfc http://stackoverflow.com/questions/2653130/how-to-get-size-a... Hiding/showing might have been a good idea, but for more complex dialogs it wouldn't work