HDTenEightyP/NetNews huggingface dataset:
From: ereiss@ocf.berkeley.edu (Edward Reiss)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
Subject: Placing text in a stretched bitmat
Date: 27 Jan 1993 06:10:25 GMT
Organization: U.C. Berkeley Open Computing Facility
Distribution: world
NNTP-Posting-Host: maelstrom.berkeley.edu

This question is for a friend.  He has been unable to place text
into a stretched bitmat (after it has been stretched).  To be more
specific, he is using the function "stretchblt()" to stretch a 
bitmap.  He then wants to use "textout()" on the destination device
context.  He *can* place the text into the bitmap before it is
stretched, but then the stretching distorts the text. Any suggestions?

Thanks,

Ed
ereiss@ocf.berkeley.edu
ereiss@cory.berkeley.edu


Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Windows Executable File Format 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Tue, 26 Jan 1993 21:20:57 +0000

In article <r+p3kva@rpi.edu> greeng3@vccnw11.its.rpi.edu writes:

>Does anyone know where I can obtain a specification or other complete 
>description of the Windows Executable File Format?  I am thinking of writing
>some hacking tools basically, and it would be nice if I had some actual
>documentation to start from.
>
>Thanks in advance!
>-- 
>--------- You can never have too many ferrets. -----------
>greeng3@rpi.edu    USERHBN0@RPITSMTS   USERHBN0@mts.rpi.edu
>

It's documented in the "SDK Reference" help file you get with the Windows
3.1 SDK.  Search on "Executable File-Header Format".  I don't recall having
seen it in any of the manuals, but there's *lots* of useful stuff in the
on-line help files that isn't in the printed manuals!

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     |
--------------------------------------------------------------------------
From: peterj@PROBLEM_WITH_INEWS_GATEWAY_FILE (Peter Westley)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: BC++3.0/OWL DDEACK structure from WM_DDE_EXECUTE
Date: 26 Jan 93 01:33:13 GMT
Organization: HP Australasian Response Centre (Melbourne)
X-Newsreader: TIN [version 1.1 PL8.5]

Is the DDEACK structure which comes pointed to in LOWORD of lParam when
WM_DDE_ACK is in response to a WM_DDE_EXECUTE message, valid?

Let me explain:

I have a method called when I receive a WM_DDE_ACK message:
(Using OWL dynamic dispatching it's easy) It get's called after sending a
WM_DDE_XXX message to the DDE serveer, when the server replies with an 
WM_DDE_ACK message.

class DDEClass
{
    //...
    WMDDEAck(TMessage & Msg)
	=[WM_FIRST + WM_DDE_ACK];
    WORD PendingMessage;
}

void DDEClass::WMDDEAck(TMessage& Msg)
{
    switch (PendingMessage)//pending message is the message which was just sent
			   //to the DDE server - i.e. it's what this WM_DDE_ACK
			   //is in reply to.
    {
	case WM_DDE_INITIATE:
	    //stuff
	    break;
        case WM_DDE_REQUEST:                       
	//I put this and the next case in blocks so that the DdeAck is only
	//created if it's needed (i.e. a local copy only)
	    {   //Get the pointer to the DDEACK     
		DDEACK *DdeAck = (DDEACK *)Msg.LP.Lo;
		if(DdeAck->fAck)               //\
		    //stuff if ack is valid;   // \
                else                           //  |- these are different to the
		    //other stuff if it isn't; // /   DDE_EXECUTE commands
	    }                                  ///
	    break;
	case WM_DDE_EXECUTE:
	    {   //Get the pointer to the DDEACK
		DDEACK *DdeAck = (DDEACK *)Msg.LP.Lo; 
		if(DdeAck->fAck)
		    //stuff if ack is valid;
                else
		    //other stuff if it isn't;
	    }
	    break;
    }
}

The problem is that when I get the response from the WM_DDE_REQUEST message,
everything is fine (same for the WM_DDE_INITIATE but I don't use the DDEACK
structure there)  When it enters the case WM_DDE_EXECUTE case section,
I get a GP fault on access to the DdeAck->fAck location.  The code generated
by the compiler is the same for both parts of the case statements (though
I haven't been able to check the code which sets up the DDEACK struct).

SO, does anyone know if there is a problem in the windows code (3.1) which 
might be broken here such that it doesn't allocate the DDEACK structure 
properly?  Is the DDEACK struct supposed to be valid when it's in response
to a WM_DDE_EXECUTE message?

Please help!

Thank in anticipation,

Peter Westley			 .-_!\		Hewlett Packard
Phone: +61 3 (T)272 2440        /     \		Australian Support Centre
Fax: +61 3 890 0326      	\_.-.b/<--------31-41 Joseph St.
E-mail: peterj@hparc0.aus.hp.com     v          Blackburn, Victoria 3130
//
// The views, opinions, information or other data here is solely from the
// mind of myself.  It is not the official word from my employer.  While I
// endeavour to provide accurate information, no responsibility is taken
// for errors or omissions.
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: how do I draw complex polygons (i.e. do-nuts) in Windows?
Date: 28 Jan 93 19:18:47 GMT
Organization: PE-Nelson

In article <1993Jan27.040348.17621@emr1.emr.ca>, jagrant@emr1.emr.ca (John Grant) writes:
|> 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.

I haven't tried it, but perhaps the CreatePolyPolygonRgn() function is
what you want; from the manual:

   The CreatePolyPolygonRgn function creates a region consisting of
   a series of closed polygons.  The polygons may be disjoint, or
   they may overlap.

Now, I wonder if there is a CreatePolyPolyPolygonRgn() for a series
of series of closed polygons :-)


----------------------------------------------------------------------------
Tom Brown               |  "She turned me into a newt...
PE Nelson Systems       |                                  ... I got better"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
From: neff123@garnet.berkeley.edu ()
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: re: CA: Realizer vs. Visual Basic
Date: 26 Jan 1993 23:32:11 GMT
Organization: University of California, Berkeley
NNTP-Posting-Host: garnet.berkeley.edu

>What is the more powerful, easy, and complete programming
>tool, CA:Realizer or Visual Basic?

I use VB 2.0 and I love it.  It may have some limitations but I 
haven't bumped up against them yet.  Sorry, no experience with 
CA:Realizer.  However, I can direct you to the Dec. 1992 issue of 
Byte for a comparison of VB, CA:Realizer and GFA-BASIC.  They 
review VB 1.0 but include a blurb about 2.0.  I used 1.0 and 
find 2.0 a big improvement: MDI, multi-select file windows, etc.

Also, there are many 3rd party add-ons for VB.

I'm not sure what VB Pro offers.  I decided I couldn't afford 
it anyway...

Newsgroups: comp.os.ms-windows.programmer.misc
From: jtc@beta.lanl.gov (Jason T. Cavender)
Subject: Capturing all mouse clicks
Followup-To: jtc@lanl.gov
Organization: Los Alamos National Laboratory
Date: Tue, 26 Jan 1993 16:32:49 GMT

I am trying to write an app that will work kind of like Recorder, except
that is is triggered by clicking on the right or middle mouse button.

My question is: How do you get all mouse messages, including those that
are done in other apps?  Is there a way to modify your message loop to 
get all messages?

It seems that recorder works this way (except with the keyboard),
and I looked at a shareware program called whiskers that does approximately 
this with the mouse, but I couldn't get whiskers to activate recorder.

My end goal is to get the mouse click (right or middle button) to
start an app.  Is there a better way?

By the way, I am using Borland C 3.1.

Thanks for any help, guesses, or whatever you think of.

Jason Cavender
jtc@lanl.gov
From: joe.bartling@uunet!sqlware (Joe Bartling) 
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: VB, ARNET, AND DLL
Date: 23 Jan 93 11:32:00 GMT
Distribution: world
Organization: SQLWare Inc., Leesburg, VA - (703) 771-3979
Reply-To: joe.bartling@uunet!sqlware (Joe Bartling) 

On 1/4/93, Mark Tsombakos of GTE - Special Systems
          (markt@rocky.ndhm.gtegsc.com)
said:
-> I'm relatively new to Visual Basic, so kindly bear with me.  We've
-> purchased a serial communications card from Arnet (the Smartport
-> Lite) that has eight serial ports.  We also bought the Communication
-> Developer's Kit that is designed to let you develop applications for
-> Windows.
->
-> My question:  The Comm Developers Kit comes with a .DLL file, but VB
-> refuses to access it ("Error loading DLL" or something like that).
-> According to the tech support at Arnet, they do not support Visual
-> Basic, but they DO support C. As I understand it, VB should be able
-> to use it anyway.

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
                                                                                                               
----
+--------------------------------------------------------------------------+
| SQLWare BBS  703-771-4158 (HST V.32BIS-Specializing in ORACLE and other  |
| RDBMS topics.  Sponsored by SQLWare Inc., Leesburg,VA-300 conferences.   |
+--------------------------------------------------------------------------+
Xref: sparky comp.os.ms-windows.programmer.misc:5260 bit.listserv.win3-l:12766
From: lotter@cc.und.ac.za (Eddie Lotter)
Newsgroups: comp.os.ms-windows.programmer.misc,bit.listserv.win3-l,comp.windows.ms.programmer
Subject: TBrowse?
Date: Fri, 22 Jan 1993 06:14:34 GMT
Organization: University Of Natal (Durban)
NNTP-Posting-Host: pc17.cc.und.ac.za


I have read myself into a stupor now, and I still haven't been
able to find an elegant solution to this seemingly simple task:

In Turbo Vision, the TListBox allows you to tell it what to
display. This facilitates, for example, displaying only one
field from an object, but if that item is selected from the
listbox, then both fields (e.g. Code, Description) can be
edited in a modal dialog.

Now with TPW, the TListBox has its own string collection and
does not allow you to control what it displays! So it seems
the only way to accomplish the above scenario is to have a
collection of the Code/Description object *and* a listbox
filled only with the Description (which is what I want).

This causes some very interesting logistical situations which,
apart from the already apparent wasteage of memory, are rather
ridiculous. When the user clicks on a listbox entry, I have to
use the listbox index to find the corresponding element in the
collection of Code/Description objects and edit them. If the
Description is modified I have to delete the listbox entry and
insert the changed value.....

Please tell me I missed a complete section of the manual which
describes how to accomplish this!

Personally I feel there are many situations where only a
portion of an object need be listed, but without duplicating
that portion in the listbox!!

Cheers
Eddie                                              lotter@cc.und.ac.za
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The right to do something does not mean that doing it is right.
- William Saffire
Newsgroups: comp.os.ms-windows.programmer.misc
From: eh@mrih.no (Eilef Hellem)
Subject: Re: Detecting SHARE in Windows 3.1
Organization: More og Romsdal Ingeniorhogskole
X-Newsreader: TIN [version 1.1 PL8]
Date: Thu, 21 Jan 93 13:29:28 GMT

Guenter Schwaninger (schwan@rbg.informatik.th-darmstadt.de) wrote:
> Hi netlanders,
> how can I detect in Windows 3.1 whether SHARE is loaded or not ?
> I'm using Borland Pascal.

	You can simply check the Multiplex Interrupt (number 2FH?)
	and see the idsign that SHARE leaves.
	I haven't got the data here right now but i'll give you an 
	assembler output tomorrow if you're interrested.

		I'll be in touch
				Eilef Hellem

 +-----------------+-----------------------+--------------------------+
 |                 | E-Mail:               |                          |
 |  Eilef Hellem   |                       |   /|/ /  /  / / _  _/  / |
 |  MRIH           |  eh@mrih.no           | _/  _/  /__/ /_  _/  _/  |
 |  AAlesund       |                       |                          |
 |  Norway         |     or                |                          |
 |                 |                       |                          |
 |                 |  eilef.hellem@mrih.no | Information at your      |
 |                 |                       | fingertips..,I'm in!     |
 +-----------------+-----------------------+--------------------------+












Newsgroups: comp.os.ms-windows.programmer.misc
From: tac@rena.inesc.pt (Telmo A. Carmo)
Subject: Drawing many different objects
Organization: INESC
Distribution: comp.os.ms-windows.programmer.misc
Date: Tue, 26 Jan 1993 10:38:59 GMT



Hello

I would like some advice on the following problem.

I need to draw may graphical objects, which use different 
pens, brushes, fonts and bitmaps(used for custom brush patterns).

The objects can be created dynamically, so I don't now at start how many
pen/brushes/*,  I will need.

Should I, Each time I need to draw, use the Paint DC or the dc from GetDC(hWnd)
and create the pen/brush/* selected it to the dc, draw, and then deselect it?

What are the penalties of using allways GetDC() (instead of the Paint DC)
even when processing PAINT events?

Would it be faster (since I need to draw many graphical objects) to draw
first on a bitmap and then BitBlt it to the window?

Should I have lists of pre-created pens/brushes/* and each time I need to
perform a graphic operation try to find on those lists the best matching
pen/brush/* instead of creating it?

	Thanks for any info.

Telmo Carmo - tac@inesc.pt

--
=============================================================================
Telmo Carmo -- tac@inesc.pt           | 'Old programmers never die,
Tel: +351-1-3100085 FAX: 351-1-525843 |  they just branch to another address'
==============================================================================
From: brehonyt@ul.ie
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: 32 bit ANSI-C compilers for Win 3.x ????
Date: 26 Jan 93 09:44:30 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

> 
Newsgroups: comp.os.ms-windows.programmer.misc
From: edm@gocart.twisto.compaq.com (Ed McCreary)
Subject: Re: Bitmap dimensions
Organization: Compaq Computer Corp
Date: Fri, 22 Jan 1993 14:44:55 GMT

>>>>> On Fri, 22 Jan 1993 12:00:14 GMT, martijn@cs.vu.nl (Lemmens ML) said:


LM> Is it possible to retrieve the dimensions of a bitmap in a windows
LM> resource file. I can use constants because I draw the bitmap myself,
LM> but I want my program to work independent of the drawings. I know how
LM> to load the resource and how to display it.

try this...

BITMAP	Bitmap;
HBITMAP hBitmap;

hBitmap = LoadBitmap(hInst,(LPSTR)"bitmap_id");
GetObject (hBitmap, sizeof (Bitmap), (LPSTR) &Bitmap);


your width and height are Bitmap.bmWidth and Bitmap.bmHeight.

--
Ed McCreary                                               ,__o
edm@gocart.eng.hou.compaq.com                           _-\_<,
"If it were not for laughter, there would be no Tao."  (*)/'(*)
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Changing fonts in edit controls
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 27 Jan 1993 20:30:46 GMT

In article <1993Jan27.130447.1129@posthorn.informatik.uni-kl.de> schmitz@vier.informatik.uni-kl.de (Wolfgang Schmitz (PA Richter)) writes:
>
>I need to change the font used in an edit window. I
>trapped the WM_CTLCOLOR message and simply mapped
>a different font into the device context provided
>by this message. Unfortunately this works only
>half way. Although the edit window displays it's
>content using the new font, there seems to be
>something messed up with the position of the caret.

	For the n'th time, if you want to change the font of
	a control, send it a WM_SETFONT message, with the HFONT
	of your choice.  The most common requirement seems to
	be to change the font to a fixed font as follows:

	SendDlgItemMessage(hdlg,id,WM_SETFONT,
		(WPARAM)GetStockObject(SYSTEM_FIXED_FONT),0);
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Need text display/editing tools
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 27 Jan 1993 20:56:36 GMT

In article <1993Jan27.192821.13487@st-andrews.ac.uk> djm@st-andrews.ac.uk (David J McNally) writes:
>
>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?
	You are describing a full-fledged word processor app,
	complete with full font control.  Good luck on this one :(

	I think the way they do it is with a whole bunch of
	TextOut calls with (x,y), specifying a different HFONT
	and (x,y) for each formatted string.  You can choose
	options which will update or not the current (x,y)
	position, so that you know where you are at the end
	of each string.  The reason that TextOut has a 'length
	of string' parameter is so that you don't have to
	terminate each substring with a NUL, assuming that
	the text buffer contains several sub-strings, each
	to be displayed in a different font.

	I shudder when I think of the code required to implement
	something like Word or WordPerfect for Windows.

-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
From: s2499576@techst02.technion.ac.il (Yaniv Shaya)
Subject: Is there a FAQ list for this newsgroup ?
Reply-To: s2499576@techst02.technion.ac.il (Yaniv Shaya)
Organization: Technion, Israel Inst. of Technology
Date: Wed, 27 Jan 1993 06:57:57 GMT

Hi everybody
~~~~~~~~~~~~

I would like to get the FAQ list for the windows programming newsgroups
if there is such. 
Could someone point me to it ? Prefferably to an ftp site and directory.

Thanks
~~~~~~ Yaniv

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 05:44:18 GMT

-- 

Best wishes,
	Edward Yuen Ping Ching.
	
Newsgroups: comp.os.ms-windows.programmer.misc
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: RGB <--> HSL ???
Organization: Morituri Te Salutent, Inc.
X-Newsreader: TIN [version 1.1 PL7]
Date: Mon, 25 Jan 93 20:48:53 GMT

George Yefchak (yefchak@hplabsz.hpl.hp.com) wrote:
> Where can I find routines to convert between the various
> color-mapping schemes, such as RGB, HSL, CMYK, etc.?
> Thanks!
> 
Look inside any recent book on color perception and reproduction.  That's 
how I got mine: I just typed in the pseudo-code from a book as C.
--
||||||||||||||||||||||||||||||||||||||||Marketing is the business of selling
|| Honk if you like Einstein |||||||||||projects to management.
||------------------------------------------------------------------------
||Dave Jones (dj@ekcolor.ssd.kodak.com)|Eastman Kodak Co. Rochester, NY  |
Newsgroups: comp.os.ms-windows.programmer.misc
From: instm@helios.rz.tu-clausthal.de (Stefan Mueller)
Subject: ATI/Ultra-Driver for NT - WHERE ?
Organization: Techn. Univ. Clausthal
X-Newsreader: Tin 1.1 PL5
Date: Tue, 26 Jan 1993 18:27:22 GMT

Hi Folx !

I'm looking for an ATI/ultra-Drriver (or even 8514/a) for Windows-NT.
Is there anything apropriate to be FTPed, if so ... where ?

Thanx in advance, Stefan

instm@helios.rz.tu-clausthal.de
instm@139.174.2.11

Newsgroups: comp.os.ms-windows.programmer.misc
From: oneil@cwis.unomaha.edu (Sharon O'Neil)
Subject: Re: Visual Basic 1.0 for sale
Organization: University of Nebraska at Omaha
Date: Mon, 25 Jan 1993 12:00:39 GMT

U0XH <U0XH@UNB.CA> writes:

> I've got MS-Visual Basic 1.0 for Windows for sale for $75.
> Bought it new few months ago, excellent condition, manuals never used.
> Email if interested.

If you bought it around Oct. 1, you can use it to upgrade to 2.0 for free.
Of course, then you can't sell 1.0, since that would massively violate your
license.
From: ee_d270@ceres.kingston.ac.uk (Richard D Knight)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: BWCC and custon controls
Date: 22 Jan 1993 13:12:28 -0000
Organization: Kingston University, Kingston-upon-Thames
Distribution: world
NNTP-Posting-Host: ceres.kingston.ac.uk

BORLAND C++ and APP Framework

Hi. I have created a dialog resource using the resource workshop, and I 
would like to executer it, have the sure fill it with information save
the information to a file and then close the dialog.

Can anyone tell me how to do this. All the examples I can find dont
use resources, but create the dialogs on the fly. As Im a bit dumb, I
cant get it to work.

can anyone help?

thanks

Newsgroups: comp.os.ms-windows.programmer.misc
From: jas37876@uxa.cso.uiuc.edu (John A. Slagel)
Subject: Re: Memory I/O operation in windows. How?
Organization: University of Illinois at Urbana
Date: Sat, 23 Jan 1993 16:24:19 GMT

    To access the memory at segment D000, you need to use a predefined
    selecter.  Here's how to clear the segement located at D000. 
    Once you make the MyMemory pointer, you can just access it like
    any other array.

    #include "windows.h"

    extern WORD PASCAL __D000H;

    #define MY_SEGMENT (&__D000H)

    main()
    {
	 long i;
	 BYTE FAR * MyMemory;

	 MyMemory = (BYTE FAR *)MAKELONG( 0, MY_SEGMENT );

         for (i=0; i<0xFFFF; i++ )  {
	     MyMemory[i] = 0;
         }
     }
-- 
-----------------------------------------------------------------------------
 John A. Slagel              "My old man used to tell me, before he left this
 j-slagel1@uiuc.edu           shitty world, never chase buses or women- you
 (217) 337-7930               always get left behind." -The Marlboro Man
Newsgroups: comp.os.ms-windows.programmer.misc