HDTenEightyP/NetNews huggingface dataset:
From: "chris guilmartin" <chris.guilmartin@channel1.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: iconizing windows in
Date: 29 Sep 92 04:36:53 EST
Reply-To: "chris guilmartin" <chris.guilmartin@channel1.com>
Distribution: comp
Organization: Channel 1 Communications

Cttan@ntuix Ntu Ac Sg writes:

CN>   Scenario:  I am using Visual Basic to develop a form application.  
CN>I open
CN>	      2 forms in the same application.
CN>
CN>   Question:
CN>	      If I minimize the main form, how do I minimize the second
CN>	      form?
CN>
CN>	      Can I trap events that are not provided by Visual Basic?

You can detect the fact the the form has been minimized in its 
form_resize event. Check the form.windowstate to see if it's 
now minimized.

Likewise, you can minimize the second form by setting its 
windowstate.

---
 * WinQwk 2.0b#218 * Free the Expo 67!
--
Channel 1 (R)   Cambridge, MA
From: singh@cs.utexas.edu (Shalendra Singh)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: same code to draw on screen & printer?
Date: 1 Oct 1992 22:46:53 -0500
Organization: U Texas Dept of Computer Sciences, Austin TX
NNTP-Posting-Host: levelland.cs.utexas.edu




HI ,

	I am stiil new to the world of MS Window programming.I am stil trying
	to figure couple of things out through trial and error. There are 2 things I want to find out .

	1. Write now I am designing a Graphical front end for an input file. 
           I  also am redirecting the input into a standard text file, what I want            
	   to do is, open up the inputfile from the window application I have 
          created using Turbo C++ and OWL. Write now the only feature 
	  my application has is pull down menu , where the menu items are pop up 
          dialog boxes that ask for user input. I want to create an option as part of my menu  
	  whereby I could open any file in my directory from my window application.

       
        2.
	
	Since this input model is for a Fortran program, I wonder if there is some way 
        I can link the Object module for the fortran program with the Input file I created.   
        In  a nutshell , I wont an option in my menu call run, which should run the already existing 
        .exe file.   
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: avlb@aplcomm.jhuapl.edu (A V Louis Biggie)
Subject: Re: VB 1.0 Questions Before I Buy
Reply-To: avlb@aplcomm.jhuapl.edu (A V Louis Biggie)
Organization: JHU/Applied Physics Laboratory
Date: Tue, 29 Sep 1992 13:55:22 GMT

In article <oneil.717544088@cwis>, oneil@cwis.unomaha.edu (Sharon O'Neil) 
writes:

>      After a period of thought and consideration about whether I should
> actually take the plunge and buy VB, I decided to comparison shop.  I've 
> found it at anywhere from $119 to $159.  
>
I understand that if you are affiliated with an educational institution, you 
should get it directly from Microsoft - it's much cheaper.
 
>      What's puzzling me is that it seems to be kind of hard to find and
> also, when I called Egghead they said they only had VB in the warehouse as
> selldown stock.  First of all, I don't know what they mean by selldown
> stock.  Does this mean that Microsoft is phasing it out for VB Pro (which
> seems to be much, much more expensive, more than I want to spend) or is 
> it due for an upgrade real soon?
>
Yes - it is due for an upgrade, but I do not think that it the PRO version is 
intended to replace the original.
 
>      If it's due for an upgrade, does this mean it's not compatible with
> Windows 3.1?  (I know these are probably stupid questions, but I want to
> know before I buy it.) 

I work with VB (not the pro version) and have had no problems with Windows 3.1

> 
>      If I do buy it, I think I've settled upon getting it from a mail order
> place that has it for $128.  I would assume this is a decent price?

No - the price will be less if you are affiliated with an educational 
institution.

I do not work for Microsoft.  These are personal opinions - and I think VB is 
a fabulous product.  Hope this helps.

Good luck!

Louis



Newsgroups: comp.os.ms-windows.programmer.misc
From: leander@rkw-risc.cs.up.ac.za (Leander Conradie)
Subject: Network comms under Windows
Date:  5 Oct 92 23:00:18 GMT
Organization: University of Pretoria, South Africa

Does anyone know anything about Network communications uner MS-Windows 3.1?
I am trying to communicate with 

a) IPX/SPX  (Preferrably directly (Not through the Novell NetBios emulator))
b) FTP TCP/IP protocol stack

If anybody can help please eMail directly to me. If enough interest, I'll summarise.

Thanks in advance

