HDTenEightyP/NetNews huggingface dataset:
From: mguyott@eriador.prime.com (M. Guyott)
Subject: Re: MS Windows GUI standards.
Organization: /etc/organization
Date: Fri, 22 Jan 1993 17:42:04 GMT

In article <1993Jan21.212146.9457@crd.ge.com> deitsch@sol.crd.ge.com writes:
>In article <1jmn32INNk0i@shelley.u.washington.edu>, jude@milton.u.washington.edu (Jude Stoller) writes:
>|> Can anyone point me to a book or file which discusses MS Windows GUI
>|> standards?
>
>The book you are looking for is called: "Common User Access Advanced 
>Interface Design Guide".  It was written by IBM.

Actually, As of Windows 3.1 you want "The Windows Interface: An
Application Design Guide" written by Microsoft.  I received my copy as
part of the 3.1 SDK documentation.  The Mocrosoft document number is
PC28921-0692.

Marc
----
Two of the worst things we teach our children are that a knowledge of science
is nice but not necessary, and a knowledge of sex is necessary but not nice.

Marc Guyott              Constellation Software, Inc.          (508) 620-2800
                         Framingham, Mass. 01701 USA                Ext. 3135
mguyott@primerd.prime.com       ...!{uunet, decwrl}!primerd.prime.com!mguyott
mguyott@eriador.prime.com       ...!{uunet, decwrl}!eriador.prime.com!mguyott
From: bill.chau@rose.com (bill chau)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: BIG problem with vid
Date: 26 Jan 93 15:23:24 GMT
Article-I.D.: rose.1993Jan26.152327.15299
Organization: Rose Media Inc, Toronto, Ontario.
X-Gated-By: Usenet <==> RoseMail Gateway (v1.70)


Date Entered: 01-26-93 10:18
->Thanks to the many people who replied to my original post.  I am current
->investigating all of your suggestions.  If I find a solution to the prob
->I will immediately post it.

Ed, how about using ANOTHER 16 bit VGA card and enabling its mono section 
only? I notice lots of VGA cards have the Hercules mode. Now whether they 
switch to 8-bit mode when they do this I don't know. Also, I suspect most 
VGA cards WILL NOT co-exist with a second vga brd.  Anyone comment/tried 
this idea?  Perhaps MS tech-support can help?

-bill


---
   WinQwk 2.0 a#508   Oh the printed manuals? What's your credit card number?
From: mgm2731@zeus.tamu.edu (Mike 'Vogon' Margolis)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Windows 3.1 sound programming
Date: 24 Jan 1993 12:13 CST
Organization: Texas A&M University, Academic Computing Services
Distribution: world
NNTP-Posting-Host: zeus.tamu.edu
News-Software: VAX/VMS VNEWS 1.41    

Does anyone here know about sound programming in windows 3.1. I looked in my 
Turbo c++ for win 3.1 help file about functions such as StartSound() and 
StopSound(), but it says that these are now obsolete and I should use the 
multimedia functions. Furhtermore, if I use the old functions mentioned above, 
the sound comes through the pc speaker and not the sound board (sound blaster). 
I thought the device independance of windows should make for easy music on the 
sound board, but I just can't find any information on it. By the way, the 
borland manuals that came with c++ are now good in this respect. Thanks

 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 |   Michael G.Margolis      | "... Well, who would hold a price        |
 |   MGM2731@sigma.tamu.edu  |    On the heads of the innocent children | 
 | 			     |      If there's some immortal power      |
 |   Rush, "Roll the Bones" -->      To control the dice? ..."          |
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Newsgroups: comp.os.ms-windows.programmer.misc
From: h9112654@hkuxb.hku.hk (Edward P.C. Yuen)
Subject: Help! w/ caption<-> w/o caption
Organization: The University of Hong Kong
Date: Sun, 24 Jan 1993 10:55:40 GMT

Dear netters,

	I'm developing a window application having the function that when
there is double click inside the client area, the window will change from
having a caption to the one without the caption(like the function in the
clock.exe come with Windows 3.1). I use the SetWindowLong() and select
the GWL_STYLE, but I am confused how I am going to redisplay the window 
with the new style bits set. Whether to use UpdateWindow(),SetWindowPos(),
or InvalidateRect() or combination of them?

	If this is an FAQ, sorry for that, and if there is any advise, 
send mail to h9112654@hkusub.hku.hk

	Thank you in advance.

Best wishes,
	Edward Yuen
	Dept of Computer Science,
	University of Hong Kong.
