HDTenEightyP/NetNews huggingface dataset:
From: Kyle Marsh <kylemar@microsoft.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Virtual Listbox                                                                
Date: 4 Nov 92 22:20:45 GMT
X-MSMail-Message-ID:  26E73213
X-MSMail-Conversation-ID:  26E73213
X-MSMail-WiseRemark:  Microsoft Mail -- 3.0.729
To: netnews

The virtual list box stuff is now available on ftp.uu.net in 
/vendors/microsoft/developer-network/win
The files are:
vlbdocwh.zip - a windows help file describing everything.
vlistsam.zip - the sample custom control.

Kyle
MS Developer Network
From: trepe00@DMI.USherb.CA (ERIC TREPANIER)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Boldface Stock Fonts?
Date: 5 Nov 92 19:11:41 GMT
Article-I.D.: DMI.Bx9BzH.rH
Organization: Universite de Sherbrooke -- Dept. d'Informatique

In article <92310.090842SASTPH@vm.sas.com> <SASTPH@vm.sas.com> writes:
>In article <1992Nov4.222139.19762@ods.com>, scott@ods.com (Scott Harper) says:
>>
>>Is there a way to make one of the stock fonts take on
>>a BOLD attribute (ala the LOGFONT structure, lfWeight = FW_BOLD)?
>>
>Windows can deliver BOLD versions of the standard fonts.  Just ask for
>a bold weight (FW_BOLD) when you call CreateFont.  Note that the default
>font for dialog boxes is Helv 8 Bold.

That's fine when you're using CreateFont, but I think the original poster
was referring to the standard stock fonts, using the GetStockObject API call.
In this case, since you don't get to use a LOGFONT structure, you can't
specify any special attributes.

Maybe there is an API call that will return a filled-up LOGFONT struct
when given a HFONT handle.  If not, then you have no choice but to request
your font explicitly using CreateFont.


Eric
-- 
Eric Trepanier
eric@tgm.CAM.ORG
"Everybody has a right to believe in something.
 I believe I'll have another beer."
Newsgroups: comp.os.ms-windows.programmer.misc
From: baker@westsd.dco.dec.com (Art Baker)
Subject: Re: Books on OLE?
Organization: Digital Equipment Corporation
Date: Wed, 11 Nov 1992 16:00:09 GMT

In article <1992Nov11.102409.882@informix.com> christb@infmuc (Christian Barmala) writes:
>I appreciate the book "Programming Windows 3.1" by Charles Petzold.
>Regretably there was no chapter about OLE and none about Drag&Drop.
>Does anyone know a book that covers these features and is written
>in a similar style as the one mentioned above?
>
>Regards, Christian Barmala

 Yes, Microsoft Press recently published a Programmer's Guide to OLE
(that may not be the exact title).  It does a good job of covering all
the issues.

-- 
	***********************************************************
	* Art Baker			| Joy and fierceness...	  *
	* baker@westsd.dco.dec.com	|  			  *
	***********************************************************
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Boldface Stock Fonts?
Date: 5 Nov 92 18:44:05 GMT
Organization: PE-Nelson

In article <92310.090842SASTPH@vm.sas.com>, SASTPH@vm.sas.com writes:
|> In article <1992Nov4.222139.19762@ods.com>, scott@ods.com (Scott Harper) says:
|> >
|> >Is there a way to make one of the stock fonts take on
|> >a BOLD attribute (ala the LOGFONT structure, lfWeight = FW_BOLD)?
|> >
|> Windows can deliver BOLD versions of the standard fonts.  Just ask for
|> a bold weight (FW_BOLD) when you call CreateFont.  Note that the default
|> font for dialog boxes is Helv 8 Bold.

Yes, but there's a difference between "standard" fonts (which I would define
as those fonts that are supplied with Windows 3.1) and "stock" fonts which
are the fonts defined in SYSTEM.INI as fixedfon.fon= and fonts.fon=

These are bitmapped fonts that have been tailored to specific screen
resolutions and are available via the GetStockObject() routine.  As
jagrant@emr1.emr.ca pointed out, you cannot do anything to a stock object.

