CompuServe Archive

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

Search Results (201 messages)

#30513 Wake Up List Box Message #30916
Hi John, > Thanks! Now I'm looking for an example of a status window… a > modeless dialog that gets updated while other processing takes place. > (Some of the processing will be happening within DLLs.) I've made a > class for this dialog, but I haven't found a clear…
Gary— I had already found out about m_bCloseOnDelete by the time I got your message, but I didn't know the bit about its use varying by the type of ctor used. Thanks for the info. Justin
#30679 popup child window Message #30708
After I called BringWindowToTop, the WM messages no longer went to the button, they all went to the new window. But the button still covered by the new window! Chit
FindWindow Question. Message #30707
I am writing a Data Acquistion Simulation application and am having a problem with FindWindow. I want to communicate between two executing programs and tried to use FindWindow to get the pointer to one program from within the other. I was able to get the following to work: CWnd* pCWnd;…
#29991- Invisible Scroll Bar Message #30706
It did work this time, chris. Thanks a lot. BTW, I found out using CListBox.Create can also generate the horisonal scroll bar. Terry
Access via Internet Message #30701
Hi Brian: Is it possible to access this forum via the Internet? Thanks!
Yes (in 3.1): Max of 32,767 items Max of 32K item data and 64K string data, so with LBS_HASSTRINGS, 5440 items, and 8160 without. If this is a limitation, you might look at VLIST.DLL (available in GO WINSDK forum library). If you need this, you might be interested in my…
Thank-you, Paul
I am building a progress indicator dlg. There is a edit control in the dlg to indicate what part of computation is computed. I defined a CString, m_sEdit, attached to the edit control and appended string to it during the process as following m_sEdit += "More infor"; Then I call…
From: Kip Fern Foundation Classes Forum · Beginners Section July 12, 1994 12:40 PM
Thanks Jan. -Kip
Win Socket Info? Message #30688
Where do I find information on how to use Win Sockets? There does not seem to be much info on it in the Developer CD ROMS (or am I just looking in the wrong place?). Art
I am trying to use the viewex sample project as a model for one of my applications. When I run the sample application I get a GP Fault in GDI.EXE at 0001:42B1. Using Code View I determined that the error occurs at line 228 in inputvw.cpp. The line is ::SendMessage(hWndChild,WM_PRINT,(WPARAM)…
I'm getting the following 3 errors in the trace window when I create my CFileDialog: err SKMGR 0587:A925: Invalid HWND: 0000 err SKMGR 0787:17B2: Invalid HWND: 0000 err SKMGR 07BF:104A: Invalid HWND: 0000 The errors seem to be occurring in ::GetOpenFileName(&m_ofn) called in CFileDialog::DoModal(). Every thing seems to be working…
#30670 #popup child window Message #30679
>> this time it DID NOT cover the small button (which means it is even worse!)
Eric, If I choose my second method, I'll need to do the same thing you are doing. Unfortunately, Microsoft has not responded to these messages (I also sent another directly to the sysop). This is disappointing. Maybe they're saying we won't even think of helping you unless you give us…
Thanks for the help Brian. I'll go and get the article. – Russell Curgenven, Written 12-Jul-1994 @ 16:37:59 Using: Windows NavCIS SE v.1.2
Hi there. Is there any way I can find out, from my VC++ 1.5 app, whether or not a user is logged onto a network and if so his/her userID ? Thanks, Ciaran.
#30546 #popup child window Message #30670
After I put the WS_CLIPSIBLINGS in my CreateEx, when I clicked the small button the new child window popup and this time it DID NOT cover the small button (which means it is even worse!). And as before if I moved the cursor to the area where the new window…
Is there a memory limit for a CListBox using the AddString member? I can't seem to find a reference to it apart from receiving the LBN_ERRSPACE return code. – Russell Curgenven, Written 12-Jul-1994 @ 16:21:18 Using: Windows NavCIS SE v.1.2
#30543 Borland OWL vs. MFC Message #30663
You might look at Watcom 10.0, which claims to support both templates and MFC on both 16 and 32 bit platforms. I plan to get a copy after the current crunch is over — then we'll see if it can replace VC++ as our primary compiler.
#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
#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…
#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…
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…
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….
#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,…
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…
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,…
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…
#29221- where is COMPRESS.EXE? Message #30615
Me to!! My address is 1227 Sproles Dr. , Benbrook, TX 76126. Thanks a bunch!
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…
#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…
#30191- MFC to MAC portability Message #30608
Thanks for your response.
#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…
#30543 Borland OWL vs. MFC Message #30600
Carl I used Borland C++ and OWL for about 18 months and used templates extensively, I liked that environment and the tools that Borland provided. I have missed not having that capability in VC++. We found the Borland templates to be very reliable and did not have any problems to…
#30539 #CDialog startup Message #30598
The problem with OnInitDialog is that it is called before ShowWindow. Everything that goes on it OnInitDialog takes place before the Dialog is drawn. I want the Dialog to load,draw itself, and then call a routine to load a file that then draws to the dialog what it's doing. I…
#30589 OCX Controls Message #30595
They don't mind not explaining it as applied to AFX, why should it bother them when applied to OCX? (If this is really a problem for them they need to apply some imagination and make up a believeable meaning for it.) -steve
Hi John, I think it is a problem with Windows not painting the deleted edit control's rectangle correctly. To workaround this problem, you might want to explicitly invalidate the region slightly larger than that occupied by the edit control. You can do this by calling InvalidateRect() on the parent window.…
#30429 Menus And AppStudio Message #30591
Check to see if your menu has any item with empty text, or has a vertical separator at the end. If I remember correctly, those are two things that cause the half height menu problem… Hope this helps, Mary Kirtland MFCJournal
> Oh, I think you would have found out pretty quickly… Mary
#30258 #OCX Controls Message #30589
>> Just what's wrong with "OCX" anyway? Maybe they don't want to explain what the "X" stands for… Mary
Thomas, I have tried it both ways! Sometimes it works, and sometimes not. The app is MDI, and I have a couple of View windows that I call it in OnInitialUpdate for. I find this is somewhat erratic. Some dialogs always work, and some sometimes do & sometimes don't. HELP,…
#CEdit Message #30586
Well I have some good news!!!!!! I adjusted the stack like you said and that has appeared to fix it!!! Everything works great know. Thanks again for you help!!!!! Jay Perkins
Thanks for mentioning two options in handling errors in a constructor. I guess I will use the option 1 (set a Error-In_Constructor flag). This option seems to be compatible with the way my program works. Thanks for your great tips !!
1 2 3 4 5 Next →

Page 1 of 5