Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ed9871

    Document Template/View Parameters and initialization

    Also is this the correct way to open up a new doc/view? It is straight from the 'MFC Answer Book'. Ed
  2. ed9871

    Document Template/View Parameters and initialization

    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...
  3. ed9871

    CString to an array of chars

    Didn't know CString had the [] operator, I just learned something. Obviously the easiest way to go. Thanks sflam. Ed
  4. ed9871

    Can you get the integer value from a control ID

    Thats what I was afraid of, I was hoping for an stoc() or some other function I didn't know about. Thanks very much! Ed
  5. ed9871

    CString to an array of chars

    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)...
  6. ed9871

    Can you get the integer value from a control ID

    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&quot...
  7. ed9871

    Modeless Child Dialog

    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...
  8. ed9871

    Easiest "Please Wait" dialog

    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
  9. ed9871

    Easiest "Please Wait" dialog

    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...
  10. ed9871

    Easiest "Please Wait" dialog

    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
  11. ed9871

    Easiest "Please Wait" dialog

    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...
  12. ed9871

    Easiest "Please Wait" dialog

    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...
  13. ed9871

    Button on a combo box

    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
  14. ed9871

    How do I get table descriptions?

    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

Part and Inventory Search

Back
Top