HDTenEightyP/NetNews huggingface dataset:
From: rioj7@fel.tno.nl (M.L.M.Veraart)
Subject: Re: Custom Controls and their Properties
Organization: TNO Physics and Electronics Laboratory
Date: Thu, 21 Jan 93 07:43:52 GMT

scott@opl.com (Scott Evernden) writes:

>I want to build some installable custom controls.

>These controls will maintain properties that I want interface designers be able
>to set at design time via Dialog Editor or Resource Workshop.  To work with
>these tools, I develop a style dialog which my control DLL will run when its
>ControlStyle() function is called.  The style dialog collects values for the
>properties of my control; most of these properties cannot simply be encoded as
>some style bits..

>My problem is: how do I stuff the values of properties set at design time
>(collected via my style dialog) into the resource file produced by Dialog
>Editor or Resource Workshop?   Is this even possible?

[.. further examples deleted ..]

Scott, 

a possible solution is to build the dialog completely on your own
using calls to CreateWindow for every dialog item you want. The settings
of the individual controls can be stored in a private .INI file.
Maybe it is possible to used a template resource in .rc file that has
the controls that are not to be configured.

Hoping this will be a solution, I haven't inplemented it myself.

Mario Veraart
email: mveraart@fel.tno.nl
-- 
Mario Veraart                  TNO Physics and Electronics Laboratory
email: rioj7@fel.tno.nl        The Hague       The Netherlands
"If all else fails, show pretty pictures and animated videos, 
 and don't talk about performance",  David Bailey
From: brehonyt@ul.ie
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Program to write clipboard to text file anyone ?
Date: 21 Jan 93 10:33:30 GMT
Organization: University of Limerick, Ireland


I'm looking for source code for a Win3.1 program that writes
the contents of the clipboard to a text file, assuming of course
that the contents of the clipboard are text.

I know this is a trivial exercise for a Windows programmer, which 
unfortunately I am not. Has anybody out there come across, 
or had to write something similar to the above. If so I would be
glad to hear from you. Thanks in advance.

Tom Brehony.
Internet Email : brehonyt@ul.ie
Newsgroups: comp.os.ms-windows.programmer.misc
From: steven@gopher.dosli.govt.nz (Steven Brydon)
Subject: limits on items within combobox object
Organization: Dept. of Survey & Land Information, NZ.
Distribution: comp
Date: Wed, 27 Jan 1993 19:57:18 GMT


I need to program a combo box object which must contain a lot of list items.
To be exact I want to store approx 12000 street names (average length ~20
chars) in a combo box. Unfortunately I have only been able to store approx
half the streets I need to. I am using Turbo C++ but only using the C
language.

Someone I work with here vaguely remembers a discussion taking place on this
subject in the old programmer newsgroup late last year. Could someone post or
email me what the outcome of this discussion was or give me some indication
how to overcome the combobox limit I am encountering.

Thanks in advance.

        Steven Brydon
        Dept Of Survey and Land Information
        Wellington
        New Zealand.
From: manaster@yu1.yu.edu (Chaim Manaster)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Viewer for postscript doc files on NT sdk.
Date: 28 Jan 93 03:15:05 GMT
Distribution: usa
Organization: School of Engineering and Applied Sciences, UCLA

>If anybody does happen to know of a public domain PostScript viewer, that
>has been ported to Windows NT, and can read the PostScript files that
>have been included on the SDK, I'd be more then happy to pass it on to
>the SDK team for inclusion in a future rev of the disk.

 followup to my own posting. I have indeed recently found out that
 such a public domain viewercan be found at ftp.uu.net under the
 name viewps.zip under a Compuserve subdirectory (I don't recall
 the name), but you can easily find it by some trial and error, or
 by using archie. I do hope you will use it or something similar,
 and not cop out by the "not made here syndrome." 

 P.S. I haven't tried it yet, so I don't know how well it works.

 Henry Manaster

-- 
***************************************************************************
	Henry Manaster          *     EMail: manaster@yu1.yu.edu
	Brooklyn, NY            *
                                *
	Disclaimer: The above is not necessarily MY opinion nor that 
				of anyone else :-)  ????!
