Background:
I’ve inherited a project, about 10k loc implementing an odbc driver. To configure the driver a configuration window is opened. The configuration window is defined by an .rc file (a resource script) which defines all the buttons and checkboxes using x,y coordinates.
Up until now when adding a new feature I just copy/pasted another button/checkbox changing the variable names and ID codes, this worked pretty well. As of late the panel has gotten too monolithic, and it has been decided that the configuration panel should be overhauled. The new design will segregate options into tabs, instead of having them all on one page.
Problem:
I need to figure out how to implement a Windows dialog window with tabs. I have googled around, tried to find examples, and had no luck trying to figure this out. I can open the .rc file in visual studio (the project was NOT originally developed in visual studio) and it shows me a nice visual representation of the config panel, I can drag the elements around, and it modifies the .rc file nicely. What I can’t figure out how to do is get tabs to work. I can create a tab control, but I can’t do anything with it. I can’t figure out how to put other objects on the different tabs of the tab control.
What I am ideally looking for is an extremely terse example implementing this (a dialog window with at least two tabs and at least one thing on each tab) in C. From that point I can abstract the rest. If that can’t be found a pointer to a comprehensive tutorial on how to implement a tabbed dialog box would probably be the next best thing. I’ve found tutorials in C#, but the rest of the driver, which interfaces with the configuration panel, is written in C.