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

    SetDialogBkColor gives error c3861

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

    SetDialogBkColor gives error c3861

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

    My Radio Button Groups are misbehaving

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

    ON_MESSAGE Error?

    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++...
  5. panioti

    ON_MESSAGE Error?

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

    How do I override "OnExit"

    CWinApp ExitInstance is what I was looking for, thanks.
  7. panioti

    How do I override "OnExit"

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

    What is the sequence of events on window activation?

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

    What is the sequence of events on window activation?

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

    How to Send & Receive a WM_USER Message?

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

    How do I create a folder?

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

    Inter-Class access?

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

    Inter-Class access?

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

    MSVC Version 6 v .Net?

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

    msvc resource editor limits?

    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.

Part and Inventory Search

Back
Top