****************************************************************************
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Bitmaps and palettes 
From: mackintosh@ug.eds.com (Alasdair Mackintosh)
Date: 26 Jan 93 12:01:29 PDT
Reply-To: mackintosh@ug.eds.com (Alasdair Mackintosh)
Distribution: world
Organization: EDS Unigraphics, Cypress CA



  I'm trying to use AnimatePalette to change the colours on the  screen. I've 
  got a dialog that allows you to edit the colours in the logical palette, and 
  this works fine with the colours that I've drawn, but it doesn't work with
  a bitmap.

  Here's what I've done (using TC++ and OWL):

  1) Create a logical palette.

  2) When I set up my main window, I create a memory display context (using
     CreateCompatibleDC), create a bitmap, and select it into the memory
     display context. (This memory DC has the same number of bits-per-pixel
     and color planes as the original screen DC.)

  3) I draw onto the screen DC using SetPixel, and also using FillRectangle.
     In each case, I use PALETTEINDEX to get a COLORREF value for drawing with.

  4) I also draw onto the bitmap (via the memory DC) using exactly the same 
     function calls. I then transfer the bitmap onto the screen using BitBlt.

  5) My Paint member function does this as well (ie draws onto the bitmap,
     and draws onto the screen.)


  When I run my dialog, (which calls AnimatePalette to change the colours) the
  rectangels/pixels that I've drawn directly onto the screen change colour. But,
  the stuff that was drawn onto the bitmap doesn't change.

  Any ideas?

  P.S. I don't have the code in front of me - I may have mispelled some of the
  function names.



--
===============================================================================
Alasdair Mackintosh                             mackintosh@ug.eds.com
Unigraphics Division                            (714) 952-5698
Electronic Data Systems                         10824 Hope St, Cypress CA
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: trapping interrupts - more
From: <KDW103@psuvm.psu.edu>
Date: Tue, 26 Jan 1993 22:01:16 EST
Organization: Penn State University

  Thanks to all of you who offered suggestions on my problem.  Unfortunately,
I have still not been able to make any progress.  I am posting again to give
more details in hopes that someone may still be able to help.

  My isr is in a dll.  I have the segment decalred as FIXED in the def file.
 It was suggested that I still need to use GlobalPageLock.  I am attempting
 this with the following lines of code:


HGLOBAL hCS;



 _asm mov hCS, cs

 GlobalPageLock(hCS);

 Is this the correct way to do this?

    I have been told that the only thing I may call during an interrupt is
 PostMessage.  Am I allowed to call OutputDebugString???  This isn't the
 problem anyway.  If I take them out, it still crashes.

    I am not worried about making this as bullet proof as some have suggested.
 Once the interrupt is enabled, the next press of the mouse button will cause
 the program to disable it, so I don't have to worry about switching to a dos
 prompt or anything like that.

    I am using INT 21h to set the interrupt vector.  Is there some other way
 I should do this?

    Now for an explination of what is happening.  The isr is supposed to fill
 data buffers with info each time an interrupt occurs, then it sets a bit in
 a header to indicate that the buffer is done.  The program using the driver
 keeps checking the bit to see when the data is ready, then it saves it to a
 file or something, I don't have the code for the calling program.  The isr
 works with no problem if it never sets the bit to indicate the data is ready.
 Of course, the calling program never knows there is any data either.  When I
 add the line that sets the bit, the isr gets called, fills the buffer, marks
 it as being done, and exits.  Then the computer crashes.  I have seen the
 message "No rom basic, system halted" quite a bit recently.  Why would it give
 me this message?  It will crash in other ways depending on what other programs
 are in memory at the time (such as Dr.Watson, and WinDebug) sometimes the
 whole system freezes, the mouse cursor included.

   Please, help me.  I have been stuck on this for weeks.  I am getting really
 frustrated.  Any comments are appreciated.  If anything is unclear from my
 description, or if you need more info, please let me know.

    Thank You,
        Keith (kdw103@psuvm.psu.edu)
Newsgroups: comp.os.ms-windows.programmer.misc
From: avinogra@empire.cce.cornell.edu (Alex Vinogradov)
Subject: Re: Memory management from Unix to Windows
Organization: Cornell Cooperative Extension
X-Newsreader: TIN [version 1.1 PL8]
Date: Mon, 25 Jan 1993 21:03:11 GMT

Michael Brill (yikes@netcom.com) wrote:

