   MFC dialog help
  For the side dialog bar, you can add the dialog bar component. Just go to "Project -> Insert -> Components and Controls ...", and it''s called "Dialog bar", of course. 
  I''m having a lot of trouble getting outside dialogs to work with my main program. I''m working on a modler, and I wanted to create dialog toolbars on the side for editing shapes and other things. My first problem is I don''t know where to call the dialog from. If I call it from my APP file, it works fine, but I can''t get access to any of its return values. If I put it in my VIEW file, I can''t do anythign else until I close the dialog, and getting the return values is really complicated between the dialog isn''t a static object. ;  Wow, that's great, thanks.   edit: Ok, so how do I get messages from this? I added a combo box to it, and created a function to get the item that was selected from within the combo box, but it's not getting called.   [edited by - Sfpiano on February 16, 2004 10:13:03 PM];  What file''s header contains a member to the side dialog? Is it your CMainFrame, CTheView, etc.? If you haven''t done so, place an instance of it in one of your classes. Place it in the "protected:" section.Are you trying to get the value from the class in which the dialog is declared, or are you trying to get the value from another source file, where the dialog isn''t a member of the class? ;  Ok, I put an instance of it in my CView class. Right now, I''m trying to get any input from it. I added a combo box, and created a OnSelendokCombocreate() function, and set a breakpoint in it, but my program never gets to the breakpoint. ;  What kind of combobox is it? Is it where the user can type, or can only make a selection? ;  It's a dropdown. I don't want the user to be able to type things in.edit: I can't get any of my controls to work, or any of the functions I override. I overrode (?) the OnInitDialog() function, and put a breakpoint there but didn't get anything.   [edited by - Sfpiano on February 17, 2004 6:03:50 PM];  I tried this:if (!bar)bar = new CSideBarr;bar->Create(bar->IDD, NULL);bar->ShowWindow(SW_SHOW);but it gave me an access violation on the create function.   [edited by - Sfpiano on February 18, 2004 3:43:14 PM];  Hey, sorry it took me a while to reply. I''ve just been a little busy. What exactly is "bar->IDD" defined as?If you have AOL IM (Tm), just IM me at Binary 10essee. =) ;  IDD is defined as IDD_DIALOGBAR, which is the ID of my dialog. (It says you're not on aim)Ok, I stepped into it, and it's calling :Create(LPCTSTR lpszTemplateName, CWnd* pParentWnd), not :Create(UINT nIDTemplate, CWnd* pParentWnd = NULL).   [edited by - Sfpiano on February 18, 2004 7:52:07 PM]