I have an MDI app that has multiple document templates. I create a pointer to each and then when I want to activate a Doc/View I use:
theApp.m_ptSCR->OpenDocumentFile(NULL);
This works perfectly for the default behavior of the views, but I need to be able to pass parameters to have a...
A couple of ways:
1) if you want the CString in a char array, just use sprintf -
char m_cChar[7];
CString m_sString;
m_sString.Format("TESTING");
sprintf(m_cChar, "%s", m_sString);
Then m_cChar[0] = "T", m_cChar[1] = "E", etc.
2)...
I am providing a way for the user to customize some screen settings, and I am storing the control IDs in a database as strings, ie "IDC_EDIT_BOX", etc. Is there any way I can take my string and use it as a constant? For example if I have:
CString m_sControl="IDC_EDIT_BOX"...
I have created a modeless dialog in my MDI application. I want to use it when a certain long process is being run ("Please wait"). If I make it modal, the user can't do anything else until the dialog is closed and I want them to have access to the menu bar to open another document or...
CenterWindow(pWnd) worked great, I will start a new thread for my please wait process. Thanks for all your help, I understand everything you've told me!
Ed
Duh, I had the static control set to visible but not the dialog box itself.
Last question, can I attach the please wait dialog to my child window in my MDI app and not the main window? The effect I want is while the user is waiting, they can open another child window and do something else...
More info - calling DoModal on another dialog while my blank "please wait" dialog is up causes the message to display on my "please wait" dialog. Wierd...
Ed
That works except the message doesn't show up in my dialog, its just a blank square. I added
aDlg.ShowWindow(TRUE);
after the declaration in my function to get it to show. This is perfect as long as I can get the message to show up and also be able to move the box to the center of the MDI...
I am fairly new to VC++ and need to pop up a small dialog when something is taking a few seconds. This is such a common thing I know it must be easy but I can't figure out the best way to do it. I have created the dialog and created a CDialog class for it. I can't use DoModal because I need...
Does anybody know of a way to create a combobox with buttons that show if the list is dropped? I have seen this in some commercial software packages. When the list is dropped there is a lower border with buttons in it. Thanks for any help you can give me.
Ed
Using an SQL statement, how do I get the description of a table and all its fields? In Oracle I can use "DESC tablename", and others use "description". Access has these as keywords, but I can't get it to work. Any ideas?
Ed
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.