: I'm developing an app on the NeXT that I'd like to take the bulk
: of to either Windows and/or Macintosh.  I think I know how to 
: port everything but the UI and memory management.  Note that the
: pieces of the app I want to port are just plain old ANSI C.

: As far as the UI goes, I'm not going to worry about now.  What I
: am worried about is memory management.  I've scanned through the
: Windows docs and understand how memory management works there
: (getting handle, locking, operating, unlocking) and I'm looking
: for an established scheme to make the port seamless between Unix
: and Windows/Mac.

I was doing almost the same thing for the last couple of month --
transferring apps from X Windows to MS Windows.  The first 90% of
the time where spent trying to write my own memory-manager which
would allow me to use plain malloc()/free() from the UNIX code.
Only recently I found out that if I use MS C/C++ 7.0, Windows 3.1
and large memory model, I can just go ahead and use malloc() and
free() without having to worry about all that handles stuff. 
Moreover, using malloc/free under C 7/Win 3.1/Large memory model
is even better than using GlobalLock/Alloc/Unlock/Free calls
because malloc/free do their own memory management.

The summary of all that is that if you not targetting for real-mode
and if you are using MS C &, you do not have to worry about memory-
management AT ALL !!

The only question I have is why Microsoft does not tell about it
in any of the manuals that are shipped with SDK 3.1/MS C 7.0 ?
(Even though when I asked a Microsoft customer support person,
he confirmed that all of the above is true)


-- 
---------------------------------------------------------
Alex Vinogradov
Cornell Cooperative Extension, Electronic Technology Group
avinogra@empire.cce.cornell.edu
From: jagrant@emr1.emr.ca (John Grant)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: how do I draw complex polygons (i.e. do-nuts) in Windows?
Date: 27 Jan 93 04:03:48 GMT
Article-I.D.: emr1.1993Jan27.040348.17621
Organization: Energy, Mines, and Resources, Ottawa

I've been trying to understand the ...region... Windows functions, but
I'm not having much luck in applying them to my requirement to draw
complex polygons.  Specifically, I want to draw a lake containing an
island (or two) as a single filled polygon.

In UNIRAS (graphics library on VAX/Sun), it was simple.  All I had
to do was fill up an array with the polygon (x,y), inserting a special
(-999.999,-999.999) point in the array for each breakpoint (i.e.
when toggling between land and water).

x	y
-------------
x	y		these are the (x,y) for the lakeshore
x	y
...
-999.999 -999.999	break to island #1
x	y		these are the (x,y) for island #1
x	y
...
-999.999 -999.999	break to island #2
x	y		these are (x,y) for island #2
x	y

UNIRAS would then take this array and draw and fill the lake
(excluding the islands) in a single function call.

Can anyone show me some code to do the Windows equivalent?
I'm sure it has something to do with the ...region... functions,
but I can't seem to make the right connection.  Perhaps I want
to create several regions and perform some Boolean logic on them?
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: Gunnar.Sylthe@nsd.uib.no
Subject: Re: MS Windows GUI standards.
Followup-To: comp.os.ms-windows.programmer.misc
Reply-To: Gunnar.Sylthe@nsd.uib.no
Organization: Norwegian Social Science Data Services
Date: Fri, 22 Jan 93 07:41:31 GMT

In article <1993Jan21.164826.6281@mic.ucla.edu> stephen@eggneb.astro.ucla.edu (Stephen Schimpf) writes:
>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.  I'm not sure of
>>the ISBN number etc.

>No! This book came as part of MSC 6.00 and is outdated. A few months
>back Microsoft published a book that replaces the IBM one. I can't
>give you the exact title, but have seen it in many bookstores for
>$24.95. I comes with one diskette.

This is probably the book you're thinking of:

		The Windows Interface  -  An Application Design Guide
		Microsoft Press, 1992
		ISBN 1-55615-384-8

Mine didn't come with a diskette, though. 


--Gunnar

+------------------------------------------------------------------------+
  Gunnar Sylthe                                       Phone: +47-5-212125
  Norwegian Social Science Data Services              Fax:   +47-5-960660
  Hans Holmboes gate 22                   Email: Gunnar.Sylthe@nsd.uib.no
  N-5007 Bergen
  NORWAY
+------------------------------------------------------------------------+