You are correct in that all the "Standard" fonts come with bold-faced
versions which can be created with the right parameters in CreateFont().
Since the system font is a variable pitch, sans-serif font, using "Helv"
or "Arial" when creating the font will give something that looks pretty
much like the stock font.


----------------------------------------------------------------------------
Tom Brown               |  "'ow d'you know 'e's a king?
PE Nelson Systems       |            'cause 'e 'asn't got shit all over 'im!"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: linz@cavebbs.welly.gen.nz (Lindsay Mathieson)
Subject: Print Jobs
Organization: The Cave MegaBBS, Public Access Usenet, Wellington, NZ
Keywords: windows print spool
Date: Mon, 09 Nov 92 22:14:41 GMT

I'm trying to write a windows prog that detects whenever a print job
starts, so that I can send data to the port, _before_ the job
goes out. the purpose of this is to control a print sharing device
transperantly to the user.

There are no (documented) message for doing this. I feel this should
be possible because the print spooler itself does similar stuff.

A MS support guy said I'd have to use the DDK, which I don't have


Newsgroups: comp.os.ms-windows.programmer.misc
From: s892031@yallara.cs.rmit.OZ.AU (Pumpkin Power)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Linker cannot find functions in <process.h> - help!
Date: 12 Nov 92 05:27:05 GMT

I am currently writing a windows program using Borland C++, 3.1.
I am trying to use the functions system(), execl() or similar, but during
linking I keep getting the error "undefined symbol _system() in module ..."

On a similar note, WinExec() fails to find what I am trying to execute if
I include a full path name such as "C:\stuff\test.exe", but if I simply
provide it with "test.exe", and c:\stuff is in the path it finds and
executes it no problems (the full pathname returns error 2, file not found).

Email preferred, but not essential :)  Thanks!

Peter Barton : s892031@minyos.xx.rmit.oz.au
From: Kyle Marsh <kylemar@microsoft.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: **Huge data listbox                                                            
Date: 4 Nov 92 22:20:35 GMT
X-MSMail-Message-ID:  9A9D9F3B
X-MSMail-Conversation-ID:  9A9D9F3B
X-MSMail-WiseRemark:  Microsoft Mail -- 3.0.729
To: netnews

The virtual list box stuff is now available on ftp.uu.net in 
/vendors/microsoft/developer-network/win
The files are:
vlbdocwh.zip - a windows help file describing everything.
vlistsam.zip - the sample custom control.

Kyle
MS Developer Network
From: kuusama@kaarne.cs.tut.fi (Kuusama Juha,,,,)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: A block diagram editor wanted
Date: 6 Nov 1992 08:27:05 GMT
Organization: Technical University of Tampere, Dep. of Computer Science ,Finland 
Distribution: world
Reply-To: kuusama@kaarne.cs.tut.fi
NNTP-Posting-Host: kaarne.cs.tut.fi
Originator: kuusama@kaarne.cs.tut.fi

I have a program idea, which I'd like to try. The input to my
program would be a block diagram (of a sort). It would save
me much time and effort if I could use a ready-made diagram
editor.

Is there a program I can use or modify to fit my purpose? I don't
need anything fancy, just something that would give the connection
list out. Of course, public domain or shareware is much preferred,
but commercial packages are not out either.

Will I have to write my own?
--
Juha ( == kuusama@cs.tut.fi )
From: schmidtg@iccgcc.decnet.ab.com
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: DDEML application question
Date: 11 Nov 92 13:24:35 EST



I am trying to develop a communications server using the DDEML.  Several
clients can establish a conversation with the server.  The client sends
a command packet to the server, the server processes it by sending it to
a device and waits for the reply from the device.  When the reply becomes
available, the server returns it to the client.  All packets consist of
binary data.  I want to minimize the overhead in performing this simple
transaction.  The problem that I am having is that the DDEML services do
not fit well in this model.  Although conforming to the DDE standard is
desirable, it may not be a strict requirement as the communication server
is internal to the system.  However, performance is a big requirement.

