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