Xref: sparky comp.os.ms-windows.programmer.misc:5361 comp.os.msdos.programmer:12445
From: chris@visionware.co.uk (Chris Davies)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: DDE exchange formats
Date: 27 Jan 93 13:35:33 GMT
Organization: VisionWare Ltd., Leeds, UK
X-Newsreader: Tin 1.1 PL5

Alan Merrell (alanm@askinc.ASK.COM) wrote:
> I'm trying to pass data in and out of Excel using DDE.  [...]
> The windows.h file defines several "clipboard format" types - but it
> doesn't define the type Excel uses.

Excel tries to use several types.  It starts (I think) with CF_BIFF and
then wanders through a variety of formats until it eventually reaches
CF_TEXT.  All you need to do is to NACK the format(s) you don't
understand and Excel will try again.  I can't find a code fragment
offhand, but this should point you in the right direction.

Chris
--
            VISIONWARE LTD, 57 Cardigan Lane, LEEDS LS4 2LE, England
  Tel +44 532 788858 x238.  Fax +44 532 304676.  Email chris@visionware.co.uk
---------- "VisionWare:   The home of DOS/SQL/UNIX/X/VMS integration" ---------
Xref: sparky comp.os.ms-windows.programmer.misc:5480 comp.os.ms-windows.programmer.tools:2271
From: djm@st-andrews.ac.uk (David J McNally)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
Subject: Need text display/editing tools
Date: 27 Jan 93 19:28:21 GMT
Organization: St. Andrews University, Scotland.


Hello all,

I am developing an application (using Borland C++) in which I need a
window which contains text (read only) and this text may contain
multiple highlighted selections.  Can this be done simply
with the Windows API or does this need complex text manipulation
and display code to be written?

More generally, how do you get a text window in which you can
display (and/or edit) text which is not all in the same style
(e.g. different fonts/sizes/colours etc)?  Are there third party
libraries (preferably with source) which provide this kind
of functionality?

Many thanks in advance
Dave McNally
From: pfeifer@lf.hp.com (Mark Pfeifer)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Joystick Services in Win 3.1
Date: 26 Jan 1993 16:01:10 GMT
Organization: Hewlett Packard Santa Clara Site
NNTP-Posting-Host: eden.avo.hp.com
X-Newsreader: TIN [version 1.1.2 PL7]

I found out from John Dallaway ( jld@eng.cam.ac.uk ) (Thanks, John) that
I need IBMJOY.DRV and JOYSTICK.CPL from the Windows 3.0 MultiMedia
developers kit.

Since I can't just rip off a copy from someone with the MDK, does anyone
know of a second source for this information?  Is it time to start
begging from Microsoft?

						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: ee_d270@ceres.kingston.ac.uk (Richard D Knight)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Dialog boxes and stuff
Date: 25 Jan 1993 14:39:58 -0000
Organization: Kingston University, Kingston-upon-Thames
Distribution: world
NNTP-Posting-Host: ceres.kingston.ac.uk


Hi. I have two problems.

the first is, how do I put a different number in the bottom corner
of my dialg box every time it is created.

the scond is, I am using borland custom controls (bwcc.dll) and want
the message boxes to have the smae lok. Is it possible for me
to do this.

Thanks a lt

ee_d270@king.ac.uk

Newsgroups: comp.os.ms-windows.programmer.misc
From: weiss@cwis.unomaha.edu (R. Jason Weiss)
Subject: CA: Realizer vs. Visual Basic
Organization: University of Nebraska at Omaha
Date: Tue, 26 Jan 1993 21:57:03 GMT

Howdy,

I've got some fairly simple Windows programming to do, just point and click
stuff.  However, I might end up doing fairly complex programs.  I'd like to
work in Windows because the Windows environment seems to be easier for what
I'd like to do.  What is the more powerful, easy, and complete programming
tool, CA:Realizer or Visual Basic?  I probably don't have the cash to buy
Visual Basic Pro, so I'm limited to the lowly version.  If it's any help, I
have lots of experience programming in QuickBasic 4.5

Sorry I'm a bit jumbled, but I've got to rush off and teach a class.

Thanks to anyone who can help me make this choice!

...Jay
weiss@cwis.unomaha.edu
--
weiss@cwis.unomaha.edu
From: karlth@rhi.hi.is (Karl Thoroddsen)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Memory management from Unix to Windows
Date: 25 Jan 93 09:41:51 GMT