Leander Conradie
--------------------------->
leander@rkw-lan.cs.up.ac.za
Newsgroups: comp.os.ms-windows.programmer.misc
From: gfowler@javelin.sim.es.com (Gary Fowler)
Subject: Re: Visual Basic => LOCKING the Window Size....
Organization: Evans & Sutherland Computer Corporation
Date: Wed, 30 Sep 1992 16:21:22 GMT

whare@ac.dal.ca writes:

>Hey, all.

>Exactly what setting do I toggle within Visual Basic to
>LOCK the app window at a certain size.

>In other words, I do not want the user to be able to maximize,
>or change the size of the window -- much like Calculator.

>Thanks in advance. Email please.

>Your ignorant friend,
>Antony R Hare 
>----                               
>                                                  ...Richard*GRAPHIC*Design...
>                                                  ...Antony R Hare............ 
>                                                  ...President................
>                                                  ...whare@ac.dal.ca..........
>                                                  ...image is almost..........
>                                                  .......everything...........

You can do this by setting the BorderStyle property of the form.  The one which
is like the calculator is Fixed Single.  It is only settable at design time.
When you are designing it however, you will not see the new border, but you will
see it at run time.  You can also get rid of Maximize and Minimize buttons by
setting MaxButton and MinButton properties to FALSE.  If you want you can set
ControlBox property to FALSE too.  By setting those properties to FALSE and
setting BorderStyle to Fixed Double you have the look of a Dialog box.

********************************************************************************
*     Gary Fowler                     *     The storm starts when the drops    *
*     gfowler@esunix.sim.es.com       *     start dropping.  When the drops    *
*     Evans & Sutherland              *     stop dropping then the storm       *
*     600 Komas Drive                 *     starts stopping.                   *
*     Salt Lake City, UT              *     -Dr. Seuss                         *
********************************************************************************
Newsgroups: comp.os.ms-windows.programmer.misc
From: jim@edscom.demon.co.uk (Jim Thomas)
Subject: Re: is the file open?
X-Disclaimer: #include <std/witty/disclaimer.h>
Reply-To: Jim Thomas <jthomas@edscom.demon.co.uk>
Organization: EDS-Scicon, Milton Keynes, UK
Date: Wed, 30 Sep 1992 13:36:15 GMT

>>>>> In article <1992Sep29.181430.14819@fics.uucp>, "kro" ==
>>>>> kro@fics.uucp writes:

kro> I need to check if a certain file on disk is open by someone. My
kro> first thought was to try to open the file myself, and then check
kro> the error status of the open function.

kro> The system does in fact find out that this file is opened by
kro> someone. The only problem is that it pops up a dialog box saying
kro> something like 'System error, Sharing violation on drive C:', and I
kro> dont have any control over what is happening.

I had a similar problem with disk not ready messages from Windows
when a floppy drive was open. I got round this by uisng the
SetErrorMode function before the file open to tell Windows that I
wanted to process the critical error and a further call to SetErrorMode
afterwards to put things back to normal. This worked for me but I have
not tried it when the error is because of a sharing violation.

I hope that this is of some help to you.


Jim Thomas

PS I had to post this because I can not contact .uucp
Newsgroups: comp.os.ms-windows.programmer.misc
From: gbrandt@muug.mb.ca (Gregor Brandt)
Subject: help, intertask communication
Organization: Manitoba Unix User Group, Winnipeg, Manitoba, Canada
Date: Mon, 5 Oct 1992 16:47:54 GMT

I need to know what kind of Intertask communication is supported by windows,
can anyone help me...thanks
 
Gregor

Newsgroups: comp.os.ms-windows.programmer.misc
From: pmoore@hemel.bull.co.uk (Paul Moore)
Subject: toolbar in VB
Organization: Bull HN UK
Date: Tue, 6 Oct 92 08:45:10 GMT

Anybody got a toolbar VBX for VB? Or seen a reasonable commercial one?
From: f_tawb@va.nkw.ac.uk
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: VB Locing window size
Date: 30 Sep 92 10:25:08 GMT
Organization: Natural Environment Research Council


Anthony,

	Your question on VB form 'locking' - the soloution is to set the
	following three *form* properties in combination :

	MaxButton   :	False (hides it)
	MinButton   :	False (ditto)
	BorderStyle :	0 (no border or title bars )
			1 (Fixed single i.e. thin border, no sizing)
			2 (Sizeable i.e. the default)
			3 (Fixed double i.e. thick border, no sizing)

	Note that it is possible to have forms that resize, but have no
	minimize or maximize buttons!

	Also, have a look at the ControlBox property.

	You can change the various properties dynamically i.e. during
	program execution.

	Hope this helps,

