HDTenEightyP/NetNews huggingface dataset:
From: "chris snell" <chris.snell@canrem.com>
Subject: help gwl_wndproc
Reply-To: "chris snell" <chris.snell@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 3 Jan 93 10:39:01 EST

About 30 minutes after posting the message asking for help, I stumbled 
across the CallWindowProc API function (while looking for CreateIcon 
parameters for an unrelated project), and learned that what I want to do 
is called subclassing, isn't particularly original, and isn't much of a 
problem (provided one knows about the CallWindowProc function). I feel 
like such a Wilson (i.e. a loogan (i.e. a dummy)).

Thanks to all of you who would have reponded, or who didn't get this 
message in time and did respond. If I haven't used up all your goodwill, 
perhaps you would look instead at the message 'All About Icons' and help 
me with that problem instead, as I haven't solved it yet, nor am i likely 
to before you have a chance to respond.

Thanks much,                            chris.snell@canrem.com

---
WMR #1 I was on a roll, until I slipped on the butter.
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Newsgroups: comp.os.ms-windows.programmer.misc
From: rryan@panix.com (Rob Ryan)
Subject: Re: how to animate icon of minimised window ?
Date: Fri, 25 Dec 1992 06:20:10 GMT
Organization: Panix, NYC

In <25DEC199200040150@vms1.iscs.nus.sg> nuscss1@vms1.iscs.nus.sg (Vax BULLET-IN-Board SysOps) writes:

>	I would like to animate the icon of a minimised window. I guess
>	this can be done by continually changing the hIcon of the
>	window class. So what I did is to set a timer, and upon the
>	reception of WM_TIMER, I check if the window is iconic. If it
>	is, I use SetClassWord to change the hicon.
>
>	problem : the dang thing doesn't seem to be working.
>	can someone give me an idea on how to go about implementing it ?
>	am I on the wrong track ? I've check the API, and there doesn't seem
>	to be a function for this purpose.

Are you invalidating your window in your WM_TIMER message?  As well as telling
Windows what the new icon is, you'd probably want to tell it to redraw it (and
you do this by invalidating the appropriate window).

