I'm making a settings dialog for my application but I'm having a problem figuring out how to implement it. I'm trying to make a settings dialog that has a treeview on the left-hand side, clicking on the nodes of the treeview would switch the dialog background based on which node was clicked. An ecample of a popular application that implements this kind of settings dialog is uTorrent.
My question is, how do I implement this? My best guess is that I would have to determine which node was clicked and repaint the dialog background to show the controls/windows associated with that node. If this is the case, do i have to create the controls for every possible node on the tree view and show/hide and then repaint every time a tree view node is clicked?