Newsgroups: comp.os.ms-windows.programmer.misc
From: markt@rocky.ndhm.gtegsc.com (Mark Tsombakos)
Subject: Re: VB, ARNET, AND DLL
Organization: GTE/SCSD - Needham Heights, MA
X-Newsreader: TIN [version 1.1 PL7]
Date: Mon, 25 Jan 1993 17:08:20 GMT

Joe Bartling (joe.bartling@uunet!sqlware) wrote:
: You may want to look into PDQComm for Visual Basic.  It allows you
: (according to their slick ad brochure) to add serial communications to
: your VB applications.  Says it comes with "a complete library of
: subroutines, functions, and a unique custom control for adding event
: driven serial communications support to your Visual Basic applications."
: 
: PDQComm is put out by Crescent Software, Inc., 11 Bailey Avenue,
: Ridgefield, CT 06877-4505 Tel: 800-35BASIC or 203-438-5300

(I tried writing E-mail to you, but I don't think it made it)

Thanks for the info, but due to a restriction in Windows, VB only supports
4 serial ports, where my application need to access to 24.  Supposedly, ARNET's
comm driver supports 32 (?) by using some kind of switching.

Thanks again for replying.
Mark

--
Mark Tsombakos
GTE - Special Systems
markt@rocky.ndhm.gtegsc.com
From: jkubicky@cco.caltech.edu (Joseph J. Kubicky)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: How do I get starting sector of a file?
Date: 22 Jan 1993 05:41:48 GMT
Organization: California Institute of Technology, Pasadena
NNTP-Posting-Host: punisher.caltech.edu



I want to know how to read the starting sector of a file.  I also
want to know how to create a sequential file of fixed length.  I want
to do all this so I can do more direct I/O to the disk and (hopefully)
realize some performance gains over normal DOS or C-lib file I/O functions.
(Actually, I going to try to modify the Pagefile VxD and see how fast I
can get stuff on the disk.)

Any references to good books on this sort of thing would also be 
appreciated.

Thanks,

Jay Kubicky

Newsgroups: comp.os.ms-windows.programmer.misc
From: pynq@quads.uchicago.edu (Jeremy Mathers)
Subject: Popping up the System menu in a DOS window
Summary: (Via programmatic control)
Reply-To: pynq@midway.uchicago.edu
Organization: D. J. Dougherty & Associates
Date: Mon, 25 Jan 1993 23:49:18 GMT

Is it possible to simulate the pressing of Alt/Space in a DOS window, in
order to bring up the System menu?  I need to be able to do this for a
project I am working on.

I would think the following fragment ought to work, but it doesn't:

	xor ax,ax
	mov ds,ax
	or byte ptr [417],8		; Turn on Alt
	mov ax,4F39			; (39 = scan code for space)
	stc				; sentinel for ignoring key
	int 15
	...

Note: the above code was cribbed from the reboot code in the
comp.os.msdos.programmer FAQ.

My background:  I am an experienced DOS programmer, and have written
many "pop" programs to pop up TSRs that read the keyboard directly, so I
am familiar with the general concepts (tracing the interrupts, etc)
Generally, all you have to do is follow the INT 9 handler, but I noticed
that WIN386 doesn't capture INT 9, so I am surmising that it is watching
the keyboard via INT 15.  (It could also be doing it via INT 8, but that
didn't seem to be the case)

But I am not a Windows programmer, nor do I have any desire to be.
Thus, email responses would be greatly appreciated, since I probably
don't read this group...

************************************************************************
Our buggy newsreader limits
the length of .signature files
to 4 lines, but I have figured out
a way to have as many lines as

	- pynq@quads.uchicago.edu, who is still costing the net
	  hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Viewer for postscript doc files on NT sdk. 
Organization: Energy, Mines, and Resources, Ottawa
Date: Sun, 24 Jan 1993 21:12:33 GMT

In article <727897437snz@chrism.demon.co.uk> chris@chrism.demon.co.uk writes:
>In article <1324@alsys1.aecom.yu.edu> manaster@yu1.yu.edu writes:
>
>>I  understand that there are some viewers that one can use to view
>> all the postscript documentation files on the NT sdk CD_ROM.
>>[ stuff deleted ]
>> Why on Earth did microsoft put this out in this fashion without a
>> viewer. It almost seems like this is part of some mad plan to
>> force people to BUY the docs.
>>
>
>Because the CD-ROM *also* contains the same information in Windows Write,
>and in "Help" format.  Lots of people have a PostScript printer, and for
>those people, supplying the documentation in PostScript format allows them
>to directly print the documentation without the bother of having to go via
>a word processor.
>
>> Thank you very much for the help.
>>
>> Henry Manaster
>>
	One of the things that annoys me about Windows 3.1 (but I
	do like almost all of it), is the idea of associating a
	file type with a utility to allow it to be accessed and/or
	printed.  So, if I associate *.c with notepad.exe, then
	I can just click on a .c file in File Manager and print it.
	Windows knows enough to fire up notepad to print it.
	*BUT*, what if I have all of these postscript files and I
	don't have an application that can read them in order to
	print them.  The only way to print them from File Manager
	is to have an application that can read PS files associated
	with them.  I am forced to jump out to DOS and do:
		c:\copy xxx.ps lpt1
	which seems kind of silly when Windows is supposed to be
	all-wonderful and all-powerful.

	Obviously, if I have a .WK1 file, I will need a Lotus
	(or clone) product that can read the file if I want to
	print it from File Manager.  But postscript files are
	already print-ready.  So to make a long story short,
	does Windows NT improve upon this Windows 3.1 'gotcha'?

	On a similar note, if *.BAT files are pre-associated as
	'executable' files, then how can I print a *.BAT file
	from File Manager by clicking in it.  Obviously I will
	have to manually fire up notepad on it.  File Manager
	needs a way to print a file just be selecting it (it would
	have to assume you know what you are doing and that the
	file is already in appropriate print-ready format for
	the printer).
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: janssen@sun032.research.ptt.nl (Richard Janssen)
Subject: Subclassing dialog controls
Organization: PTT Research, Groningen, the Netherlands
Distribution: comp.os.ms-windows.programmer.misc
Date: Mon, 25 Jan 1993 12:37:15 GMT

Hello, I posted this problem a week ago and got
some answers, but none solved the problem.
That's why I decided to repost and once again
ask if one of you people can help me out.

This is a short description of the problem:

I try to "subclass" controls in a dialog (created from a .DLG template)
by replacing there Window procedure by my own. I do this by calling 
SetWindowLong(..) in the handling of the WM_INITDIALOG message in the
Dialog Procedure.

The old Window procedure of the control (returned by SetWindowLong())
is stored. The new Window procedure of the control is set up to call
the old Window Procedure for all messages that are not processed.

Here is what my code looks like:

(The variable oldWindowProc is part of a C++ class for the
 control, so appropriate storage space the old Window Procedure is
 arranged.)  

/* DIALOG PROCEDURE */  
... DialogProc (...., WORD wParam, ...)     

   switch (wParam)
   {
      case WM_INITDIALOG: 
         oldWindowProc = SetWindowLong(GetDlgItem(hDlg,ID_CONTROL),
                                       MakeProcInstance(hInst,NewWinProc)); 
         break;  
      ...  
   } 



/* NEW WINDOW PROCEDURE */  
... NewWinProc (HWND hWin, WORD wMsg, WORD  wParam, LONG lParam)   
{
   switch (wMsg)
   {
      ...

      default:
         return CallWindowProc(oldWindowProc, wMsg, wParam, lParam);
         break;

   }

}

The actual problem? As soon as the dialog displays the subclassed control
is not displayed!! The Window is created though, which is shown by
Borlands' WinSight (Borland version of Spy).
In fact if the control is a button, it does display if i click my left
mouse button over it. If i release the mouse button outside the button,
the button stays visble! But now comes the strange part: Firt i drag the
dialog box, so that the button is off the screen.  After releasing the
mouse button i again drag the dialog box, moving the button position
back onto the screen. The button is not drawn, it is invisble !!!
Pressing the left mouse button over it displays it again, which
means the window is still there.

I have tried lots of things like calling ShowWindow() and EnableWindow()
after calling SetWindowLong(), it just doesn't work!!!

Can anybody please help me out !! I'm starting to get desperate !!

Mail to me at: R.H.P.Janssen@research.ptt.nl



Thanks ahead, Richard Janssen
PTT Research, The Netherlands



Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: ToolBar under MDI application 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Thu, 21 Jan 1993 19:12:23 +0000

In article <dtam.727607040@sfu.ca> dtam@fraser.sfu.ca writes:

>I have a toolbar implemented in my MDI application. However, my child windows
>will ovelap the toolbar. Can anyone tell me how to resize the MDI client
>windows so that it will not ovelapped with the toolbar. The MDI frame window is
>the parent of both the toolbar window and the MDI client window!!
> 
>e-mail or post to newsgroup is welcome!!
>                                 
>

The answer is to have the Toolbar window as a child of the FRAME window,
not of the MDI client.  All you have to do then is process the WM_SIZE
message in the frame window proc, and resize/move the MDI client window
yourself, rather than passing WM_SIZE on to DefFrameProc, which resizes
the MDI client to fill the client area of the frame window.

Best wishes,

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
|                                          | CIX: cmarriott              |
| Save the whales.  Collect the whole set. | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: DRPORTER@SUVM.SYR.EDU (Brad Porter)
Subject: Listing open applications in VB???
Organization: Syracuse University
Date: Tue, 26 Jan 93 20:22:19 EST

I'm looking for a way to generate a list of open applications (such as the Task
Manager does) with Visual Basic.  Any thoughts?
especially interested in getting this info at run-time through VB code.
                                 Thanks in advance,
                                 -Brad Porter
DRPORTER@SUVM
From: pfeifer@lf.hp.com (Mark Pfeifer)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Joystick Services in Win 3.1
Date: 25 Jan 1993 19:14:03 GMT
Organization: Hewlett Packard Santa Clara Site
NNTP-Posting-Host: eden.avo.hp.com
X-Newsreader: TIN [version 1.1.2 PL7]


I'm trying to find out how to access the joystick services documented in
the MultiMedia Programmers Reference.  When I call joyGetNumDevs, I get 0 on
a system with 1 joystick.  It looks like I need a joystick driver (just
as one needs a PC Speaker driver to produce WAV audio) but I can't find one.

Do you need a joystick driver, and if so, where can one be obtained?

Thanks for any help...

						Mark
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mark Pfeifer	               (302) 633-8260   Internet: pfeifer@lf.hp.com
Hewlett-Packard Little Falls Site               #include <disclaimer.h>
Wilmington, DE 19808                            #define OPINIONS mine
From: donh@shakala.com (Don Hackler)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Windows execution flow question
Date: Tue, 26 Jan 93 17:41:57 PST
Organization: Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289

chris@chrism.demon.co.uk (Chris Marriott) writes:

> In article <1j33gi$6dp@agate.berkeley.edu> jeff@emily10.Berkeley.EDU writes:
> 
> >        I have a question about Windows program execution flow.  I am
> >a little confused so my question may sound confused, but that may
> >not be too bad, because perhaps the form of my confusion will clue
> >you in to what I am confused about...get it?  Probably this question
> >is very naive and that is both because I am a beginner programmer and
> >because I use OWL which hides a lot of the real nuts and bolts of
> >program execution.  (That, I am discovering, has its pluses and minuses)
> >
> >        Lets say I have a function which is dispatched by a Windows
> >message, and that function has some variable X.  Now this function passes th
> >address of X to some other function for processing the contents of X.
> >Let's say I receive the initial Windows message again.  Will the new message
> >dispatch my function, redefining X, and changing the contents of the adress
> >sent to the secondary function before it is done processing it?
> >
> >        Or does a window wait until all processing is finished before
> >handling the next message in its queue?
> >
> 
> Windows 3.x is a *non-pre-emptive* multi-tasking environment.  The processing
> of one message *always* runs to completion before the next message is
> retrieved and processed.
> 
> Chris
> -- 
Close! But no cigar!...  If the code responding to a given message
yields for any reason, it's possible to have your code re-entered
repeatedly.  For instance, a message box thrown up in response 
to a timer message when an error condition is noted will be
called repeatedly until you run out of heap/GDI/stack etc.

- don

------------------------------------------------------------------
Don Hackler  - donh@shakala.com 
Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289
Newsgroups: comp.os.ms-windows.programmer.misc
From: schoi@casbah.acns.nwu.edu (Scott Choi)
Subject: COM1 port communication
Organization: Northwestern University, Evanston Illinois.
Date: Thu, 28 Jan 1993 20:37:47 GMT

Greetings,

I am trying to write a string size of 0x7FFF to COM1 using RTS and CTS. The
following sequence does not do the trick since I have set some variables
within struct DCB to activate RTS and CTS usage.  Does anyone know this
trick?  

idComDev = OpenComm("COM1", 1024U, 0x7FFFU);
BuildCommDCB("COM1:9600,n,8,1", &dcb); 
dcb.CtsTimeout = 10;
dcb.fRtsDisable = 0;
WriteComm(idComDev, p, 0x7FFFU); 

By the way, OpenComm() has UINT for the transmission queue size but only works
up to 0x7FFF!  

Thank you.  

Scott
From: mm@rhino.oz (Manuel Mall)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Getting Novell bindery info from VB
Date: 22 Jan 93 04:41:56 GMT
Organization: QPSX Communications LTD, Perth, Western Australia.
X-Newsreader: Tin 1.1 PL4

[ Article crossposted from comp.sys.novell ]
[ Author was Manuel Mall ]
[ Posted on 22 Jan 93 04:22:35 GMT ]

I have what may sound like a trivial problem:

To get the Novell LOGIN name and user long name of the currently
logged in user into a VisualBasic program (obviously under
MS-Windows). So far, we set the user id and the user long name
in DOS environment variables as part of the system login script.
This is not a very satisfactory solutions.

I recently downloaded winup7.zip from ftp.novell.com and found
various DLLs in there which looked like having a useful content,
i.e. NWNETAPI.DLL and NWIPXSPX.DLL. Now using Microsofts EXEHDR
program I can easily find out the names of functions defined in
these DLLs, but I have no idea what they do and what the parameter
conventions are.

Can anyone out there help, or even better does someone have a
VisualBasic file with the declarations for these DLLs or at least
the relevant ones for my problem.

Thanks

--------------------------------------------------------
| Manuel Mall               |                          |
| QPSX Communications Ltd   | Tel: +61 9 262 2000      |
| 33 Richardson St          | Fax: +61 9 324 1642      |
| West Perth, WA 6005       | email: mmall@qpsx.oz.au  |
--------------------------------------------------------

--

--------------------------------------------------------
| Manuel Mall               |                          |
| QPSX Communications Ltd   | Tel: +61 9 262 2000      |
| 33 Richardson St          | Fax: +61 9 324 1642      |
| West Perth, WA 6005       | email: mmall@qpsx.oz.au  |
--------------------------------------------------------
From: Kyle Marsh <kylemar@microsoft.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: 3dctl                                                                          
Date: 25 Jan 93 19:27:53 GMT
X-MSMail-Message-ID:  00E31061
X-MSMail-Conversation-ID:  00E31061
X-MSMail-WiseRemark:  YO
To: netnews

Oh yeah, There are no royalties for CTl3D.DLL

Kyle
Newsgroups: comp.os.ms-windows.programmer.misc
From: rtc@sgfb.ssd.ray.com (R. Todd Custer)
Subject: HELP - How to draw unusually oriented text
Organization: Raytheon Submarine Signal Division
Date: Wed, 27 Jan 1993 20:20:20 GMT

How do you draw non-horizontal text in Visual Basic, or Windows in general
for that matter ?  I need to draw text at any orientation.  

Also, I have seen programs that generate 3 dimensional graphs where the text
used to label the axes also appears 3 dimensional.  That is, the user can
specify the viewing angle for the graph and the vertical axis text is drawn
vertically and appears to be rotated about the Z axis as well, so it appears
to be in the same plane as the vertical axis grid. It works with ATM and 
True Type fonts.  How is that done ??

Thanks for any and all help.
Please respond by email.

Todd Custer
Raytheon Company
Portsmouth, RI
rtc@sgfb.ssd.ray.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: ray@tpg.ca.geac.com (Ray Raheem)
Subject: VB & NetBios sessions...
Date: Tue, 26 Jan 1993 18:56:52 GMT
Organization: Geac Canada Limited

Does anyone know of any VB add-ons that will provide NetBios session 
support? I have already looked at MicroHelp's Network Library. Their NetBios
library only has Datagram support.

Thanks.
Ray Raheem
Geac Computers Canada
========================================================
From: brehonyt@ul.ie
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: 32 bit ANSI C compilers for Win 3.1
Date: 25 Jan 93 12:45:12 GMT
Organization: University of Limerick, Ireland




I'm looking for a 32 bit ANSI-C compatible compiler for DOS/Win 3.x. I 
know there are a few on the market. What are they and which are the best
(IYHO) ?. Also which have facilities analagous to the Quickwin facility 
supported by Microsoft C/C++ 7.0. 

Basically what I want to do is to create a 32 bit Win 3.1 program from 
an character mode, 32 bit ANSI C system.

Any comments, advice , etc would be appreciated. Thanks.

Tom Brehony.
Email : brehonyt@ul.ie 
Newsgroups: comp.os.ms-windows.programmer.misc