Tam.

----*
----* Thomas AW Brown, ITE-NERC, Midlothian, Scotland.
----* F_TAWB@VA.NMH.AC.UK (if posting probs try 'nsfnet-relay::nmh.va::f_tawb')
----*
----* The saying of David Coleman (an English sports presenter)  #23:
----*  "And in the line up for the women's 400m final we have an Englishman,
----*   an Irishman and a Scotsman."
----* 
Newsgroups: comp.os.ms-windows.programmer.misc
From: hilman@camry.enet.dec.com (Eric Hilman)
Subject: RE: Printing a PS File from VB
Reply-To: hilman@camry.enet.dec.com (Eric Hilman)
Organization: Digital Equipment Corporation
Date: Thu, 1 Oct 92 13:10:08 GMT


I am also interested in directing postscript directly to the printer,
but only in selected circumstances.  I dont want the user to have to 
mess with selecting the printer type.  

Is there a way to select the printer under VB program control rather than 
the user going to the control panel? 

I have tried SHELLING to COPY FOO.PS LPT1: with limited success to accomplish
the same thing.

regards,

eric hilman
From: moss@soldev.TTI.COM (Les Moss)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
Subject: Re: How to find .ini file?
Date: 28 Sep 92 16:37:15 GMT
Reply-To: moss@soldev.TTI.COM (Les Moss)
Distribution: usa
Organization: Citicorp/TTI

I don't agree that .ini files should be placed in the program directory.
First, it will not work if the program is shared either by multiple users 
on one machine, or over a network.  Second, I don't backup my program 
directories, but I do want to backup my .ini files. Having them all in 
one place makes this easy.

Don't fight the Private Profile API. Just use it so that your app works 
the way everyone expects it to. 

I would also recommend that all programs allow the name or full path
to their .ini file be specified on their command line. This provides for
people who don't want to dirty their Windows directory or maintain
multiple icons for a program with different configurations.

In general, I feel that prograns should not place any changable data
in the program directory.

Les Moss                      moss@tti.com
Citicorp TTI
3100 Ocean Park Blvd.   (310) 450-9111, ext. 2982
Santa Monica, CA  90405
Newsgroups: comp.os.ms-windows.programmer.misc
From: beckley@qualcom.qualcomm.com (Jeff Beckley)
Subject: Edit control size limit
Organization: Qualcomm, Inc., San Diego, CA
Date: Wed, 30 Sep 1992 23:31:10 GMT

It appears that if I try to put a text block greater than 9 or 10K in an
edit control, it just plain gets ignored.  I have sent EM_LIMITTEXT with 0
for the wParam (which the documentation says translates to a limit of 64K).

I have plenty of memory available, so that's not the problem.  I'm kind of
stumped as to what the holdup is.

I'm using the Zortech C++ compiler 3.0r4, large memory model.  Although
I don't think this is the limiting factor.

Any suggestions?

Please email.

Thanks!

-- 
beckley@qualcomm.com         "A witty saying proves nothing." -- Voltaire
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.misc
From: jcmorris@mwunix.mitre.org (Joe Morris)
Subject: Re: windir environment variable is a constant!
Organization: The MITRE Corporation
Date: Thu, 1 Oct 1992 18:44:37 GMT

ctwomey@ccvax.ucd.ie writes:

>When you open a DOS window and enter 'SET', one of the environment
>variables listed is as follows:
>	windir=C:\WINDOWS
>(or equivalent).  This is the only env. variable whose name is in lowercase.
>I cannot change its value - if you try to
>        set windir=c:\
>for example, the result is that there are now two env variables:
>	windir=C:\WINDOWS
>        WINDIR=C:\

>Is this a bug in windows or was it intensional?  How do I alter or delete
>the windir variable? - or should I say the windir environment CONSTANT?

Why do you want to change this environment variable?

The reason you can't change it is that the SET command by design uppercases
the variable name, so from the command line there's no way you can alter
an environment variable whose name contains a lowercase letter.  I've never
seen any credible documentation about 'windir' (but I've seen and offered
numerous speculative postings on the subject), but I strongly suspect that
it uses lowercase characters with the specific intent of making it
difficult for a user to modify.

Looking for 'windir' is one of the reliable ways you can check to see if
you're running a DOS program under Windows, and is the only way I know
of for a DOS program to determine the directory from which the Windows
system was executed.  Why compromise this test?