Personally, I wouldn't do the SetClassWord(), but rather manually take over
the processing of the paint command.  So, I'd have something like:

  1. my WM_TIMER code would invalidate the window for the application and set
     a static, hIcon to be the handle of my new icon; and
  2. have a WM_PAINT (Microsoft doesn't recommend using WM_PAINTICON anymore)
     check to see if IsIconic().  So, I'd have something like:
       case WM_PAINT:
         if (IsIconic(hWnd)) {
             BeginPaint(hWnd, &ps);
             DefWindowProc(hWnd, WM_ICONERASEBKGND, (WORD) ps.hdc, 0L);
             DrawIcon(ps.hdc, 0, 0, hIcon);
             EndPaint(hWnd, &ps);
             return 0;
         } else 
             return DefWindowProc(hWnd, message, wParam, lParam);
       case WM_ERASEBKGND:
         if (IsIconic(hWnd))
             return TRUE;
         else
             return DefWindowProc(hWnd, message, wParam, lParam);

  3. Microsoft also recommends taking over the WM_QUERYDRAGICON too:
       case WM_QUERYDRAGICON:
         return (LONG) (WORD) hIcon;

The key is that you invalidate the window to instruct Windows to redraw it.
Just changing the icon isn't enough.

If you have a copy, see the Fall '92 issue of the Microsoft Develop Network
News on how to deal with the painting of icons.  Notably, they discuss the
disappearance of the WM_PAINTICON.

-- 
 Rob Ryan
    rryan@panix.com
From: ps@uta.fi (Pertti Suomela)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Create buttons dynamically, how?
Date: 23 Dec 92 09:08:50 GMT
Distribution: world
Organization: Tampere University, Finland
In-reply-to: chris@chrism.demon.co.uk's message of 15 Dec 92 14:24:38 GMT

In article <724429478snz@chrism.demon.co.uk> chris@chrism.demon.co.uk (Chris Marriott) writes:
> In article <PS.92Dec14233706@kielo.uta.fi> ps@uta.fi writes:

> >How can you create buttons dynamically? That is, how the application
> >can decide during run-time the number and the positions of the buttons
> >it wants to create? All the demonstration programs (BC++/AF/OWL) seem
> >to have a fixed number of buttons. Some other button-like control
> >could serve as well, as long I can create and destroy them
> >dynamically.

> Just use the "CreateWindow" function, exactly as you would for any
> other window, using the pre-defined "BUTTON" window class.  All the
> standard Windows controls can be dynamically created in this way -
> look in the documentation of the "CreateWindow" function to find
> the names of the pre-defined classes.

Thanks for everyone that have answered my question. All the replies
have suggested the obvious way, to use Windows API functions. Nobody
has yet described a way to create buttons dynamically using Borland's
OWL functions. Is it possible?
--
Pertti Suomela

Internet: ps@uta.fi
X.400:    G=Pertti S=Suomela O=uta ADMD=fumail C=fi
From: dagwag@meryl.csd.uu.se (Dag Wahlberg)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: How get font information on a dialog box control?
Date: 19 Dec 92 19:36:57 GMT
Organization: CSD, Uppsala University
Reply-To: dagwag@meryl.csd.uu.se
NNTP-Posting-Host: meryl.csd.uu.se
Keywords: QuickC, Dialog Box Control, Font

 I have created a (modeless) dialog box, defined at compile-time using
"Dialog Editor", included in the MS QuickC/Win package.  The dialog box
contains a text field control (LTEXT) for displaying text.

 At run-time I need to know the width and height of the characters to
display in this text field but I can't get hold of the right
information. GetTextMetrics() returns the _same_ data regardless of the
font (specified w "Dialog Editor") I use. Why?
 GetDialogBaseUnits() does not return any useful information either, I
have received the same size (20x10) on all the fonts (System,
Courier,..)  I have tried. I calculated the different fonts to be 16x10,
20x8, etc on a certain device.

 Wrong functions? Any ideas?

 I use QC/Win 1.0, Win 3.1. 

/Dag

--
===Dag Wahlberg (dagwag@csd.uu.se)  Uppsala University		     ===
===Phone:	+46 18-18 10 17     Computing Science Department     ===
===Fax:		+46 18-52 12 70	    Box 311, S-751 05 UPPSALA, Sweden===
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: buffer sizes for filenames, pathnames etc. 
Organization: Energy, Mines, and Resources, Ottawa
Date: Thu, 31 Dec 1992 01:37:22 GMT

Ok, somebody explain this...

	Function		Buffer Size Required
	-----------------------------------------------------
	GetSystemDirectory	144
	GetWindowsDirectory	144
	GetSystemDir		unspecified
	GetWindowsDir		unspecified
	GetModuleFileName	unspecified (example uses 260)

	(I got the above numbers from on-line help for BC++ 3.1)

	Include File		Definition
	------------------------------------------------
	dir.h			#define MAXPATH      80
	stdlib.h		#define _MAX_PATH    80
	stdio.h			#define FILENAME_MAX 80
	toolhelp.h		#define MAX_PATH     255

Now it seems to me that there should only have to be one definition
	#define MAX_LENGTH_PATHNAME	??
regardless of whether or not we are using DOS or Windows.
This is the size of the buffer required to hold the longest possible
pathname, including drive, directory, filename and extension.

As noted above, there are several defined constants and 3 other numbers
which are not defined symbolically.  I really don't feel like hard-coding
numbers in my programs.

Now when Windows becomes Windows NT, then it probably needs to be
redefined for the new file system, but it can *still* be done with
a single #defined constant:
	#ifdef WIN_NT
	  #define MAX_LENGTH_PATHNAME xx
	#else
	  #define MAX_LENGTH_PATHNAME yy
	#endif

So which is it?  80, 144, 255, 260???

-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.win32
From: johnhall@microsoft.com (John Hall)
Subject: Re: Windows NT October Beta
Date: 31 Dec 92 16:41:28 GMT
Organization: Microsoft Corporation

In article Randall.Adams@ttlg.UUCP (Randall Adams) writes:
| Hello, I'm testing Windows NT, and was wondering if you want each update
| you would have to buy a cdrom each month, 

The $69 gets you free updates.

| Also I'm using a Sony CDROM drive with a 40 Pin Scsi which is not 
| supported.  Does anyone plan to develop basic SCSI driver?  

A 'basic SCSI driver' isn't possible.  Most SCSI controlers are
proprietary.  Microsoft has gone to great lengths, however, to
make writing drivers (and especially SCSI drivers) *much* easier
than before.

| Also I have a Panasonic Worm drive that I would like to get a
| driver for any ideas?

Ask Panasonic when it will be available.

| Lastly, where can I find an NT support BBS?

Compuserve.

-- 
-------------------------
My comments are my own.  They are independent and unrelated to the
views of my company , relatives or elected representatives.

Newsgroups: comp.os.ms-windows.programmer.win32
From: hochstae@allfiwib1.wiwi.uni-marburg.de (Christoph H. Hochstaetter)
Subject: Re: Undocumented API calls
News-Software: IBM OS/2 PM RN (NR/2) v0.16 by O. Vishnepolsky and R. Rogers
Reply-To: hochstae@allfiwib1.wiwi.uni-marburg.de (Christoph H. Hochstaetter)
Organization: Techn. Univ. Clausthal
Date: Fri, 1 Jan 1993 20:13:15 GMT

In <BzGtJp.IBH@news.iastate.edu> martin@iastate.edu (Martin R Calsyn) writes:
>I recently posted here and on Compu$erve requesting advice on how to
>determine the home directory for a user.  MicroSoft responded on CI$ and
>indicated that I should user the HOMEPATH environment variable.  This is
>perhaps tolerable for determining the homedir for the currently active
>user but not real desirable since it's a secondary, non-secure source of
>that information.
>

The calls for doing so are in NETAPI.DLL. Unfortunately there are no header
files (*.H) for the LANMAN-Calls in the October-Release. I am also desperately
desiring them.

Christoph
-------------------------------------------------------+-----------------------
Christoph H. Hochstaetter, Philipps-University Marburg | Universitaetsstr. 25
Internet: hochstae@allfiwib1.wiwi.uni-marburg.de       | D-W-3550 Marburg
Bitnet  : HAMPE2 AT DMRHRZ11                           | Germany
Fido    : 2:243/660                                    | Phone +49-6421-28-7092
Fax     : +49-6421-28-4858                             |
Newsgroups: comp.os.ms-windows.programmer.win32
From: eldon@netcom.com (Eldon B. Tucker)
Subject: filesystem compression under NT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: usa
Date: Wed, 23 Dec 1992 15:26:45 GMT

My question is regarding disk compression and DOS program
compatibility under Win NT. I have 2 200MB hard drives: drive 
C is uncompressed and drive D is compressed under Stacker. I 
do not have enough free disk space to hold all my data and 
files uncompressed, but would like access to them both under 
Win NT and from DOS.

To accomplish this, I need to know:

* Can I create a NT filesystem that supports compression?

* Is this type of filesystem stable, or is my data at risk of
  being corrupted and lost?

* Could "cpbackup" be used to backup, and "cpbackup" under a 
  DOS window under NT be used to restore my files to that 
  filesystem?

And having done this--if it's possible--I'd then need to know
how good NT is about running DOS programs under a DOS window.
Programs that I have that come to mind are foxpro 2.0, 
wordperfect 5.1 for dos, automap, and procomm plus 2.0 for dos.
Newsgroups: comp.os.ms-windows.programmer.win32
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Truetype Fonts not yet supported ?!!!! 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Mon, 28 Dec 1992 21:20:40 +0000

In article <1992Dec28.024014.344@csghsg5a.bitnet> msieber@csghsg5a.bitnet writes:

>Truetype-fonts not yet supported?
>
>After some trouble with cmos.ram, I'm happy,
>that the win16-apps run on my NT-System.
>
>But in controlpanel - fonts, the system says about
>the truetype-fonts:
>"There is a problem with the font file.Cannot display
>font sample."
>
>When trying to uninstall and install again such a font,
>I get the message:
>
>"Unable to install XY(TrueType).
>True Type not installed"
>
>Question:
>Is there a way to fix this?
>
>Every hint is welcome!
>
>Greetings
>                Martin Sieber
>
>

This is a well-known bug in NT.  Basically, TT fonts don't work unless
you leave the LANGUAGE set to "English (American)" (the default value)
when you install NT.  You can change the KEYBOARD to whatever you want,
just don't change the LANGUAGE!  I found this out the hard way myself,
by trying to install with "British" English.

I think you'll have to re-install to get around this.

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Newsgroups: comp.os.ms-windows.programmer.win32
From: hochstae@allfiwib1.wiwi.uni-marburg.de (Christoph H. Hochstaetter)
Subject: Re: Want a windows program to come up at boot
News-Software: IBM OS/2 PM RN (NR/2) v0.16 by O. Vishnepolsky and R. Rogers
Reply-To: hochstae@allfiwib1.wiwi.uni-marburg.de (Christoph H. Hochstaetter)
Organization: Techn. Univ. Clausthal
Date: Fri, 1 Jan 1993 20:20:14 GMT

In <1992Dec18.231403.27205@ttinews.tti.com> terence@tanru.tti.com ( Terry) writes:
>
>We are trying to get a program to start at boot-up.  I've investigated the
>Service API and can get the program started.  The problem is the NT
>logon screen, it is always in the foreground.  I know the window is up
>since I put a Beep() just before the message loop starts but I don't see
>the main window of my application, just the logon screen.  If I then
>logon the very first window displayed, before the program manager, is the
>main window of my application.
>
>I looked at the clock program that comes with NT.  It has an "Always on top"
>selection.  I used spy and discovered that clock creates a timer.  Is clock
>using ShowWindow at each timer message to keep itself up front?  Would this
>override winlogon?

No, you can't display any windows, while no one is logged on, because
WINLOGON.EXE has exclusive ownership of the screen device. You can run
programs using the Service API, but you can't display anything.


Christoph
-------------------------------------------------------+-----------------------
Christoph H. Hochstaetter, Philipps-University Marburg | Universitaetsstr. 25
Internet: hochstae@allfiwib1.wiwi.uni-marburg.de       | D-W-3550 Marburg
Bitnet  : HAMPE2 AT DMRHRZ11                           | Germany
Fido    : 2:243/660                                    | Phone +49-6421-28-7092
Fax     : +49-6421-28-4858                             |
Newsgroups: comp.os.ms-windows.programmer.win32
From: wales@ringss.enet.dec.com (David Wales)
Subject: Re: ATI VGA Wonder+ Driver for Windows NT
Reply-To: wales@ringss.enet.dec.com
Organization: Digital Equipment Corp. Sydney Australia.
Date: Mon, 4 Jan 1993 02:19:28 GMT


G'Day,

In article <1993Jan4.014636.9276@news.jit.dec.com>,
tima_kim@hgova.enet.dec.com () writes:

>Does anyone know whether there is a driver for ATI VGA Wonder+ ?

	ATI recently released a suite of drivers for their accelerated video
cards.  When I heard that I was prompted to e-mail ATI and ask them when we 
would be likely to see drivers for the Wonder+ card.  Their reply (the same
day!) was that they were currently under development and that no date was yet 
available.  They decided to develop the drivers for the accelerated cards
first as they felt that more people would be using those with Windows NT
(probably quite right).

	Note that you can use the VGA Wonder+ with Windows NT in standard VGA
resolution.   One other problem is that the mouse port on the card is not
recognised.   I hope they get that sorted out soon as, to me, getting my mouse
working is more important than high-res at the moment.

David.

-- 
==============================================================================
|David Wales (VK2KWD) Sydney, Australia |Internet: wales@ringss.enet.dec.com |
|                                       |UUCP:     decwrl!ringss.enet!wales  |
| "Only 35 years 'til retirement!"      |                                    |
|                                       |                                    |
| Opinions expressed are mine and       |Voice:  (61) 2 561-6553 (Work)      |
| mine only!                            |FAX:    (61) 2 561-6527             |
==============================================================================

Newsgroups: comp.os.ms-windows.programmer.win32
From: samiam@netcom.com (Scott Moore)
Subject: Re: Can I access WangDAT 6130HS tape drive from NT ?
Keywords: Tape Drive
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: comp
Date: Sun, 27 Dec 1992 19:34:00 GMT

goyal@cs.scarolina.edu (Sanjay Goyal) writes:

>I just received my beta CD version of Windows NT.

>I have a WangDAT 6130HS Tape drive I would like to use with the system, to
>check the backup program supplied with NT.

>When I logon as administrator, and go to BACKUP, it tells me No Drive Found.
>But when I go to the Hardware Setup option from the menu inside Backup, it
>shows the WangDAT 6130HS.

>Why does it then say 'No Drive Found'. Could it be that I need a driver to
>access the WangDAT. I used the Windows NT Setup program to install the
>Python DAT driver, but that does not seem to help.

>I would really appreciate a reply ... since I would like to backup my
>existing files before I tackle the SDK files.

>An e-mail would be appreciated ... I will post summary here.

>Thanks in advance.

>Max

I just thought I would "ditto" this. It describes my situation exactly !

-- 
Scott A. Moore [SAM]  | "Cash is more 
samiam@netcom.com     | important than your 
Santa Cruz, CA USA    | mother"
408-423-1624          | Allan Shugart - CEO Segate Corp.
------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.win32
From: digilab@world.std.com (BioRad Digilab)
Subject: Re: News/UUCP possible from Windows NT?
Organization: The World Public Access UNIX, Brookline, MA
Date: Fri, 1 Jan 1993 16:13:47 GMT

In article <1992Dec31.174132.5412@dbased.nuo.dec.com> coffler@dbased.enet.dec.com (Jeff Coffler) writes:
>
>                             Does anyone know of the status of UUCP
>access on Windows NT?

Yes.  I recently completed a port of UUPC/extended, one of those MS-DOS UUCP
packages you maligned (:-)) to Windows/NT.  We're in the process of beta
testing it now.  If you are interested in experimenting with it, send me
electronic mail at dmwatt@smersh.cambridge.ma.us and I will send you a copy.

