I've seen a number of apps lately that have a tab control in the About dialog. At least one of the tabs will have links to email and check for updates. I know how to add a tab control but I thought for the About dialog to use links, it had to be derived from CDHtmlDialog? That's what I use to create mine so that I can have such links but when I try adding a tab control to it, the tab control is layered on top of the html section so that they are two different dialogs. Does anyone know how to do this or where I can find an example? Jack
Jack_pt
Posts
-
Adding tab control to about dialog -
Uploaded files are one long lineWhen I write a text file to my hard disk, I add \n to each line and, when viewed in an editor, the file displays as one would expect. But when I upload this file to my host, the text is displayed in one long line. I've found that if I add \r\n instead of just \n at the end of each line, the effect is reversed - my hard disk file is one long line and the remote file is displayed on separate lines. I've tried using both binary and ascii upload modes. I'm currently creating two files with the only difference being the \r in one of them to get around this. Does anyone know of a better solution. Jack
-
How to manage two appsHmm, Thanks for mentioning this - I wasn't aware of it. I'm not sure if the BSD license is acceptable by the place I am submitting it to. In the event it is not, is it OK to have the free version, say "MyProgram," and then a non-free version but call it "My Other Program." And then mention in the description for My Other Program that it does everything My Program does and more. How do others get around this? I see free and non-free versions all of the time on various web sites. Jack
-
How to manage two appsThanks for your and Luis' suggestions. They both sound like soultions to the problem and I will look into them. Jack
-
How to manage two appsI think it may be already set up to be done with .Net but I can't figure it out. I usually just add a project and go at it. This is the first time I needed something more involved. I set up a test project and added two different projects to it (the solution they call it). That would at least make copying from one file to another easier. But when I tried it on my main project, it won't let me do it since they have the same internal names. Supposedly, you can just click on Rename to have .Net rename the project but that didn't work. Although it wouldn't surprise me to find I am doing it wrong. If anyone knows how to rename a project with .Net I would appreciate the help. Jack
-
How to manage two appsI'm creating two version of a program: A free version (myprogram) and an enhanced version (myprogram_PRO). The source code has to be released with the free version since it will be open source. Is there some way to have both programs in the same project? I can create two projects but if I make a change to one version then I have to be sure to update the other. If I have to add a dialog, for example, then it is not a simple matter to make everything match between the two. Any suggestions? Using .Net Jack
-
How to access Radio Button with just IDThanks, I appreciate you mentioning that. But the problem I was having had to do with setting it, not checking if it was set. Turns out I was setting it correctly but I was also not un-setting the other radio buttons. It's working fine now. Jack
-
How to access Radio Button with just IDThanks. That's what I was using but when I was doing the SetCheck, I forgot to uncheck the other controls so the program was aborting due to too many controls being enabled. I thought I was calling the control wrong. Jack
-
How to access Radio Button with just IDI have a number of radio buttons. I want to enter their ID's in a std::map for later use. But I can't figure out how to set the correct button from it's ID. IOW, given a group consisting of 2 radio buttons and their ID's (IDC_R1, IDC_R2), does anyone know how to set which one is picked? Jack
-
HTML on CPropertySheetIs there a way to add html code to a property sheet. I've done it with my About dialog by subclassing from CDHtmlDialog. But I've tried doing the same thing with a property sheet and cannot get it to work. It compiles OK, but I can't see how to display the page. For my About dialog, I just called DoModal. But when I ty that with the property sheet, it fails with Ambigous Call, probably because I also did an AddPage call to get the sheet added in the first place. Does anyone have any suggestions as to how to do this? Jack
-
Link for sending mailsYou can do that if you derive your dialog from CDHtmlView.
-
How to reset TimersIt has been a while since I played around with them but I'm pretty sure that if you try SetTimer as you suggested, the second one will fail since the timer with the given id has already been allocated. You can check the return value for yourself to be sure though.
-
Adding background to CDHtmlDialogThanks for the help. That took care of it.:)
-
Adding background to CDHtmlDialogI want to include a background image in my programs about dialog, which is derived from CDHtmlDialog. Using the toolbar, I added the image and it inserted the following code: This works fine on my computer but when I try the program on another computer it can't find the image since the path doesn't exist. I've tried using a relative path like but that doesn't work, even on my computer. VC doesn't seem to follow nornal HTML coding rules. Can someone please explain how to code this so the image will display properly on any computer?
-
How to insert row into ExcelCan anyone explain to me how to insert a new row into and existing excel sheet? I am using the following code to try to do this but when ran, the program fails with "Insert method of range class failed" on the range.Insert statement. char locn[10]; IndexToString(nRow, nCol, locn); //convert row/col to excel notation lpDisp = objSheet.GetRange(COleVariant(locn), COleVariant(locn)); objRange.AttachDispatch(lpDisp); range.Insert(COleVariant("xlShiftDown"));