Joe Morris / MITRE
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Dialog Sizing ques (VGA v SVGA)
Date: 28 Sep 92 23:17:31 GMT
Organization: PE-Nelson

In article <1992Sep28.114821.1@cortex>, mboucher@cortex.prospect.com (Mike Boucher) writes:
|> Hey there,
|> 
|> I have a dialog which fits quite nicely on my SVGA monitor (800x600 resolution)
|> However, when I move to a VGA (640x480) monitor, it doesn't fit at all.  This
|> brings up a few questions:
|> 
|> 1) Is there any way to find out what the largest window that will fit on the
|>    monitor is?

The calls GetSystemMetrics(SM_CXSCREEN) and GetSystemMetrics(SM_CYSCREEN) will
give you the size of the screen in pixels.


|> 2) When I send (or post) a WM_SIZE message from the WM_INITDIALOG case, nothing
|>    seems to happen.  From where should I send this message?

Use SetWindowPos() or MoveWindow() to resize/reposition a window rather than
trying to fake a message to do this.  A WM_SIZE message does not cause a
window to be resized, rather it is sent as notification that the size has
been changed.


|> 
|> Before I get tons of messages saying "make two windows that fit", let me
|> explain that this dialog is a "translation" of a data entry screen on a VAX
|> application, and, by the rules of the project, I cannot change the layout of
|> the screen.  It has to stay exactly as it is...

Your project's functional specification is seriously out of whack with reality!
But that doesn't do you much good; you may want to investigate using a smaller
font (say, Helv 8) in order to try to get everything in on a 640x480 screen.
Just changing the window size to fit will not work as parts of the dialog box
will become inaccessible unless you are planning on adding scrollbars and making
the dialog controls scroll within the dialog box.

Edit controls have a lot of padding, you could use (create your own or buy)
a subclassed edit control that took less space (e.g. no border, just an
underline).  This would help you conform to the appearance of the VAX screen
(maybe) but at the expense of losing conformance to almost every other Windows
application in the known universe.

You could also argue with your project manager that the product specification
should require 800x600 resolution as a minimum.


----------------------------------------------------------------------------
Tom Brown               |  "Strange women, lying in ponds, distributing
PE Nelson Systems       |   swords is no basis for a system of government."
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------

Newsgroups: comp.os.ms-windows.programmer.misc
From: newt@netcom.com (Karsten Schneider)
Subject: Re: Where is the Win Doc CDROM?
Summary: A must have CD-ROM for serious MS-Windows programmers.
Keywords: CDROM WINDOWS
Organization: Netcom
Date: Sat, 3 Oct 1992 05:15:15 GMT