In <1993Jan23.042005.15653@netcom.com> yikes@netcom.com (Michael Brill) writes:

<Porting from the NeXT to Windows or the Mac>

>As far as the UI goes, I'm not going to worry about now.  What I
>am worried about is memory management.  I've scanned through the
>Windows docs and understand how memory management works there
>(getting handle, locking, operating, unlocking) and I'm looking
>for an established scheme to make the port seamless between Unix
>and Windows/Mac.

There a few things you should consider regarding Window's memory management:

1.	Target Standard and Enhanced mode.  Windows 3.0 Real mode is dead.
2.	Static data and the stack are confined to the same 64k segment (If you
	wish to run multiple instances of your app)
3.	The use of 64k+ data objects is a bit troublesome.
4.	Global memory handles are limited, use subsegment allocation.  
	Subsegment allocation is supported by Borland's and Microsoft's 
	compilers, a source can also be obtained in Paul Yao's 'Power 
	Programming For Windows'.

Buy a good Windows memory management book:
	'DLL's and Memory Management'


>Does targeting Win32 make life any easier for me?

Easier porting yes, easier marketing no (not today at least).

>Thanks, ...Michael Brill (yikes@netcom.com)

Karl
-- 

\ Internet: karlth@rhi.hi.is             \ Karl Thoroddsen University Of Iceland
 \ Respect...            , Peter Ustinov  \ Department Of Computer Science
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:  39491519
X-MSMail-Conversation-ID:  39491519
X-MSMail-WiseRemark:  YO
To: netnews

>Where is the 3dctl.doc file that describes the library functions?
>It seems that 3-31.zip does not contain the description file.
>I would appreciate it if someone could e-mail the document.
The docs are in 10-4.zip

>Are there royalties associated with using the 3dctl.lib?
No

>Do the developers guarantee upward compatibility with  newer versions
>of Windows?
Ctl3d will be compatiable with future versions of Windows. The docs 
explain this.

Kyle, MS Developer Network
From: schwan@rbg.informatik.th-darmstadt.de (Guenter Schwaninger)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Detecting SHARE in Windows 3.1
Date: 21 Jan 1993 08:48:12 GMT
Organization: TH Darmstadt
Distribution: world
NNTP-Posting-Host: rbhp87.rbg.informatik.th-darmstadt.de

Hi netlanders,
how can I detect in Windows 3.1 whether SHARE is loaded or not ?
I'm using Borland Pascal.

Help is greatly appreciated. Thanks.
Guenter
-- 
   __&__      
  /     \     Windows is from the company that brought us EDLIN. 
 |       |    
 |  (o)(o)    
 C   .---_)   
  | |.___|    
  |  \__/     Guenter Schwaninger 
  /_____\     schwan@rbg.informatik.th-darmstadt.de 
 /_____/ \    
/         \
From: johnf@scd.hp.com (John Flowers)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: VB: VBX removing divide by zero
Date: 27 Jan 1993 23:05:13 GMT
Organization: Hewlett Packard Santa Clara Site
NNTP-Posting-Host: hpscle.scd.hp.com
X-Newsreader: TIN [version 1.1 PL8.1]

Does anyone have experience with a VBX causing the divide by zero error
trapping of VB 1 or 2 to stop working?  This is also affecting the
overflow error condition.

I took the cntr.c example in the Control Development Kit and recompiled
it using Borland C 2.0 and the code works but somehow it disables 
these error traps.

Any help would be greatly appreciated, we would like to ship our
product without this bug.

--
*********************************************************************
*   John P. Flowers            _\|/_______________________          *
*   johnf@scd.hp.com            /|\ We can tell how                 *
*   HP Santa Clara Division         far gone you are!               * 
*   q: What's the difference between a rabbit and software bugs?    *
*   a: Rabbits reproduce easily                                     *
*********************************************************************
From: jjarrett@csugrad.cs.vt.edu (James Jarrett)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Palette RIFF file format
Date: 25 Jan 93 18:58:38 GMT
Organization: Virginia Tech Computer Science Dept, Blacksburg, VA

What is the file format for a RIFF palette file, ala paledit?  Is this
information available through the Multimedia Developers Kit?  What other
RIFF specs are included?

Thanks,
Jim

PS If you can, please respond to jjarrett@csugrad.cs.vt.edu