I don't know if I get you right, but simply make getters for all values you need from that dialog. Then after accepting, you can retrieve the values and based on that you can build the table. Google for "getters and setters C++" for more info.