In article <1992Oct2.171253.10439@netcom.com> mbk@netcom.com (Miles Kehoe) writes:
>A few months back I signed up (and was billed) for a product
>due out in September - described as 'all the windows docs and
>many application notes and books written by Microsoft press
>(including Charles Petzold's book) on CD-ROM with a search
>engine front end.

Mine arrived today. I ordered it as soon as I got the MS info
and it was definitely worth the wait and $$$. If you're serious
about programming for Windows, this CD-ROM is the reason to get 
a CD-ROM drive if you don't already have one.

The contents are very impressive, considering that this disk is
only a pre-release. It includes the Petzold book, Microsoft
Technical Reports, the Knowledge base, and LOTS of other goodies.
Just having access to the Knowledge base without having to go
through Compu$pend should pay for the disk.

The search engine makes it easy to retrieve related articles from
all information sources, with one search; from books, articles, the
Knowledge Base etc.. Something not available from any other source.
Just browsing and playing, I've been able to find stuff that I know
would have taken forever to get any other way, if at all.

In other words, I kind'o like it. :-)


--
KARSTEN SCHNEIDER  +---------------------------+----------------------------+
newt@netcom.com    |  98 Main Street, No. 306  |   Telephone: 415-435-6227  |
                   |  Tiburon, CA 94920        |         Fax: 415-435-0989  |
                   |  U.S.A.                   |  CompuServe: 76256,1363    |
                   +---------------------------+----------------------------+
-- 
KARSTEN SCHNEIDER  +---------------------------+----------------------------+
newt@netcom.com    |  98 Main Street, No. 306  |   Telephone: 415-435-6227  |
                   |  Tiburon, CA 94920        |         Fax: 415-435-0989  |
                   |  U.S.A.                   |  CompuServe: 76256,1363    |
                   +---------------------------+----------------------------+
Newsgroups: comp.os.ms-windows.programmer.misc
From: haviland@torino.med.uvm.edu (Tom Haviland)
Subject: Why doesn't MFC have DIB support?
Keywords: AARRGGHHH
Organization: Wicked Decent Productions
Date: Tue, 29 Sep 1992 20:16:35 GMT


How come the MFC classes don't have any device independent bitmap
support?  I'd like to read in bmp files and assign them to a 
CDIBitmap class, but none exists.  It is a real pain to try and
use a DIB while you're using the foundation classes for everything
else; you're constantly switching from handles to classes and vice-
versa.

An alternative that seems like it should work would be to translate
the DIB bits to device dependent bits and use those to set a CBitmap,
but I can't seem to get it to work.  One book I've looked at (Graphics
programming for Windows 3.1, or something like that, by Ben Ezzel) says
one thing in its discussion but does another in its code listings!

So, in pursuit of this, does anyone know of any code I can swipe that
would be essentially

CBitmap::LoadDIB(CString file)

or maybe a whole DIB class implementation?

Also, when you load a DIB thats in the DI_RGB (I think; what I mean is
unpacked) format, are the data values RGB quads or just references into
the palette defined earlier in the file?  It seems that they should just
be palette references, but I can't get my code to work and Ezzels code
does it both ways, depending on where in the chapter you look... :-(

Any help would be appreciated...

Tom
(haviland@northpole.med.uvm.edu)
From: cooper@plains.NoDak.edu (Jeff Cooper)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Z-Phigs 3D graphics library for MS-Windows
Date: 5 Oct 92 19:54:33 GMT
Article-I.D.: plains.20960
Organization: North Dakota Higher Education Computing Network

I apologize if this has been seen recently, our site has had a flaky
newsfeed and I'm not sure this got out...

I would like to hear any comments anyone has about a company called
WISE Software from Germany that produces a package called Z-Phigs.  It's 
an implementation of the ISO 9592 (PHIGS) graphics standard for
running under MS-Windows and I was wondering how good of an implementation
it is (how complete, fast, etc...)

If anyone has had any experiences good or bad with the package or
the company I'd really like to hear from you.  The reason I'm posting
is that the package costs $1259 from the Programmers Connection and
and theres no money back guarantee (which makes me a bit hesitant
to order it sight-unseen)

Thanks for any help!
-- 
"Life is pain Highness, anyone	|  Jeff Cooper
who tells you different is	|  cooper@plains.nodak.edu
selling something."		|  NeXTMail: cooper%midkemia@plains.nodak.edu
    - The Dread Pirate Roberts	|  (701) 298-0893
Newsgroups: comp.os.ms-windows.programmer.misc
From: wilcox@swarm.wustl.edu (Don Wilcox)
Subject: Another question on accessing EMM.
Organization: Washington University in St. Louis, MO
Date: Thu, 1 Oct 1992 03:14:14 GMT

I have received numerous responses to my earlier complaint that I cannot get
to data written into the area between B000:0000 and EFFF:000F from a Windows
app.  Unfortunately, I do not think I am any closer to a solution, and thought
I would try a smaller question.  Here goes.

I now would simply like to write an app that, running under 3.1 in enhanced
mode, writes a 256x128 pattern, and reads it back.  Here is the code:

	unsigned char far *bfr;
	bfr = (unsigned char far *)MAKELONG(0, (NPSTR)&__B000H);
	for (i = 0 ; i < 128 ; i += 1) {
		for (j = 0 ; j < 256 ; j += 1) {
			*bfr++ = j;
		}
	}

	bfr = (unsigned char far *)MAKELONG(0, (NPSTR)&__B000H);
	f = OpenFile("C:\\BFR", OF_CREATE|OF_WRITE);
	for (i = 0 ; i < 128 ; i += 1) {
		_lwrite(f, bfr, 256);
		bfr += 256;
	}

It sort of works when I use __B000H (the high bits are stripped off of the
odd bytes), but not when I use __C000H, __D000H, or __E000H.

I also tried using AllocSelector, SetSelectorBase, and SetSelectorLimit, but
I always get UAEs.  I clearly misunderstand those functions (and the docs are
absolutely worthless, spending more space telling you not to use them then they
do telling you how).

I know I have been taking up a lot of bandwidth with this thing, but it seems
eveyone but me can get it to work.  Really, I'm not normally that stupid :-).

Thanks again,

Don
-- 
Don Wilcox                         | "For I am not ashamed of the Gospel of
Washington University in St. Louis |   Christ, for it is the power of salvation
email: wilcox@swarm.wustl.edu      |   to all who believe."