However, I have had problems using NT with high-speed serial I/O.  A <lot>
of data gets dropped on my NT system.  But your mileage may vary -- I'm running
NT on a 33MHz 386SX with 12MB of RAM, which (for NT at least) is pretty
underpowered.

Work on a port of rn to UUPC/extended is in progress.

- Dave Watt
dmwatt@smersh.cambridge.ma.us

>	-- Jeff
>
>	Home:	coffler@jeck.amherst.nh.us
>	Work:	coffler@jac.enet.dec.com


Newsgroups: comp.os.ms-windows.programmer.win32
From: hampe@mailgate.wiwi.uni-marburg.de (J. Felix Hampe)
Subject: Re: Truetype Fonts not yet supported ?!!!!
Organization: Philipps-University-Marburg
Date: Wed, 30 Dec 1992 19:32:20 GMT

In article <1992Dec28.024014.344@csghsg5a.bitnet> msieber@csghsg5a.bitnet writes:
>From: msieber@csghsg5a.bitnet
>Subject: Truetype Fonts not yet supported ?!!!!
>Date: 28 Dec 92 02:40:14 GMT

>Truetype-fonts not yet supported?
they are supported

>Question:
>Is there a way to fix this?
yes, just change the language to american english (leave keyboard german..) 
and reboot, don't reinstall!!!
here it works.
happy new year!
Felix

