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 TouchToneTommy 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. Captrick458

    GetSafeOwner

    If I run GetSafeOwner(NULL,NULL) in a dialog, it returns a value. If from that dialog, I call a DLL with someclass.myfunction(this,dialog), and in that DLL I call where pParent is the value of "this" pParent->GetSafeOwner(NULL,NULL); it returns a totally different value. I can fix it by...
  2. Captrick458

    Managing Z-Order with menu process

    I am designing a large application where I would like to have multiple processes called by the same menu program. For simplicity, I think I want to use a different executable for each program. My problem is that I want the windows of the called processes to always be on top of the menu, and...
  3. Captrick458

    KillFocus and ComboBox

    I created a combo box, and then modified the declaration to a class derived from ComboBox that I intend to use to get the State portion of an address. (The derived class has only two extra functions, OnGetFocus to populate the box, and OnKillFocus to do some post processing.) I then imported...
  4. Captrick458

    Telephone Number or Date In Edit Box

    Is there an easy, built-in way to place separators in Edit Boxs for items such as dates and telephone numbers. In other words, I would like for the edit to open with something like " - - ", and when the person enters data, each "-" stays in place, and the data flow around it. Thanks in...
  5. Captrick458

    TabControl ENTER Key Makes Contents disappear

    I have a TabControl that is working, for the most part, but whenever I press the ENTER key, the contents of the particular tab disappear. If I select another tab, then come back they re-appear. I have tried WantReturn, and have tried virtual void OnOK(){}; Neither seems to work...
  6. Captrick458

    How to run MFC Samples

    I have downloaded a sample from MS. The directions state: To build and run the CMNCTRL2 sample Open the solution cmnctrl2.sln. On the Build menu, click Build. On the Debug menu, click Start Without Debugging. If I open cmnctrl2.sln as a file, then Build is disabled, and it won't open as a...
  7. Captrick458

    Multiple Processes vs Multiple Dialogs

    We are in the process of building a large application where the user may have several dialogs, etc. open at one time. We don't want a modal dialog (ie. Yes, No, Cancel) to suspend operations on other dialogs, just the parent dialog. It seems that we can substitute a non-modal dialog, and test...
  8. Captrick458

    Can't populate column 2 of list control

    I have a list control that I have set up a column 2 with a header. Everything works just fine except that the data for column 2 doesn't populate. No errors, just not there. Any Ideas???? iSubItem is set to 1. Thanks, Rick
  9. Captrick458

    DLLs and Static Variables

    I am from the Unix Environment so have absolutely no experience with Windows and DLLs. I read somewhere that static variable behave improperly in DLLs because of the shared nature of the DLL. Yet, accroding to Microsoft, each time a process attaches to a DLL, the DLL creates a separate data...
  10. Captrick458

    DLL vs Static Library

    We have a huge 'C' applications that we are porting from Unix. Because the application, for the time being, will continue to exist, be updated, etc. in Unix, we are trying to limit the differences to the absolute minimum. We think that we have determined that the Screen I/O, and to a lessor...
  11. Captrick458

    DeSelecting Hot Item

    In A CListCtrl, I would like to set a hot item, and then if the user clicks in a blank part of the box, I would like to de-select the hot item. Is there any way to do that? BTW, only report view is enabled. Thanks in advance, Rick
  12. Captrick458

    invalid dialog template name at runtime

    When I call a modeless dialog using something like ptr=new MClass(); ptr->Create(IDD_PROGRESS,NULL); NOTE: For this example, I have left out the error checking, etc. I get a runtime error that amounts to an inability to resolve IDD_PROGRESS into a TemplateName. The actual error...
  13. Captrick458

    SplitterWindow-Adding ScrollBar to Only One

    I am trying to create two splitter windows where there is a common horozontal scrollbar, but there is a single vertical scrollbar, unique to one of the windows. Any help will be greatly appreciated. Rick
  14. Captrick458

    Link Can't Find Function With Variable Arguments

    I am porting a library from Unix 'C' to MS VC++. The linker can't find my function declared in the header file as: int sprint(char *, char *, ...) and called with something like char ss[255]; sprint(ss,"%d",127); The error message is: testsprintDlg.obj : error LNK2001: unresolved external...
  15. Captrick458

    Problem with Creating CListBox

    I am trying to create a CListBox, and it works if I use CListBox *pTheList=new CListBox; pTheList->Create(... pTheList->AddString(... however, if I use the following, it will not work. CListBox TheList; TheList.Create(... TheList.AddString(... The compiler does not complain, and there are no...
  16. Captrick458

    Changing Window Title

    I am using a SDI, and when the user opens a file using the file-open menu, I would like to reflect the new file name in the window title. Any Ideas? Rick
  17. Captrick458

    Modeless BN_CLICKED Message to View

    I am trying to create a Modeless Dialog that will send a message to its parent window (C....view) when a particular button is clicked, and while the Class Wizard is more than willing to create the target function, etc., when the button is clicked, nothing happens. Any help will be greatly...
  18. Captrick458

    Get The Size Of A Window

    I am using the SDI, (CScrollView) and want to know whether a specific portion of the output is actually visible to the user. I know the size of the window at creation, but I don't know how to tell if it has been resized by the user, and, if so, what is the new size. Thanks in advance, Rick
  19. Captrick458

    View Class disappears

    From time to time, I will be working on a project, and the entire view class disappears from the ClassView listing. It usually occurs when I am cleaning up code, and removing commented items, and un-used virtual functions. The program will still compile, etc., but I can't access anything in...
  20. Captrick458

    Printing Text

    I am trying to design an SDI application that will display and print a file, but not allow editing. I am able to display the text using the TextOut function in OnDraw, but when I call print preview the window is empty. Very looong time 'C' programmer in Unix, but absolutely brand new and...

Part and Inventory Search

Back
Top