HDTenEightyP/NetNews huggingface dataset:
From: yefchak@hplabsz.hpl.hp.com (George Yefchak)
Subject: RGB <--> HSL ???
Date: Mon, 25 Jan 1993 17:37:22 GMT
Organization: Hewlett-Packard Laboratories Palo Alto,CA
X-Newsreader: TIN [version 1.1.4 PL6]

Where can I find routines to convert between the various
color-mapping schemes, such as RGB, HSL, CMYK, etc.?
Thanks!

***********************************************************************
* George Yefchak                          Hewlett-Packard Laboratories*
* Internet: yefchak@hpl.hp.com            P.O.Box 10350               *
* CompuServe: 73607,1625                  Palo Alto, CA 94303-0867    *
* AmericaOnline gyefchak@aol.com              415-857-4793            *
*   NOT SPEAKING FOR HP                   FAX 415-852-8502            *
***********************************************************************
Newsgroups: comp.os.ms-windows.programmer.misc
From: cttan@ntuix.ntu.ac.sg (cttan@ntuix.ntu.ac.sg)
Subject: printing bitmap to printer in VB
Organization: Nanyang Technological University - Singapore
X-Newsreader: TIN [version 1.1 PL8]
Date: Thu, 28 Jan 1993 14:46:28 GMT

Hi,
	Could anyone please help me with this?
	I am trying to print a bitmap to a laser printer from within Visual
	Basic.  Can you please give me some pointers?

	Thanks a million!!


// Email add:    cttan@ntuix.ntu.ac.sg
// Name:         Tan Chin Thong
// Organisation: Nanyang Technological University, Singapore
//
// Disclaimer: Any opinion expressed here are mine and mine alone.
// {:-) May your wish be realized (-:}
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: DPtoLP question 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Sun, 24 Jan 1993 17:40:33 +0000

In article <1993Jan24.011013.6436@crd.ge.com> deitsch@sol.crd.ge.com writes:

>I'm trying to do something very simple.  I want to create a grid in
>a window.  I'm using the MM_LOENGLISH map mode because I want the
>space between grid lines to be the same no matter what the screen 
>resolution.  The following is an excerpt from the code:
>
> [ source code deleted ]
>
>The first loop works fine, and the vertical lines are drawn correctly.
>The problem is that DPtoLP is converting rect.bottom to a negative
>number!  This obviously causes the second loop to next execute.  When
>I look at rect in the debugger, rect.bottom is a positive number.  Why
>is it getting translated to a negative?
>
>If I comment out SetMapMode, then the grid is created, but it won't be
>the same size on any screen.
>
>Any help would be greatly appreciated.
>
>-- 
>_________________________________________________________________________
>Andy Deitsch                             email    : deitsch@crd.ge.com  
>GE Corporate Research & Development      phone    : (518) 387-7207   
>Schenectday, NY 12301                    dial comm: 833-7207     
>

It's because the Y-axis in the *device* coordinate system increases
downwards, whereas it increases *upwards* in the MM_LOENGLISH coordinate
system.  Because the bottom your rectangle is below the top, it's at a
negative Y-coordinate.

There's a much easier way to do what you want, by the way.  Just use
"GetDeviceCaps" to find the resolution of the device (in pixels per inch),
and scale your grid that way.  If you do this, you can stay with the MM_TEXT
mapping mode.

eg, if you want lines spaced 1/4 of a logical inch apart, just say:

    int space = GetDeviceCaps( hDC, LOGPIXELS)/4;

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: alan@comp.lancs.ac.uk (Alan Phillips)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Common Dialog Box Oddity
Date: 22 Jan 93 09:29:06 GMT
Organization: Department of Computing at Lancaster University, UK.

Before my brain starts to fry, can someone tell me what must be the obvious
answer to this??

Porting the PFE editor to NT, I found that I got UAEs from the printer font and
screen font dialogs when the user pressed OK. Very, very messy UAEs that
mangled the stack completely (and mostly broke WinDBG too).

After a lot of grief I happened to notice in the help file the little sentence
"the CHOOSEFONT struct must be global or declared static". So I made it static
in both dialogs, and lo and behold, everything worked. (I have a hook proc in
there, BTW).