Newsgroups: comp.os.ms-windows.programmer.win32
From: chans@cs.curtin.edu.au (Sean Chan)
Subject: Re: How to get WinNT in AUSTRALIA??
Organization: Curtin University of Technology
Date: Fri, 25 Dec 1992 18:11:11 GMT

I was wondering if anyone in Australia got a WinNT beta, and if you did,
how and how much??

Thanks in adv..

Sean Chan           Curtin University of Technology 
                    Bentley, Western Australia.  
E-Mail : chans@marsh.cs.curtin.edu.au
         pchans@cc.curtin.edu.au
From: Randall.Adams@ttlg.UUCP (Randall Adams)
Sender: postmaster@ttlg.UUCP
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Windows NT October Beta
Date: 02 Jan 93  15:48:13 mst

Thanks John Hall.

Ok so Upgrade are free. How does one go about getting upgrades. And are
they free until the final release?  Also can I get a number where I can 
get updates, or do updates come directly from Microsoft?
 
Ok, is there a place where the new drivers are being posted?  Like on 
Compuserve.  
 
Randall Adams

   
 * WinQwk 2.0 a#0 * Unregistered Evaluation Copy

 * Origin: Alberta Express RBBS-PC (403) 471-6763 14.4 HST (42:100/41)
Newsgroups: comp.os.ms-windows.programmer.win32
From: goyal@cs.scarolina.edu (Sanjay Goyal)
Subject: Can the Python DAT driver in Win NT be used with a WangDAT?
Summary: Can the DAT driver included with NT be used with WangDAT 6130 ?
Keywords: WangDAT
Organization: USC  Department of Computer Science
Distribution: comp
Date: 21 Dec 92 23:59:34 GMT