So far I have considered:


1)  	Client POKES command packet to server.
	Server POKES command packet back to client.

	Advantage(s);
		* Does exactly what I want.
	Disadvantage(s);
		* Departs from true client/server model (mutual client
		  server relationship).
		* Requires establishing twice as many conversations as
		  other alternatives.


2)	Client POKES command packet to server.
	Server sends a DATA message back.

	Advantage(s);
		* Does exactly what I want.
	Disadvantage(s);
		* Does not conform to DDE standard.


3)	Client POKES command packet to server.
	Client sends a request message to server.
	Server sends a DATA message back.

	Advantage(s);
		* Conforms to DDE standard.
	Disadvantage(s);
		* Requires an extra transaction.


4)	Client enters an ADVISE loop
	Client POKES command packet to server.
	Server returns data to client by an INFORM to the client.

	Advantage(s);
		* Conforms to DDE standard.
	Disadvantage(s);
		* An unnatural way of modeling the problem.


As I have very limited experience with DDE, can someone suggest a reasonable
way to implement this?

Thanks in advance,

-- Greg Schmidt		schmidtg@iccgcc.decnet.ab.com

--
From: James_Zuchelli@qm.claris.com (James Zuchelli)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Help with Programming Bar Code
Date: 11 Nov 92 00:20:01 GMT
Distribution: usa
Organization: Claris Corp

I have a friend who wants some information on programming Bar Code
(UPC, etc.) (He's using a Mac, but generic or DOS/Windows info would be
great.)

Does anyone have info on how to produce Bar codes, read them, etc.  Spacing
requirements for the lines, etc.

Email is appreciated, will post if I get anything.

James Zuchelli
-------------------
This is my personal opinion and not that of Claris Corp. or my Empolyer.
Newsgroups: comp.os.ms-windows.programmer.misc
From: hafey@capitol.com (Rob Hafey)
Subject: Need help with palettes...
Organization: Capitol Disc Interactive
Date: Mon, 9 Nov 1992 19:38:15 GMT

I am having trouble getting a 256 color BMP image to display with the
proper palette.  I load in the file raw, extract the palette and
create the palette (using the CreatePalette function).  During the
WM_ACTIVATE & WM_PAINT callbacks I select the palette (SelectPalette),
realize the palette (RealizePalette) and then update the colors
(UpdateColors).  Finally I blit the image to the device
(SetDIBitsToDevice).  The problem is that the image adapts itself to
the current palette but does not update the system palette.  My colors
are close but not identical to the image's palette.

I am fairly sure that the palette I created is correct because if I
run Photostyler and load the BMP image then my program remaps my image
correctly.

Does the SelectPalette,RealizePalette,UpdateColors route not update
the system palette and just map the colors?  Should I use the
AnimatePalette function to force a palette change during the
WM_ACTIVATE message?  If anyone has experience with this I would
appeciate any help.  At this point I am beating my head against the
wall and it's starting to hurt...

Please EMAIL

Rob

-- 
 Rob Hafey
 Capitol Disc Interactive (CD-I) 
 2121 Wisconsin Ave NW, Washington D.C. 20007   (202)625-0141 
 hafey@capitol.com
From: mconca@boi.hp.com (Mike_Conca)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Interrupts under Windows ?
Date: 10 Nov 92 01:36:56 GMT
Organization: Hewlett-Packard / Boise, Idaho
X-Newsreader: TIN [version 1.1.4 PL6]

Barbara Maren Winkler (winkler@cs.tu-berlin.de) wrote:
: 
: Hello,
: 
: does anybody know how to program an interrupt under Windows (3.1)?
: Or any other way to really stop execution until the last statement
: (in C) has finished?
: 
: The problem is: We want to write a driver for an external device,
: 
: ...
:
: Does anybody know a solution?

You want to write a virtual device driver (aka VxD).  These run at ring-0
as part of the Windows operating system and are very powerful.  The
tools necessary to write them come as part of the Windows DDK.
								-Mike