I just don't understand this. The dialog is _modal_, so the stack frame of the
routine that calls ChooseFont() can't get unwound while the dialog is running.
So why do you need a static struct, and why does the break happen? And why does
it _not_ happen ever on Windows 3.1?

I can understand the need with the Find and Replace dialogs, which are modeless
and hence run after the caller's stack has gone (and I fell into the same trap
there too). But here?? Actually, the documentation says that _all_ the structs
(CHOOSEFONT, OPENFILENAME etc) must be global or static.

OK, I'm missing something totally simple. What is it?

Alan
Newsgroups: comp.os.ms-windows.programmer.misc
From: willi@enel.ucalgary.ca (Ian Williamson)
Subject: On the Fly Modal Dialogs?
Date: Wed, 27 Jan 93 16:15:47 GMT
Organization: ECE Department, U. of Calgary, Calgary, Alberta, Canada

Has anyone here in there travels come across a way to build modal dialog
boxes on the fly.  We have a need to create a dialog box, at run-time (so
it can't be a resource) that is modal...non-modal is easy.
Can anyone help?  We have searched all the documentation we have, including
the developer's CD.  Any where else we should try.

Please EMAIL responses to:
willi@geo.ucalgary.ca

Thanks!

Ian

---
willi@geo.ucalgary.ca
From: raw@miki.acad.com (Robert A Whiteside)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: DDEML callbacks.
Date: 27 Jan 93 22:57:10 GMT
Organization: AutoDesk, Inc. Sausalito, CA


Hi All,

    Can I have two instances of my DDEML callback function on the
stack at once?  That is, if my callback runs a message pump while
responding to a DDE message, can my callback be called again?  I think
I'm observing that it will not: no DDEML callbacks are dispatched
during the processing of a DDEML callback.  Though this initially
surprised me, I can imagine that there's a good reason for this.
However, I can't find a clear statement of this in my manuals.  Does
anyone know what guarantees I'm given in this regard?  (Also, how did
you learn this?)

Thanks,
--Bob Whiteside
raw@autodesk.com

--
---------------------------------------------
Bob Whiteside, (415) 491-8633, raw@autodesk.com
Hypercube, Inc.
From: whedon@netcom.com (Bill Whedon)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: How do I center the Common Dialogs in C?
Keywords: COMMDLG CENTER
Date: 27 Jan 93 19:33:31 GMT
Organization: Laughing_Dragon

I need to be able to center the common dialogs in a window.  How do I
get the HWND to the dialog to do this?

Thanks,
Bill Whedon   whedon@netcom.com

-- 
C, ICON dBase Ada!  Paradox?  (B Jovial, Pascal!)
Newsgroups: comp.os.ms-windows.programmer.misc
From: sloth@yoyo.cc.monash.edu.au (Andrew Bulhak)
Subject: Ctl3d source, anyone?
Organization: Monash University General Access Unix
X-Newsreader: TIN [version 1.1 PL8]
Date: Thu, 28 Jan 1993 04:41:00 GMT

I seem to recall that a while ago, Microsoft were giving away source for
their Ctl3d library. Does anyone still have this? If so, and if it's not
illegal, could you mail it to me? Thanks.

	- acb


+---------------------------------------------------------------------------+
|  Andrew Bulhak		|    "Shakespeare as much as Brutus plotted |
|  sloth@yoyo.cc.monash.edu.au	|     Julius Caesar's death."               |
|  Monash Uni, Clayton,         |              - de Selby, Golden Hours     |
|  Victoria, Australia          |                                           |
+---------------------------------------------------------------------------+
From: paul@svl.cdc.com (Paul Kohlmiller)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Getting file association info
Summary: Need a pointer to the function that can get file association info.
Keywords: windows associate application document
Date: 25 Jan 93 21:53:23 GMT
Distribution: usa

In windows you can associate a file extension (eg. .doc) with an application
(eg. MS Word). I need to get this association information from within my
app. I can't find it in Petzold or the Windows API. Can someone point me in
the right direction? Thanks.
  
