CompuServe Archive

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

Search Results (458 messages)

#30643 Fonts in App Studio Message #30656
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
#30639 CDialog startup Message #30653
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….
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
#30598 #CDialog startup Message #30639
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,…
#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…
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
#30578 ODBC Tales Message #30629
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
#30552 ODBC Tales Message #30628
Ronald, thanks for the info, Jan
#30604 Checked listbox Message #30627
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…
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…
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…
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…
#30483 Database Link Errors Message #30619
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…
#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…
#30606 Print Preview Message #30616
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!
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.…
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…
#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
#30066- ODBC in DLL Message #30611
From: Brian Ku Foundation Classes Forum · Beginners Section July 11, 1994 10:37 PM
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…
#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-
#30191- MFC to MAC portability Message #30608
Thanks for your response.
#30599 exports/DLL's Message #30607
From: Jeffrey Trent Foundation Classes Forum · DLL & Memory July 11, 1994 10:14 PM
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…
#30451 #Print Preview Message #30606
>>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
#30461 #Checked listbox Message #30604
Sheesh, you guys like you work hard! LButtonDown hit testings, etc…. Just make an OwnerDraw MultiSelection listbox… -tim
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…
#30557 print page size Message #30602
>> You pat my back and I'll pay yours.
#30586 CEdit Message #30601
*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