This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (458 messages)
Mark, you can change the font of any individual control window in a dialog box at will. Just make sure that the font pointers you're passing with SetFont(..) are valid as long as the dialog box is not destroyed. I hope this helps in solving your problem, Jan
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
Thanks. I have yet to learn user-defined messages. That is my goal for the evening. I want to try an avoid doing such things as using a timer. By the way, what is PMFJI? I see alot of that stuff. Thanks! Pat Collado
I also sent this message to the SDK forum, but since the application is a MFC app, I thought I'd post it here as well. Its not a file handle problem, I've got FILES=100 in config.sys and I also used SetHandleCount(60). What is really weird, is that I cannot duplicate…
Hi Paul, This is a known problem. Here is the text of an upcoming Microsoft Knowledgebase which discusses the situation: Program Crash When Connecting to a Data Source from a DLL ———————————————————————- The information in this article applies to: – Microsoft Foundation Classes for Windows, version 2.5 ———————————————————————- SYMPTOMS ========…
#29872-
ODBC Tales
Message #30650
We can't really talk about it now, but we will certainly post information in this forum when it becomes available. Steve Roeder Microsoft Developers Support
#30167-
ODBC in DLL
Message #30649
Hi Craig,
#29932-
#OpenFile/SHARE/Serial #
Message #30648
Hi Gary, > I've written a multi-product installation/setup program that uses > OpenFile to open a file called A:\DISK1.INF that contains installation > scripts. Each product must contain A:\DISK1.INF on its first > diskette. Here's where it gets weird. I have two identical sets of > installation diskettes except that…
#29303-
Help with MDI
Message #30647
Hi David, > I have several questions. I'm using VC++ and MFC to build a MDI app. > 1) Is it possible to make a modless dialog box not stay on top > relative to the MDI child windows? If you don't want the modeless dialog box to on top…
#29698-
MDI menu verticalBars
Message #30646
Hi ???, > In the sample CContainApp (msvc\mfc\samples\step1) the main mdi frame > menu looks like this: File | | Window This menu is created using > a .rc file, how do I create this menu dynamically (eg: using > AppendMenu API, ie the two vertical bar) ? Yes, I've…
m_strFilter Problem
Message #30645
Hi Ted, The syntax for the m_strFilter string should be: m_strFilter = "Location = 'OverThere'"; Steve Roeder Microsoft Developers Support
Dear Mark, thanks for your reply. In fact, I was already using a manual cast as the solution, but it seemed a messy thing to me, and it doesn't answer the basic question, why doesn't the Microsoft example work? (of course, it works if you do the manual cast, bu…
#Fonts in App Studio
Message #30643
Has anyone had problems with using a different font in creating dialog boxes? Basically, the App Studio will only let you change the font as applies to the whole dialog box. This is a problem if you want to use a font other than a bold one for static text…
#29440-
ODBC Class from Non-MFC
Message #30642
Hi Doug, I don't understand… It did not link right? The next part of you message describes a bunch of link errors, how did you get a GP fault? Where does the GP fault occur? These functions are defined in one of the Windows libraries: SHELL.LIB. Make sure you include…
Thanks for your reply. The manual casting is what I have been doing till now, but what I really want to know is why the Microsoft example is wrong! In their example you also have to do a manual cast to get it to work….
ODBC; case insens txt fl
Message #30640
I am using ODBC from Visual C++/MFC. I want to have filters and sorts that are case insensitive. For the filters I tried this: SELECT … WHERE upper(NAME) = upper('Jordan'); Apparently 'upper' is not implemented in ODBC. What is the proper way to have case insensitive text fields? — Jordan
Pat, PMFJI, try posting a user-defined message to yourself at OnInitDialog ( WM_USER + 2 or bigger ). When you get this message, the dialog should be visible. You can also set up a timer. ThomasZ
David, you should always call Ctl3dSubclassDlgEx as late as possible. But presumably this isn't the problem ( but you could just turn off 3D for making this sure ). >> Sometimes it works, and sometimes not. Could this be related to whether there are several dialogs up the same time,…
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…
CString vs CRecordset
Message #30633
Greetings, I am using Q+E ODBC drivers, and like the SIMBA ODBC driver they return text fields with trailing spaces. I notice that the MFC notice that it is using SIMBA and set a flag to remove trailing spaces. Question 1) Is it possible to set this bRemoveTrailing flag outside…
Memory Leak
Message #30632
I have a problem with a memory leak that seems to be originating in the foundation classes. I am using MFC 2.0 that comes with VC++ 1.0. From what I can tell the temporary objects allocated by the CDC::FromHandle and CGdiObject::FromHandle functions are not being deleted. In the MFC source…
Kip, > I am having a problem when I minimize a document – when > it has the focus and I hit Enter, nothing happens. If I > minimize my file and hit Enter, it opens as I would > expect. > > Is there some sort of know bug,…
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
John, i will check it out, thanks for the info and the indication that i will have to be patient if i want to join the s, Jan
Ronald, thanks for the info, Jan
Tim, > Sheesh, you guys like you work hard! no, no, certainly not with this kind of weather!! > LButtonDown hit testings, etc…. > Just make an OwnerDraw MultiSelection listbox… yes, yes, i know, but why is everybody answering to _me_ (not that i don't value it when someone posts…
#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…
MFC CRgn::CombineRgn
Message #30621
Hi, I am using the following code to test the CRgn::CombineRgn function and find that I am unable to successfully combine the regions. Am I doing something wrong or have I just run out of memory allocation ? How are regions of this size selected ? The mapping mode used…
MFC CombineRgn Function
Message #30620
Hi, I am using the following code to test the CRgn::CombineRgn function and find that I am unable to successfully combine the regions. Am I doing something wrong or have I just run out of memory allocation ? How are regions of this size selected ? The mapping mode used…
I have found that the problem is with a header file from Protogen that was causing the trouble. It seems when the file is included prior to afxdb, the problem arise, if after all seems to work fine. I have just about given up on protogen and am finding classwizard…
#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…
Thanks Tim, I'll give it a shot. Avinash.
#29221-
where is COMPRESS.EXE?
Message #30615
Me to!! My address is 1227 Sproles Dr. , Benbrook, TX 76126. Thanks a bunch!
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.…
JG> I believe that I have found a contradiction in the JG> documentation of CFile, regarding whether destroying an JG> open CFile will cause the associated operating system file JG> to be closed. JG> JG> Which one is right? They both are :). Actually, if the ctor CFile::CFile( int hFile…
David, I tried it and it Worked!! Thanks for a good nights sleep. Robert
#30066-
ODBC in DLL
Message #30611
Hi Craig, > I have a problem accessing a dBASE database via ODBC in a DLL while > the database is open in my VB app via non ODBC access (ie direct). > Is this possible? The DLL works fine from a C++ MFC app. It also works > fin…
#30129-
OOP Recordset puzzle
Message #30610
Brian, Why is this approach less object-oriented? If you needed stock for all these machines (assuming for the moment they are CNC multiple-spindle machine tools, as an example), you wouldn't run to the steelyard once for each machine; instead, you'd stock a local inventory and have each operator fetch stock…
Thanks Tarn: I did find the problem. Just my own mistakes. -lei-
#30191-
MFC to MAC portability
Message #30608
Thanks for your response.
Mike, Okay, here is the AWK script. It takes a map file for an argument and outputs the exports section (with comments) of the DEF file EXPORTS section. I don't know how to Upload to a library using TapCIS so this will have to do unfortunately… ———- # # EXPORT.AWK…
>>I want to overload one (or more) members of CView so >>that I have a better control on print preview of my >>SDI application. All I want to do is get rid of Override OnFilePrintPreviw (see TechNote 30) void CMyView::OnFilePrintPreview() { CPrintPreviewState* pState = new CPrintPreviewState; if (!DoPrintPreview(AFX_IDD_PREVIEW_TOOLBAR, this, ^^^^^^^^^^^^…
Background bitmap
Message #30605
How do I display a background bitmap behind my MDI child windows? I tried putting an OnPaint in the CMainFrame but the bitmap just flashed up and was gone. Eldon
Sheesh, you guys like you work hard! LButtonDown hit testings, etc…. Just make an OwnerDraw MultiSelection listbox… -tim
CBitmap w/user CPalette
Message #30603
I have been trying to display a CBitmap object with a CPalette user logical palette and I am having difficulty getting the CBitmap colors to display properly. I process the WM_QUERYNEWPALETTE & WM_PALETTECHANGED messages as described in Knowledge Base article "The Palette Manager:How & Why" and as in the DIBLOOK…
>> You pat my back and I'll pay yours.
*Wheww* That's a relief – as your code showed that you knew what were doing and I was really beginning to wonder why it should fail… After I saw al the embeded CStrings etc.. I started thinking you were gobbling up stack pretty quickly and being that your init had…
Page 2 of 10