Hello, I have a problem with my MDI. When the CWinApp constructor is called in my program several initializes are skipped. Inside the appcore.cpp that houses the initialization code I have placed a break point where the initialization begins. When I step through after the 'ASSERT(AfxGetApp()...
How do I delete the history in a ChtmlView? Also, how do I found out what drives are active (i.e. A:, D:, …)? I need to make a program that have an icon representing the drives and the user is able to open the drives.
Thank you
Hi, I am using a CHtmlView and I need to open a new window to the corresponding link when the new window option is chosen. I am able to make a new frame, I have put it on my CMultiDocTemplate (or something like that) and load the frame when the option is clicked. However, I don't know how to...
Hello, I am new to C# and ASP.NET, I have previously used ASP.
Inside my C# codebehind file, I open a database and get out
information. Now depending on that information I would either go to the start page or show a text box and button for more information. How do I move to another page...
In my MainFrame class after the creation of the DialogBar I get a pointer to the IDC_Combo and use AddString on it.
When I run the program, the string is inside of the edit control portion, but nothing is inside of the drop down box portion of it. When I use the code to get the selected...
I have a CDialogBar and I put a ComboBox and Button on it. I used the ComboBox property 'Data' and added ITEM; to it. When I load my appl. the word ITEM do not appear. My ComboBox type is a DropDown type, also I wanted the user to be able to add in new items in the combobox. How do I...
I have a problem with my MDI. I have three views. Two are CHtmlViews and when one of the CHtmlView (View2) is clicked; it is suppose to call the other CHtmlView (View1) to go to that website. I have in the CApp class the global variable theApp and a public class GetHtmlView(). GetHtmlView...
I have used
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe");
psi.UseShellExecute = true;
psi.WindowStyle = ProcessWindowStlye.Normal;
Process p = Process.Start(psi);
I have cmd running in the process in the task manager, but the window does not show. Does anyone know why?
Is...
I am sorry, I just now looked at this.
In the following code the Frame windows will set the size of the frame that the view will be in.
So one would be Frame1 with a specific size and another frame2
m_pBookViewTemplate = new CMultiDocTemplate(IDR_BOOKFRAME...
I believe if there the parent constructor take no values, it is ok to not pass any values. But it would not hurt to call the parent in any case.
Child(int nVar, CString strVar) : Parent(nVar, strVar)
{
...
}
I don't know about the destructor, but just do it.
Hope that's helpful
I need help with adding a view(s) to the document view list.
I know that CDocument::AddView() will add the view to the view list. The CView::OnCreate() is suppose to call the AddView(), but I don't have an OnCreate, I have Create() in my SecondView class. My FirstView does get adding to the...
Hello, I have my own MDI question, but at least this solution I do know.
In the CWinApp derived class InitInstance there are some lines
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
if(!ProcessShellCommand(cmdInfo)
....
Take out those lines. The ProcessShellCommand...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.