--
     // Paul H. Kohlmiller             //  "Cybers, Macs and Mips"    //
     // Control Data Systems, Inc.    // Internet: paul@svl.cdc.com  //
     // Acronym under construction.  // America Online: Paul CDC    //
     // All comments are strictly my own. I won't lie but my       //
     // perception of reality is at best a personal hunch.        //
Newsgroups: comp.os.ms-windows.programmer.misc
From: avinogra@empire.cce.cornell.edu (Alex Vinogradov)
Subject: old-fashioned memory allocation
Organization: Cornell Cooperative Extension
X-Newsreader: TIN [version 1.1 PL8]
Date: Fri, 22 Jan 1993 05:47:28 GMT

Could some kind soul please e-mail me article "Allocating Memory the
Old-Fashioned Way: _fmalloc and Applications For Windows" by Dale Rogerson,
July 1992, from MS Network Developer's CD-ROM under technical articles for
C/C++ ?

-- 
---------------------------------------------------------
Alex Vinogradov
Cornell Cooperative Extension, Electronic Technology Group
avinogra@empire.cce.cornell.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: h9112654@hkuxb.hku.hk (Edward P.C. Yuen)
Subject: Displaying dialog boxes
Organization: The University of Hong Kong
Date: Tue, 26 Jan 1993 06:14:47 GMT

Hi netters,

	I'm using Turbo Pascal for Windows 1.5, and now I've got a problem
that my application can some dialog boxes only when Resource Workshop is 
running. For example, my application has 2 dialog boxes, About and Options,
When RW is running, both can be displayed correctly. If RW is closed, only
Options can be displayed. The About dialog box only have several static 
controls and an OK button, while the Options one has a scroll bar and buttons.
Is there any files or .dll's that RW is using so that my application can 
work? Any idea?

	Any opinion can be mailed to h9112654@hkuxb.hku.hk
	Thank you in advance.

-- Edward Yuen
   Dept. of Computer Science
Newsgroups: comp.os.ms-windows.programmer.misc
From: "larry koester" <larry.koester@execnet.com>
Subject: what's in those .dlls
Reply-To: "larry koester" <larry.koester@execnet.com>
Organization: Executive Networks Information
Distribution: comp
Date: 21 Jan 93 11:53:40 EST

DA>I'd like to get a description of the entry points and calling
DA>sequences for all the "standard" Windows 3.1 .DLLs (e.g. commdlg.dll).
DA>Is there such a thing?  I don't suppose there is any way to examine a
DA>.DLL and get this information.  Of course, it wouldn't tell you WHY to
DA>call the entry point, but if you could at least get the entry point
DA>names and calling sequences you would have a fighting chance of
DA>figuring out how to use the buggers.

David A. Bright,

There was an interesting article in Windows Tech Journal, August 1992,
titled, Spying on Windows that discusses something like what you have
mentioned.  The author, Brett Glass, wanted to use the calls in
LZEXPAND.DLL, and tried various paths of investigation.  The author
finally got a copy of the Windows 3.1 SDK and discovered how well he had
done.  He conclusion was that he "didn't discover absolutely everything
about the routines..." he felt he "had a good enough grasp of the basics
to put the DLL to use" in his own programs.  I personally would probably
just by the SDK rather than go through what he had to do to get what he
did.  Read the article.

- Larry Koester, Bloomer, WI
---
  DeLuxe/386 1.25 #641s  Now using Qmail DeLuxe...and loving it!
--
Executive Network Information System  (914) 667-4567
International ILink Host
Xref: sparky comp.os.ms-windows.programmer.misc:5312 comp.os.ms-windows.programmer.win32:3041
From: manaster@yu1.yu.edu (Chaim Manaster)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.win32
Subject: Viewer for postscript doc files on NT sdk.
Date: 24 Jan 93 10:24:03 GMT
Followup-To: comp.os.ms-windows.programmer.misc
Organization: Yeshiva University

