I am pleased that I can now answer my own question.
As usual, my question has omitted a critical detail--I am using .net 2003. SetDialogBkColor is not defined in .net. The color of individual controls is still handled by overriding CWnd::OnCtlColor. The color of the dialog view is now handled by...
I found lots of examples on how to change the dialog vbackground color--all the examples agree with each other.
BOOL CEzApp::InitInstance()
{
SetDialogBkColor(RGB(255, 255, 255), RGB(0, 0, 0));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
...
This...
I have a problem with my radio button groups.
I am working on an SDI app based on CFormView, with multiple views, 12 views. Most views have several radio groups. I coded view1, then reread the specs and found that the operator could choose any one of the group, or none. To allow the operator to...
I knew I forgot something.
The error is C2440--static_cast, I don't understand the description of this error.
...
The errors occur because the function pointers, which expect to return a type using the C calling convention, are assigned to functions that expect to return a type using the C++...
I have just migrated from version 5 to .net 2003.
I get some warnings, pointing out my sloppy coding technique; but also one error on the ON_MESSAGE message map entry. I reviewed the .net documentation and found no changes in the format. I can't figure out what's wrong.
It works for version 5...
What happens when operator clicks File->Exit, or hits the "X" button in upper-rt corner (whats the name of this X function).
I want to do some cleanup before allowing exit to proceed. Is there a message that can be intercepted.
Oh how embarrassing--it was just a simple coding error after all.
I really try to figure out what's wrong before I ask a question; I just didn"t go far enough this time.
In an sdi application, I have created several additional CFormViews, and switch between them. A view/window could have 50-70 controls plus a lot of static text. The views are created in CMyApp, and also switched there. The switching function ends with:
pActiveView->ShowWindow(SW_HIDE); //last...
I want to send a user-defined message, and process it in the destination Class.
(CWnd*) pDest->SendMessage(WM_USER,0,0);
This compiles with no error and will presumably send the msg.
I don't know how to map the msg at the receiving class.
Class Wizard doesn't list WM_USER as a message ID, so...
I want to create a folder in Documents & Settings to hold some working files, but don't know how.
1. How do I find the current user.
2. How do I create the folder.
TIMMAY3141--
I am using CApp to switch between multiple views in an SDI format. I found some sample code for this & it works nicely.
I have 5 primary views, each with 3-5 subpages. When a view changes, a matching structured control table must be selected.
CApp is only to switch the view. All...
I'm learning to cope with the mfc; and trying to make peace with the mostly damnable C++ language.
I have an application based on CFormView. From operator inputs thru edit controls, the View must access member functions of CDoc & CApp. My head is filled to confusion reading about scopes...
I'm ready to upgrade from version 5 learning edition--not that I've learned enough yet--and have noticed on ebay that version 6 is selling for more than .net 2003. Why is that. Is .net going to be too complicated for me. Please give me some opinions/advice. Is the professional/enterprise edition...
I have a CFormView based app with a rather large dialog template. Using the resource editor, I have apparently hit the limit with about 130 controls. (msvc version 5). Is there some way to override this limit. Would a later msvc version help.
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.