CompuServe Archive

This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.

Search Results (92 messages)

#30588 Unfolding Dialogs Message #30705
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
From: Mia Morsy Foundation Classes Forum · Doc/View/UI July 12, 1994 2:15 PM
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…
From: Bill Steiner Foundation Classes Forum · Doc/View/UI July 12, 1994 1:06 PM
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.…
From: Kip Fern Foundation Classes Forum · Doc/View/UI July 12, 1994 1:01 PM
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
From: Rick Arabian Foundation Classes Forum · Doc/View/UI July 12, 1994 9:05 AM
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.
From: Rob Warren Foundation Classes Forum · Doc/View/UI July 12, 1994 8:52 AM
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
#30618 CDialogBar ctls Message #30637
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…
#30588 Unfolding Dialogs Message #30636
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
#30524 Changing the Cursor Message #30635
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
From: Rick Arabian Foundation Classes Forum · Doc/View/UI July 12, 1994 12:17 AM
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…
#30523 Mail Like List Boxes Message #30617
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…
From: Gary Capps Foundation Classes Forum · Doc/View/UI July 11, 1994 10:45 PM
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.…
#30585 Linking Error Message #30612
From: Robert King Foundation Classes Forum · Doc/View/UI July 11, 1994 10:45 PM
David, I tried it and it Worked!! Thanks for a good nights sleep. Robert
#30425 SetScrollPos help Message #30609
From: Lei Chen Foundation Classes Forum · Doc/View/UI July 11, 1994 10:25 PM
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. —
#30573 #Linking Error Message #30585
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
From: Mike Ryan Foundation Classes Forum · Doc/View/UI July 11, 1994 7:51 PM
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
From: Robert King Foundation Classes Forum · Doc/View/UI July 11, 1994 6:53 PM
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…
From: Kip Fern Foundation Classes Forum · Doc/View/UI July 11, 1994 6:51 PM
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…
From: Gerry Hall Foundation Classes Forum · Doc/View/UI July 11, 1994 6:49 PM
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
#30538 Subclassing CWnd Message #30556
From: Poon T. Fung Foundation Classes Forum · Doc/View/UI July 11, 1994 4:28 PM
Thanks, I will try to skip that message and see what happen.
GPF in debugger Message #30555
From: Poon T. Fung Foundation Classes Forum · Doc/View/UI July 11, 1994 4:26 PM
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…
From: Marc Adler Foundation Classes Forum · Doc/View/UI July 11, 1994 4:12 PM
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…
#30370 no WM_KEYDOWN msgs Message #30550
From: Phil Coveney Foundation Classes Forum · Doc/View/UI July 11, 1994 3:44 PM
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…
#30440 #Subclassing CWnd Message #30538
I think the problem is that WM_CTLCOLOR (a notification message) is sent to the parent, not the control itself. Kit
From: Brad Pirtle Foundation Classes Forum · Doc/View/UI July 11, 1994 1:40 PM
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
#30404 Transparent Windows Message #30528
From: David Phipps Foundation Classes Forum · Doc/View/UI July 11, 1994 1:04 PM
Yes! Thanks.
#30433 OnCommand() Message #30526
From: Todd Osborne Foundation Classes Forum · Doc/View/UI July 11, 1994 12:43 PM
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…
#30235 #Changing the Cursor Message #30524
From: Craig Longman Foundation Classes Forum · Doc/View/UI July 11, 1994 12:10 PM
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
From: Craig Longman Foundation Classes Forum · Doc/View/UI July 11, 1994 12:10 PM
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…
From: Jeremy Wise Foundation Classes Forum · Doc/View/UI July 11, 1994 11:06 AM
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
From: Tom Jebo Foundation Classes Forum · Doc/View/UI July 11, 1994 10:09 AM
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
From: Tom Jebo Foundation Classes Forum · Doc/View/UI July 11, 1994 10:09 AM
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…
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
From: Alan Kissane Foundation Classes Forum · Doc/View/UI July 11, 1994 6:21 AM
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).…
From: Rob,D-BIT Foundation Classes Forum · Doc/View/UI July 11, 1994 5:45 AM
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
From: Rick Masters Foundation Classes Forum · Doc/View/UI July 11, 1994 3:49 AM
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…
#30277 Thanks for the help Message #30462
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
From: LAM Chi-fung Foundation Classes Forum · Doc/View/UI July 10, 1994 9:21 PM
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
From: Poon T. Fung Foundation Classes Forum · Doc/View/UI July 10, 1994 8:23 PM
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