--
     Mike Conca  |  Hewlett-Packard Network Printer Division  |  Boise, ID
          E-Mail: mconca@hpbs987.boi.hp.com      Voice: (208)323-5626
    Disclaimer:  Any opinions expressed do not necessarily reflect those of 
                 Hewlett-Packard.
Newsgroups: comp.os.ms-windows.programmer.misc
From: bdwheele@silver.ucs.indiana.edu (Brian Wheeler)
Subject: Re: OVERFLOW ERROR with Double in VB
Organization: Indiana University
Date: Thu, 5 Nov 1992 14:11:35 GMT

In <9211042127.AA24137@top.magnus.acs.ohio-state.edu> John E Salter <salter@magnus.acs.ohio-state.edu> writes:



>What am doing wrong to cause the OVERFLOW ERROR.
>If it is a VB problem, is there a work around?
>I am trying to do logical ORing of bits in double numbers.


>    Dim tbits As Double
>    Dim sbits As Double
>    Dim wbits As Double
>    sbits = 0
>    tbits = 2 ^ 36              'This statement is OK
>    form1.Print sbits           'This is OK
>    form1.Print tbits           'This is OK
>    wbits = sbits Or tbits      'Produces OVERFLOW ERROR
>    form1.Print sbits Or tbits  'Produces OVERFlOW ERROR


>John Salter
>salter.1@osu.edu

Logical operators work only on integers.  variables that are stored as Double
have a format somthing like this:
	SEEEEEEEEEEMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
where:
	S is the sign (1 bit)
	E is the exponent (10 bits)
	M is the mantissa (53 bits)

(I may be a little off on the bit counts)

so it doesn't make any sense to OR something with this because it isn't in a
true binary number format.
I suggest using LONG or INTEGER.  LONG is 32 bits (I think) and INTEGER is 16 
bits, and both are signed.

	Hope this helps
-- 
******************************************************************************
* Brian 'Nautical' Wheeler - These are my opinions, do you hear me?  MINE!
* "Wombats are our friends" - Me
******************************************************************************
Newsgroups: comp.os.ms-windows.programmer.misc
From: trepe00@DMI.USherb.CA (ERIC TREPANIER)
Subject: Re: Is it a DDE ??
Organization: Universite de Sherbrooke -- Dept. d'Informatique
Date: Wed, 11 Nov 1992 21:49:22 GMT

In article <1992Nov10.060611.367@empire.cce.cornell.edu> avinogra@empire.cce.cornell.edu (Alex Vinogradov) writes:
>
>I just noticed that when one uses File Manager to print a file, it calls
>program which the file is associated with and then makes this program print 
>the file.  It looks quite interesting -- for example, for *.txt files
>Notepad pops up, prints the file, and then exits back to File Manager.
>
>Does anyone knows how is it done?  Is that some kind of DDE interaction?

Not necessarily, although in some case this is what happens.  For example,
for text files (*.txt), WinFile invokes notepad with the filename and the /p
parameter (notepad.exe /p myfile.txt).  While when you do the same with
a Word document (*.doc), WinFile opens Word (if it isn't already opened),
and then does a couple of DdeExecute's to remotely open your file and print
it and then close it and optionnally close Word if it wasn't already opened.

The actual behavior is defined in the registration database, which you
can browse using Win 3.1's registration database editor (REGEDIT.EXE).

>
>Alex
>

Eric
-- 
Eric Trepanier
eric@tgm.CAM.ORG
"Everybody has a right to believe in something.
 I believe I'll have another beer."
Newsgroups: comp.os.ms-windows.programmer.misc
From: brad@huey.Jpl.Nasa.GOV (Brad Hines)
Subject: Re: Interrupts under Windows ?
Reply-To: brad@huey.Jpl.Nasa.GOV
Organization: JPL Spatial Interferometry Group
Date: Tue, 10 Nov 1992 22:05:09 GMT

In article <BxH8HK.CEp@mail.boi.hp.com>, mconca@boi.hp.com (Mike_Conca) writes:
>You want to write a virtual device driver (aka VxD).  These run at ring-0
>as part of the Windows operating system and are very powerful.  The
>tools necessary to write them come as part of the Windows DDK.

I recall seeing that the was a "DDK-Lite" sort of thing included on
the MS Developer's Network CD that I got recently.  This may be enough
to do what you need to do.  The MSDN stuff is available via anonymous
FTP from ftp.uu.net in /vendor/microsoft/developer-network, or something
like that.

-- 
Brad Hines
Internet: brad@huey.jpl.nasa.gov
Jet Propulsion Lab, Pasadena, California
Newsgroups: comp.os.ms-windows.programmer.misc
From: nmurrayr@cc.curtin.edu.au (Ron Murray)
Subject: Status lines in MDI frame windows: how?
Organization: Curtin University of Technology
Date: Sat, 7 Nov 1992 12:08:39 GMT

   How are the dinky little grey status lines on MDI frame windows (like the
WfW status line: the one with the current line/column, caps lock status etc.)
done? The fact that they all look very much alike from app to app makes me
suspect that there's a standard function that does it, but I can't seem to
find any reference to it. Or do you have to do it the hard way by creating
child windows, limiting the size of the client area, and so on?

 .....Ron

-- 
                                 ***
 Ron Murray
 Internet: nmurrayr@cc.curtin.edu.au
     Are we having fun yet?    -- Garfield
Xref: sparky comp.os.ms-windows.programmer.misc:3361 comp.os.ms-windows.programmer.win32:1913
From: westes@sti.com (Will Estes)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.win32
Subject: How To Store Resources For Different Types Of Monitors
Date: 11 Nov 92 04:21:38 GMT
Article-I.D.: sti.BxJAs3.2Mw
Organization: Mail Group

I have two questions regarding the support for different color schemes. 

Suppose you wanted one application to work with all kinds of monitors,
from black-and-white through 24-bit, and that you had prepared a set of
resources for each of five different color sets: 

-	B&W
-	4-color
-	16-color
-	256-color
-  	24-bit

The two questions are:

1)	What is the optimum way to save the resources?  Is it better to
create separate resource-only DLLs (i.e., one for each color scheme), 
and then load resources from the appropriate DLL, or is it better to 
keep all of the resources in a single DLL and then load as appropriate
from the one DLL?  To the extent that a LoadResource() takes up memory 
for just the resource and not the entire DLL, would it make any difference 
in terms of disk space (obviously not), memory utilization (?), or resource 
consumption (probably not)?  

2) 	As a practical matter, which different color schemes do you need
to be concerned about supporting?  For example, I assume that a 24-bit
resource would probably display pretty well on a 256-color monitor, so
maybe it is best to just skip developing a separate set of resources for
256-color?  I'm looking for comments from those who have had to support
different color schemes.

-- 
Will Estes		Internet: westes@netcom.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: andys@rruxc.uucp (25651-say)
Subject: Re: Borland Resource Workshop - Problem with bitmapped resources
Organization: Bellcore, Livingston, NJ
Date: Sat, 7 Nov 92 21:59:35 GMT

In article <4109@bcstec.ca.boeing.com> sjm2458@bcstec.ca.boeing.com (Steve McCarthy) writes:
>
>  In Resource Workshop, there is a rather odd thing happening when I
>am creating or modifying a bitmap or icon resource.
>
>  Whenever I click the mouse in the color pallate window to change the
>foreground or background color, the entire window gets painted over with
>a red color, which totally obscures the bitmap being worked on.  The only way I have found to get the wondow to get back to "normal" is to either minimize
>the window followed by a restore to force a redraw, or to move the tool windows
>to several different locations to force a redraw of the region behind the tool
>window's former location?
>
>  Anyone seen this one before? (my config 486/50,200M,8M,ATI Ultra,Win 3.1,
>DOS 5,Phoenix BIOS).
>-- 
>    Steve McCarthy, speaking solo por mio       | "I'm not a C programmer,
>      reply: sjm2458@bcstec.ca.boeing.com       |  but I play one on TV..."

    I have also had the same thing happen to me.  I have found another way
of getting the screen to redraw is by resizing the bitmap.  My config is
a 486/33,340M HD, 8M RAM, ATI Ultra with drivers dated 4/22/92,Win 3.1,
4DOS 4.0 running on DOS 5.0, Award BIOS.

   Any other ATI Ultra users seen this?  Maybe it is a driver problem??

Andy
Newsgroups: comp.os.ms-windows.programmer.misc
From: c2s4027@tamsun.tamu.edu (Cedric Sims)
Subject: Re: Borland Resource Workshop - Problem with bitmapped resources
Organization: Texas A&M University, College Station
Date: Mon, 9 Nov 1992 14:40:38 GMT

In article <1992Nov8.115853.19547@mnemosyne.cs.du.edu> lcsmith@nyx.cs.du.edu (Lindsey Smith) writes:
>>    I have also had the same thing happen to me.  I have found a
>>of getting the screen to redraw is by resizing the bitmap.  My c
>>a 486/33,340M HD, 8M RAM, ATI Ultra with drivers dated 4/22/92,W
>>4DOS 4.0 running on DOS 5.0, Award BIOS.
>>
>>   Any other ATI Ultra users seen this?  Maybe it is a driver pr
>
>I have an ATI Ultra and the same problem.  Does anyone _not_ have an Ultra
>but have the (really annoying) window-goes-bonkers problem?
>
>Lindsey
>lindsey@max.ee.lsu.edu
>


I have the same problem with a Trident 9800 card, but only at 256 colors.

Cedrico.
-------------------------------------------------------------------
 Cedric J. Sims                               Texas A&M University
                                         Computing Services Center
 cedrics@tamu.edu                          (SELL)  Room 216 Teague
 +1 409 862 4104                    College Station, Tx 77843-3142
-------------------------------------------------------------------
-- 
-------------------------------------------------------------------
 Cedric J. Sims                               Texas A&M University
                                         Computing Services Center
 cedrics@tamu.edu                          (SELL)  Room 216 Teague
From: heathh@cco.caltech.edu (Heath Ian Hunnicutt)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Hourglass cursor help needed!
Date: 10 Nov 92 21:38:06 GMT
Article-I.D.: gap.1dpa3uINNivt
Organization: California Institute of Technology, Pasadena
NNTP-Posting-Host: punisher.caltech.edu

mboucher@cortex.prospect.com (Mike Boucher) writes:
>I have the following code, which should change my cursor to the hourglass...

>  SetCapture(hWnd);
>  hHourGlass = LoadCursor(NULL, IDC_WAIT);
>  hOrigCurr = SetCursor(hHourGlass);

>  CVSendItem (hWnd, STRTAPPOP, ...); <- obscenely long routine...

>  SetCursor(hOrigCurr);
>  ReleaseCapture();

>When defining the windows class, I have this line...
>  wc.hCursor = NULL;
   ^^^^^^^^^^^^^^^^^^
	This code needs to be changed.

>When I call the SetCursor, the cursor changes to the hourglass, and changes
>right back to the arrow.  I'ts so fast It's barely noticable.  Any ideas what
>I'm doing wrong?

	I have noticed a few times that if a class is registered with a
NULL hCursor, that some of the API functions don't work as expected.
Specifically, it seems that SetCursor will not change the window cursor
away from NULL.  So, the cursor bitmap changes, but then the mouse moves.
Windows checks to see where the cursor is, and what mouse cursor that
region of screen is using.  (This occurs without regard to the current
capture.)  Since your class specifies NULL, it changes back to the arrow.

	Try changing your code to wc.hCursor=LoadCursor(NULL,IDC_ARROW);

	So here's my question -- Is there an advantage to:

hOldCaptureWnd=SetCapture(hWnd);
.
.
.
if (hOldCaptureWnd)
	SetCapture(hOldCaptureWnd);
else
	ReleaseCapture();

as opposed to just blindly calling ReleaseCapture() when done?



-- 
--
From the Home for Amnesiac Computer Scientists....
  heathh@cco.caltech.edu