This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (92 messages)
Marion, You may have more than one solution to accomplish it. A- If you don't have lots of "expanding" dialogs, you may show a bigger dialog on top of a smaller and simpler. When the user pushs the "More" button, save the dialog's position and pass it to the bigger…
read-only edit box
Message #30703
Some time back, I requested information about displaying read-only text in an edit box so the user could see it, but the user wouldn't be allowed to highlight it or put the cursor in the field. (The read-only property still allows the user to use the cursor and highlight.) Bob…
Tooltips & in-place OLE
Message #30696
To all, I have included tool tips (TTIPS2) in my application, and while running stand-alone, things work well. However, the app is an OLE full server supporting in-place activation, editing, etc. The tips and flybys don't work while in-place. I have changed the class type of the toolbar in ipframe.…
Thanks, Steve. I had looked through there before but had somehow missed it. -Kip
Rick, CTL3D comes with the docs so you'll be up and running in no time, Jan
Rick, >I have Visual C++ 1.5 and would like to know how to get those nice 3d >controls that I see in newer windows programs. Download CTL3D.ZIP from the MSDN Forum, Lib 3. It is also on the MSDN CD. Michael Meadows
Once I have the DLL's then what, how do I tell VC++ about them? I'll get the files from here then maybe my question will be answered, but just in case I though I would ask.
Instead of messing around the the schema's we just always write a WORD as the first thing in each objects Serialize. This way our objects are self-updating. Also this is great because if we get a corrupt file and the WORD isn't valid we use AfxThrowFileException to stop the process.
Gerry, >Anybody have recommendations for a slider implementation/VBX/class? >I'm looking for a good 3d chicago-like slider for a volume control. I remember seeing a couple of sliders either in this forum's library or the MSLANG library. Search on SLIDER. Michael Meadows
Bruce, enabling/diabling of controls should be done using MFC's OnUpdateCommandUI mechanism. Add the following to your view: to the .h afx_msg void OnUpdateSortButton(CCmdUI* pCmdUI); and the following to the .cpp //message map entry ON_UPDATE_COMMAND_UI( IDC_SORT, OnUpdateSortButton ) // actual handler void CYourView::OnUpdateSortButton(CCmdUI* pCmdUI) { // TODO: Add your control notification…
Marion, there is an example in plain C/SDK in the MSL, its name is "Expand". AppStudio won't allow you to make the dialog template smaller than the rectangle of the contained controls, so you will have to edit the rc file manually. ThomasZ
Craig, if you knew how much processing is done when the mouse moves, you wouldn't care at all about this little check ! With every mouse move, the underlying window(s) get a least three messages, WM_NCHITTEST, WM_SETCURSOR and WM_MOUSEMOVE. If the associated processing really takes a lot of time, the…
Rick, > how to get those nice 3d controls that I see in newer > windows programs by using CTL3D.DLL or CTL3DV2.DLL, they are in the libs somewhere (here or at MSLANG) and on the MSDN CD's, Jan
#MFC 2.5 and 3d controls
Message #30622
This may be a stupid question, but I'm gonna ask anyway. I have Visual C++ 1.5 and would like to know how to get those nice 3d controls that I see in newer windows programs. In Boland 4.0 you could activate them using a function call. How do I use…
#CDialogBar ctls
Message #30618
I need help in enabling/disabling buttons on a dialog bar: In the header of class CMyFrame (derived from CMDIChildWnd) I define CDialogBar m_dlgBar; The dialog bar is created from a template in int CMyFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) In the view (derived from CScrollView and using CMyFrame) I try to control some buttons…
I certainly agree with you. Microsoft has a funny tradition of making the industry follow them one step behind — they would never see the industry go step-in-step with them. Another good one is ctl3dv2.dll — they had it in their applications forever and when other developers finished incorporating them…
BP> I want to enhance an app based on the CScrollView BP> class. What I want is to add zoom in, zoom out capabilities. I did this for an application that displays CAD-type entitiy lists which had to be mapped from real-world coordinates to GDI's 16 bit integer coordinate space.…
David, I tried it and it Worked!! Thanks for a good nights sleep. Robert
Thanks Tarn: I did find the problem. Just my own mistakes. -lei-
I'm pretty sure there's at least one progress-bar class in the freeware category in Lib 8. Suggest you check the library listing to see if you can find one you like. -steve
#Unfolding Dialogs
Message #30588
Is there any support in the MFC's dialog classes for "unfolding" dialogs to support a basic/advanced version of a dialog box. The style guide talks about doing this but I've found no examples about how to accomplish it. —
Robert, This is a known linker problem. It seems to happen only for very large apps, and only in debug mode. The workaround is to extract afxinl1.obj from the lib file and link it into your project explicitly. Hope this helps, David
I just faced this issue – what I did was use a CFormView parent, creating a dialog containing a listbox in AppStudio. To get the sizing to work, add a WM_SIZE message handler to the view, and in it call SetWindowPos on the listbox (using the cx and cy arguments).…
#Linking Error
Message #30573
All, I am having a bazaar linking problem with VC++. The project uses the CVBControl and CDatabase classes in the MFC. If a static collection class object (CStringArray, CObList etc.) is declared as follows: { CStringArray m_strarray; or CObList m_list; } I get the following link error: c:\msvc\mfc\lib\lafxcwd.lib(afxinl1.cpp) : error…
#Progress Meter Dialog?
Message #30571
Can anyone point me in the direction of an object that behaves like a progress meter? (something like the behavior you see when running an installer). I know I could set such progress information in the status bar of the window, but I'd much rather have a dialog. Any help…
> Sounds to me like the graph would be a view of a new document type, that document being one that obtains its data from the open documents rather than from a file or database. So, when the user wants to show the graph, you'd create a new document of…
#Slider Recommendations
Message #30567
Hi, Anybody have recommendations for a slider implementation/VBX/class? I'm looking for a good 3d chicago-like slider for a volume control. Thanks, -Gerry Hall
Thanks, I will try to skip that message and see what happen.
GPF in debugger
Message #30555
I am very frustrated with a GPF error occurs only when I am in the debugger of VC++ 1.0. I can recreate the problem with a application freshly generated with AppWizard. I am grateful if anyone can shed some light on how to avoid this problem. The foloowing sequent of…
Newer MEDMFC uploaded
Message #30554
Hello All, A newer version of the editor DLL has been uploaded to the Doc/View section here. The filename of the editor is MEDMFC.ZIP. Bug fixes : – Selection of text improved Enhancements : – Ability to handle proportional fonts in the text – Initial VBX version done. It will…
Ron, >>Add a message handler for WM_CHAR. The framework "pre-translates" keystroke messages when an ASCII character would be generated, and sends this message instead of WM_KEYDOWN. Thanks for the help. It sounded like a really likely solution, but I'm sorry to report that neither the CMyWindow::OnChar() handler, nor its CFormView-derived…
I think the problem is that WM_CTLCOLOR (a notification message) is sent to the parent, not the control itself. Kit
#Scroller-mod. view size?
Message #30535
I want to enhance an app based on the CScrollView class. What I want is to add zoom in, zoom out capabilities. With my basic understanding of the CScrollView class, it supports a changing Doc size, but a fixed View size (relative to the actual window size). Is there any…
Jake, > so now I'm off to play > with SetSel… nice to hear your having fun with the MFC functions 😉 Jan
Yes! Thanks.
Thanks Tarn, but I found a way to get SetFocus() message for buttons in dialog. I just created a miniscule litte CButton derived class that traps WM_SETFOCUS messages and does a PostMessage() to its parent. The only thing that somewhat complicates it, it that you have to SubclassDlg- Item for…
It's not so much that I don't like it, I'm just not sure how much code should go into a function that gets called everytime the mouse is moved. I think it might be ok, because if the system is busy, then the messages would just pile up, and be…
#30192-
#Mail Like List Boxes
Message #30523
Waiting is nothing unusual when it comes to products from Microsoft! I did quickly scan over the article in a store, but haven't picked up the mag yet. I think it more deals with the Hieracheal ( wish WinCIM had a spell checker! ) list boxes. I am also working…
#Doc-View Model Quesion
Message #30514
I'm not quite sure how to fit document-view design to the folowing example. Maybe someone has a suggestion. Suppose I wish to design a software package to display a balance sheet for company cash flow. I want the user to be able to open a window & display spreadsheet info…
#29418-
Mysterious push button
Message #30506
Tony, Sorry for the late reply…I haven't seen the behaviour you mention probably because I haven't had enough situations with low system resources. In any case, it may be slower to paint buttons on modeless dialogs if for no other reason than that all messages are first going through our…
#30135-
View-less Doc Windows
Message #30505
Hank, The dialog is by default created as a child of the application's main window. You could either specify the view as the parent of the dialog when you create it or you could use GetParent()->m_hWnd->GetActiveView() to obtain the view pointer again so that you can use it as the…
#CListBox sizing in VCiew
Message #30504
In order to have a view which supports a selectable list of database entries in my document, I have created a list box within my CView class. I would prefer to create a clistbox view but can't find any sample code for that. Anyway here is the problem: In the…
Alternatives to MDI
Message #30481
The group I work with is developing an application that needs to have a very "data-centric" personality — quite in keeping with current fashion and advice (see: Cluts, Nancy Winnick. "Getting Ready for Chicago." Win32 and Windows NT Articles, Technical Articles, MS Developer Network Development Library, CD 7, April 1994).…
App>Doc>View iteration
Message #30478
All, I have an MDI application. I want the user to select from the menu a system wide option (for example 'Wide'). I handle the message ID_SYSTEM_WIDE in the App class (update .INI etc). From the App class, how can I iterate through all open documents and all open views…
Combo Box on ToolBar
Message #30472
I'm having a problem with a CComboBox on a CToolbar in a COleInPlaceFrame. (I get an assertion when the frame is destroyed ONLY if i've previously clicked on the combo box!) To reproduce, add the following code to scribble, step 7, IPFRAME.CPP, to the end of OnCreateControlBars(): CRect rect; rect.top…
Carol, > I still get the 'icounter' is not a member > of CDocument error message. i think your problem will be solved if you cast the document pointer to pointer to you document class. Like: CMySecondDocument *pDoc = (CMySecondDocument *)GetDocument( ); Let me know if this is what was…
CDialogBar !
Message #30452
Hi, I have a CDialogBar kind of tool bar in my application. How can I perform the dialog handler kind of processing (say EN_CHANGE for an edit control) for this dialog ? I want to recieve all the notifications and respond to them. Thanks. Avinash Saxena
Hello Tarn, >Knowledge Base article Q74941 "Determining Free Memory in Windows >in Enhanced Mode" in the MSKB describes some of the methods for this. I see. Thanks. Eventually I find a file called SYSINF.ZIP in SDK forum which contain what I need. Regds LAM Chi-fun
#Subclassing CWnd
Message #30440
I have problem trying to subclass a CWnd do that I can pass some of its messages to its parent. The classes look like: class CMyView : CView { CMyChildWnd m_wndChild; CEdit m_edit; } class CMyChildWnd : CWnd { } The child window is created to clip the edit control…
#29505-
#Serialise – Schemas ??
Message #30434
Peter, >> I have a class within an application which I need to update. The class does not have a user version number implemented as it was never envisaged that the class would change, so I need a method of detecting if the class serialized from the disk is the…
Page 1 of 2