I just installed Windows NT on my machine ... 
I have two problems -

1. I have a WangDAT Tape drive ... I installed the Python driver included
with NT ... but when I go to Backup it says :
	No Driver found ... check if drive is attached and power is on

But when I go to Hardware Setup from within Backup it identifies the
Tape drive.
What am I doing wrong ?

2. I have partitioned my hardrive with DOS/NT on first partition
and ISC 3.0 UNIX on second partition.
The Dos and NT operating system was installed a while back. And
Windows NT was installed on the DOS partition a few days back.

When the system comes up and ISC Boot Manager asks me which partition
to boot from , and I select NT ... NT gives me a Fatal Error and hangs up!!
The only way to boot NT is to go into UNIX and make the first partition
active and then reboot the computer

There is something strange going on here ... 

Need some helpful suggestions.

Thanks in advance

Max

Newsgroups: comp.os.ms-windows.programmer.win32
From: mokler@desert.in-berlin.de (Claudius Mokler)
Subject: Re: New compiler/linker
Keywords: compiler linker patch
Organization: Private Site
Date: Sat, 26 Dec 1992 22:29:02 GMT

Mee tooo !
Compu$erve is just more than expensive in germany, data is something
similar to gold (to judge by the cost of it) - and 2400 bd is just to
slow (in Germany there are no high-speed connects to Compu$erve)

-- 
Claudius Mokler
e-mail mokler@desert.in-berlin.de

Newsgroups: comp.os.ms-windows.programmer.win32