I  understand that there are some viewers that one can use to view
 all the postscript documentation files on the NT sdk CD_ROM.

 The only other alternative is to print it out, but thats thousands
 of pages - ridiculous!

 Please let me know if you can email a version you have handy
 (public domain or shareware) or an ftp site that carries it.

 Otherwise alternative commercial solutions are a possibility as
 well.

 Why on Earth did microsoft put this out in this fashion without a
 viewer. It almost seems like this is part of some mad plan to
 force people to BUY the docs.

 Thank you very much for the help.

 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
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: send restart message 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Wed, 27 Jan 1993 23:02:45 +0000

In article <RIETH.93Jan24120629@namu02.gwdg.de> rieth@namu01.gwdg.de writes:

>i am looking for the possibility to restart windows from an application. 
>I know that i just have to send some kind of a message to windows and 
>that it (ofcourse) has something to do with the number 42 in the parameters
>or something like that.
>
>does anyone know the exact message followup with parametervalues for windows
>and if special for BorlandC++3.1 ???
>
> any kind of message to me would be nice
>   i say 42, BrainMan 
>

The function call you need is:

    ExitWindows( EW_RESTARTWINDOWS, 0 );

where, as you suggested, EW_RESTARTWINDOWS is a constant (defined in WINDOWS.H
which has the value 0x42.

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: Kyle Marsh <kylemar@microsoft.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: ctl3d, NT: Question for Microsoft                                              
Date: 25 Jan 93 19:23:38 GMT
X-MSMail-Message-ID:  6FCFF7AA
X-MSMail-Conversation-ID:  6FCFF7AA
X-MSMail-WiseRemark:  YO
To: netnews

We are not currently working on a port to NT. The 16 bit app problem we 
are working on. I don't have a date for the next release yet, but I 
will post an announcement here.

Kyle, MS Developer Network
Newsgroups: comp.os.ms-windows.programmer.misc
From: yikes@netcom.com (Michael Brill)
Subject: Memory management from Unix to Windows
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Sat, 23 Jan 1993 04:12:18 GMT


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.

Any ideas?  Thanks, ...Michael Brill (yikes@netcom.com)

-- 
----
Newsgroups: comp.os.ms-windows.programmer.misc
From: chens@elec.canterbury.ac.nz (S. Chen)
Subject: Which is superior, BRIEF 3.1 or BC++ IDE ?
Organization: University of Canterbury, Christchurch, New Zealand
Date: Wed, 27 Jan 1993 01:54:03 GMT

Hi,
	Is anyone has experience with the Borland's BRIEF 3.1. I have 
been using the IDE (Integrated Development Environment) which comes with
the Borland C++ 3.1. I think this version of IDE is fascinating but like to
find out more about BRIEF 3.1. Does BRIEF 3.1 provide any advantage over
the IDE of BC++ 3.1? Which is superior in term of coding tool? Any advise or
comment will be very much appreciated.

	Please email your comments to me if possible. Thanks for your time
and assistance.

Regards,
Shiun.
27 Jan 1993.
email:chens@elec.canterbury.ac.nz
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Changing fonts in edit controls
Date: 28 Jan 93 19:06:58 GMT
Organization: PE-Nelson

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.
|> 
|> Any suggestions?

A better way is to set the desired font for the control during
WM_INITDIALOG processing by sending the control a WM_SETFONT
message:

   .
   .
   .
   SendDlgItemMessage(hdlg, IDEDIT, WM_SETFONT, hMyFont, 0L);
   .
   .
   .


----------------------------------------------------------------------------
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: deitsch@sol.crd.ge.com (Andy Deitsch)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: DPtoLP question
Date: 24 Jan 93 01:10:13 GMT
Reply-To: deitsch@sol.crd.ge.com
Organization: GE Research & Development

I'm trying to do something very simple.  I want to create a grid in
a window.  I'm using the MM_LOENGLISH map mode because I want the
space between grid lines to be the same no matter what the screen 
resolution.  The following is an excerpt from the code:

   SetMapMode(hDC, MM_LOENGLISH);
   GetClientRect(hDC, &rect);

   POINT PointsArray[2];

   PointsArray[0].x = rect.left;
   PointsArray[0].y = rect.top;
   PointsArray[1].x = rect.right;
   PointsArray[1].y = rect.bottom;

   DPtoLP(hDC, PointsArray, 2);

   const int space = 20;

   for (int x = PointsArray[0].x * space; 
         x < PointsArray[1].x * space; x += space)
   {
      MoveTo(hDC, x, PointsArray[0].y;
      LineTo(hDC, x, PointsArray[1].y;
   }


   for (int y = PointsArray[0].y * space;
         y < PointsArray[1].y * space; y += space)
   {
      MoveTo(hDC, PointsArray[0].x, y);
      LineTo(hDC, PointsArray[1].x, y);
   }


The first loop works fine, and the vertical lines are drawn correctly.
The problem is that DPtoLP is converting rect.bottom to a negative
number!  This obviously causes the second loop to next execute.  When
I look at rect in the debugger, rect.bottom is a positive number.  Why
is it getting translated to a negative?

If I comment out SetMapMode, then the grid is created, but it won't be
the same size on any screen.

Any help would be greatly appreciated.

-- 
_________________________________________________________________________
Andy Deitsch                             email    : deitsch@crd.ge.com  
GE Corporate Research & Development      phone    : (518) 387-7207   
Schenectday, NY 12301                    dial comm: 833-7207     
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer
From: baileyc@ucsu.Colorado.EDU (Christopher R. Bailey)
Subject: Re: Portable GUI Libs...
Keywords: gui,portable,library
Organization: University of Colorado, Boulder
Date: Tue, 26 Jan 1993 08:02:32 GMT


The portable gui lib we are using is called XVT Portability Toolkit by XVT.
We are using it to meet our senior project requirements (established by the
company we are working for) of supporting MS-DOS (MS-Windows), UNIX (X windows,
Motif/DEC/SGI/AIX), and Mac.  In other words our product has to run on and 
look the same in layout (although it will look like the native environment) on
all platforms.  

The code is completely (99%) portable.  The only thing that is platform
specific is things like icons and bitmaps, which is unavoidable.  However, we
write all our code on MS Windows workstations, and just go over to a UNIX box
and type make (our own makefile), and boom it compiles no problem!  

The only drawback I've seen so far is that you can't have pull-right or
cascading menus.  This is because these aren't available on a Mac, sort of
like enforced portability.  

It seems to have most things people want, general drawing functions, some
cool windows (eg note windows, etc), and we are using it with C++.  You can
use it with C or C++, they provide a sort of template I guess for C++ work.

XVT Software
Box 18750
Boulder, CO 80308
(303) 443-4223	or (303) 443-0969 (Fax)

Current version is 3.0, supported on MS Windows (Borland, MS, Zortech
compilers), Macintosh, DEC, SUN, IBM, SGI, and maybe more UNIX boxes.

-- 
Christopher R. Bailey            |Internet: baileyc@dendrite.cs.colorado.edu
University of Colorado at Boulder|CompuServe: 70403,1522
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Ride Fast, Take Chances!
Newsgroups: comp.os.ms-windows.programmer.misc
From: bb760597@longs.LANCE.ColoState.Edu (Blake Buhlig)
Subject: HELP: Having difficulty changing Menus in an MDI Application
Date: Thu, 28 Jan 1993 23:05:17 GMT
Reply-To: bb760597@longs.LANCE.ColoState.Edu (Blake Buhlig)
Organization: Colorado State University, Fort Collins, CO  80523
Keywords: MDI, OWL, Menus

I'm using BC++ 3.1 with OWL, and I am trying to find some way to change the
menu in an MDI application that allows Windows to recognize the new position
of the Child Window submenu.  I have tried and failed with the OWL
TWindow::AssignMenu function, the WM_SETMDIMENU message, the combination of
the two, etc....

I have been rummaging through the OWL source code, and I noticed that the
ChildMenuPos variable that is specified in the constructor of a TMDIFrame
descendant, is passed to the CreateWindow API Function, and is not used
again during the life of the window.  I hope there is way to switch MDI 
menus without destroying and recreating the window!

Any suggestions would be appreciated via E-mail.  I will forward or repost
answers if anyone is interested. 


--
-------------------------------------------------------------------------------
 Blake Buhlig                                        Colorado State University
 bb760597@longs.LANCE.ColoState.Edu            Electrical/Computer Engineering
-------------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc