HDTenEightyP/NetNews huggingface dataset:
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Forced Update (WM_PAINT) of Window
Date: 6 Jan 93 22:49:15 GMT
Organization: PE-Nelson

In article <C0Fx4F.6Cs@ccu.umanitoba.ca>, umwaletz@ccu.umanitoba.ca (James L. Waletzky) writes:
|> I'm using Borland C++ 3.1 to create my app and here's the problem:
|> 
|> I have this main window which contains about 20 children, with each
|> child being a box containing a particular color. Up pops a dialog
|> asking the user to respond to some questions and once this dialog
|> disappears, I would like to update all of the children with their
|> new colors (ie. force a WM_PAINT message).
|> 
|> I thought all I had to do was Invalidate the parent window and call
|> UpdateWindow, but this doesn't seem to work. I then tried Invalidating
|> all of the children and calling UpdateWindow, but this didn't work
|> either. Any ideas?

Well, in general either approach should have worked.  You may have to
give us more detail.  Here are some things to check:

1. If the parent window has WS_CLIPCHILDREN style then invalidating and
   repainting the parent will not affect the children.

2. Are you specifying TRUE or FALSE in the InvalidateRect() call for the
   bErase parameter -- try TRUE which will cause the entire window to be 
   cleared with the background brush.

3. Check your logic for getting new colors from the dialog box into your
   application -- perhaps the repaint is happening but you haven't moved
   the new colors into the appropriate variables and the child windows
   are still using the old colors?

Good luck!


----------------------------------------------------------------------------
Tom Brown               |  "She turned me into a newt...
PE Nelson Systems       |                                  ... I got better"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: yefchak@hplabsz.hpl.hp.com (George Yefchak)
Subject: 2-D array storage VB vs C
Date: Tue, 5 Jan 1993 23:10:17 GMT
Organization: Hewlett-Packard Laboratories Palo Alto,CA
X-Newsreader: TIN [version 1.1.4 PL6]

Am I imagining things, or does VB store 2-D arrays column-
wise while C stores them row-wise? 

***********************************************************************
* George Yefchak                          Hewlett-Packard Laboratories*
* Internet: yefchak@hpl.hp.com            P.O.Box 10350               *
* CompuServe: 73607,1625                  Palo Alto, CA 94303-0867    *
*   NOT SPEAKING FOR HP                   415-857-4793                *
***********************************************************************
From: ajgd@miller.cs.uwm.edu (Andrew J G Delzer)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: BC++ "BorDlg" problem
Date: 6 Jan 1993 02:07:46 GMT
Organization: University of Wisconsin, Milwaukee
Distribution: na
NNTP-Posting-Host: 129.89.9.13

     I'm using Borland C++ 3.1 and have the following problem
utilizing the Resource Workshops BWCC "Borland Window Custom
Controls.
     When I create a dialog box using the BWCC class "BorDlg"
and link it with "brc <filename>".  Then when I run the program
and execute the dialog box, it is not displayed unless I have 
Borland C++ or Resource Workshop running or have LOADBWCC.EXE 
loaded.  If any of these three are running the dialog box is
displayed, but if none of them are running the box is not 
displayed.

     Am I missing some basic #include or what?  
     Any Ideas or suggestions would be greatly appreciated.

     Andrew J.G. Delzer
     AJGD@Miller.CS.UWM.EDU


Newsgroups: comp.os.ms-windows.programmer.misc
From: dbl10@cunixb.cc.columbia.edu (Dominic B LoTempio)
Subject: Win API List
Organization: Columbia University
Distribution: usa
Date: Tue, 12 Jan 1993 20:20:10 GMT


	I recall hearing someone on this sub mention that there was a
complete table of the Windows API in Microsoft Excel format availible for
anonymous FTP.  Of course stupid me didn't write it down.

	Could someone please repost or respond in E-mail with the location
and directory/filename for this file?

Thanks...


Newsgroups: comp.os.ms-windows.programmer.misc
From: mike@ulinf0.unil.ch (Michael Bloch)
Subject: Mail-enabled app programming using a Windows API
Organization: HEC, University of Lausanne, Switzerland
Date: Mon, 4 Jan 1993 16:23:24 GMT

I am currently looking for information on the programming of a mail-enabled
application running under Windows. I plan to use the Mail API of one of
the three packages : MS-Mail, Lotus cc:Mail or DaVinci Mail.

Do you have any experience with such programming ? I would like to
call the mail routines from a program written in Turbo Pascal for Windows.
Another special requirement is that I would like my app to send documents
with embedded documents (e.g. Word, Excel) in it.

I am looking for any experience to know if it is possible (first:-), which
tools you used, which documentation, what are the special developer's
packages, ...

Thanks for your help,
Michael
-- 
Michael Bloch                                     Internet : mike@ulinf0.unil.ch
University of Lausanne, Switzerland               

If I have seen farther, it is by standing on the shoulders of giants - I. Newton
From: mike.mendis@madness.network23.com (Mike Mendis)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Programming for SB
Date: 12 Jan 1993 05:33:50 -0600
Organization: Terminal Madness BBS - Newport, RI - 401-848-9069
Reply-To: mike.mendis@madness.network23.com (Mike Mendis)
NNTP-Posting-Host: cs.utexas.edu


I am lloking for some good programs written for windows 3.1, in which they 
use the sound blaster.  Can you please E-Mail them to me.  Thanks 
Mike Mendis







---
 . WinQwk 2.0 #0 . Unregistered Evaluation Copy
From: sph0301@utsph.sph.uth.tmc.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: FAQ?
Date: 5 Jan 1993 14:00:38 GMT
Organization: Univ. of Texas School of Public Health

Is there a FAQ for this group?  I've been subscribing for almost two
months and haven't seen one yet.

kate wilson
Newsgroups: comp.os.ms-windows.programmer.misc
From: nuscss1@vms1.iscs.nus.sg (Vax BULLET-IN-Board SysOps)
Subject: App with Only a Dialog Box ?
News-Software: VAX/VMS VNEWS 1.41    
Organization: National University of Singapore Dept. of Computer Sc.
Date: Sat, 9 Jan 1993 00:03:00 GMT

	Is it possible to have a app that has a dialog box as
	the main window ? ie, no CreateWindow will be used. If so,
	what about its window class ? How do I take care of the
	message loop ? I suppose only IsDialogMessage() is needed...
From: jkubicky@cco.caltech.edu (Joseph J. Kubicky)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Seeking info on DMA API!!
Date: 4 Jan 1993 20:26:24 GMT
Organization: California Institute of Technology, Pasadena
NNTP-Posting-Host: punisher.caltech.edu


I'm looking for any info on something called the DMA API for Windows.
I can find no ref to this in and of my SDK stuff, but someone sent
me mail saying that it exists and is documented on CIS and various
FTP sites.  I sent back mail asking for more detail but got none,
and I can't locate it on any FTP sites.  I don't have Compuserve
access.  Can anyone confirm or deny the existence of such an API,
and, if it does exist, tell me how to find out more about it.  My
application is setting up DMA transfers between memory and a card I
built.

Thanks,

Jay Kubicky
jkubicky@cco.caltech.edu

Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Drawing on a dialog 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Tue, 12 Jan 1993 19:33:07 +0000

In article <93011.164426SASTPH@vm.sas.com> SASTPH@vm.sas.com writes:

>You almost had it.  Put a static (WHITEFRAME) text box the size of your
>bitmap on the dialog box.  Subclass it.  When your the proc for the text
>box gets a WM_PAINT msg, blit the bitmap onto the static box.  Voila!
>
>Hope this helps!
>

There's no need to subclass the control at all!  Simply respond to WM_PAINT
messages received by the dialog proc, then call "ValidateRect" for the
control to stop Windows from painting it white again.

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.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Data Type problem !!
Organization: Energy, Mines, and Resources, Ottawa
Date: Sun, 10 Jan 1993 03:52:19 GMT

In article <1993Jan9.085030.11967%gtonwu@Uz.nthu.edu.tw> gtonwu@Uz.nthu.edu.tw (Tony) writes:
>Hi, there 
>
>     I am confused by type data types of MSC ! I don't know what is the
>     difference among them , since I was simply using int,unsigned,char..
>     while I did programming under MS-DOS before    !
>
>     Would someone kind enough to tell me the distict difference of the 
>     following !?
>
>       WORD , DWORD, LONG, WPARAM, LPARAM , ... 
>
>       and some others I have to know !

	They are all defined in windows.h.  Look in there and you
	will see those and many others.  But you really don't
	have to know what they are because you will *not* be
	manipulating or touching them yourself.  MS provides
	all you need.

	For example, when you get a WM_PAINT message, you need
	an HDC (handle to a device context) to call any of
	the GDI drawing functions.  What is it?  Who cares!
	But you do need one.  So, just declare it and use
	it as the function tells you:
		HDC hdc;
		PAINTSTRUCT ps;
		...
		  case WM_PAINT:  hdc=BeginPaint(hdc,&ps);
				  ...gdi functions(hdc,....);
				  EndPaint(hwnd,&ps);
				  break;
	Also, if a windows message tells you that LPARAM contains
	a POINT structure, then just retrieve it with:
		POINT pt;
		pt=MAKEPOINT(lparam);

	Usually, the help for each function describes the functions
	and their parameters, returned values etc.

	Ok, so I lied.  You do need to know a few things, like
	what is a POINT structure.  You can look up all of these
	things in windows.h and in the docs.

	The definitions of HWND,HDC, etc depend on whether you
	use #define STRICT or not (see windows.h).  I strongly
	recommend that you use:
		#define STRICT
		#include <windows.h>
	Most of the HDC, HWND, etc are all just UINT or WORD,
	i.e. just 'int' values when you get right down to it,
	so it is not possible for the compiler to check whether
		function1(hdc,hwnd);
	    or	function2(hwnd,hdc);
	is correct.  If you use STRICT, then they are defined
	as pointers to unique structs and the compiler can
	tell you if you are wrong.  I also highly recommend
	enabling every single warning message that your
	compiler can possibly report.  Make sure it warns
	about everything and act on every warning until
	it is quiet.  Your app will be significantly more
	reliable.

-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: dan@delfin.com (Dan Stickel)
Subject: Re: LB_ADDSTRING Redrawing 
Organization: Delfin Systems
X-Newsreader: Tin 1.1 PL4
Date: Tue, 12 Jan 1993 22:26:39 GMT

chris@chrism.demon.co.uk (Chris Marriott) writes:
: In article <1993Jan9.011837.22185@delfin.com> dan@delfin.com writes:
: 
: >I have created an owner draw listbox.  Is there any way to prevent
: >the listbox from redrawing all visible items when it scrolls one line 
: >after receiving an LB_ADDSTRING message?  Without the LB_ADDSTRING,
: >scrolling only redraws the newly visible item, doing a quick bitmap
: >shift of the other items.
: >
: >I have tried everything I could think of.  At this point, it seems
: >to me that there is no way to avoid it.
: >
: >
: 
: Send the listbox a WM_SETREDRAW, FALSE message.  Add all the strings
: except the last one.  Send WM_SETREDRAW, TRUE.  Add the last string.
: -- 
:  

I appreciate the responses, but my question is actually much more
sophisticated.  I know all about WM_SETREDRAW.  I want to append one
line to the listbox and have it visible.  No matter how I get it 
to be visible (SCROLL,SETPOS,etc.), all my visible owner draw lines
receive WM_DRAWITEM messages --- this is not necessary!  In fact,
when repositioning using the WM_VSCROLL message, Windows does what I
want (no owner draw requests except for the newly added item at the
bottom), but then repaints the entire listbox (sending many draw item
requests).

For most people, this activity is so fast it is invisible (you can only
catch Windows in the act by overloading your system (say, by running Spy),
or by tracing messages.  I like to really optimize my code, however.
From: deitsch@sol.crd.ge.com (Andy Deitsch)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Help Compiler
Date: 7 Jan 93 14:03:59 GMT
Reply-To: deitsch@sol.crd.ge.com
Organization: GE Research & Development

Is there any way to create Windows Help files with Borland.  I
have seen that a Help Compiler comes with SDK, but I have already
purchased BC++3.1.  

If Borland doesn't provide one, can the Help Compiler be purchased
separately from Microsoft?

-- 
_________________________________________________________________________
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
From: rmccown@world.std.com (Bob McCown)
Subject: Re: Borland-izing Common Dialogs
Organization: The World Public Access UNIX, Brookline, MA
Date: Tue, 5 Jan 1993 14:11:14 GMT

In article <x1NSrAjPBh107h@fredc.ibmpcug.co.uk> fredc@fredc.ibmpcug.co.uk (Fred Curtis) writes:
>In <725148024snz@chrism.demon.co.uk> chris@chrism.demon.co.uk (Chris Marriott) writes:
>>[...]
>>Since I posted my original mention of CTL3D you would not *believe* the
>>amount of mail I've been sent.....  To clear up the confusion, here's the
>>sequence of events:
>>[MUCH stuff deleted here...]
>
>>However, all the files now have numbers, not
>>names. 

Does any body besides me see this as an annoying trend?  Yes, I know I can
ftp the index.00 or whatever file from the directory, but I'd rather go
into a directory and rummage through file names and pick out the
interesting stuff.  Perhaps I'm just being picky.


-- 
|  Bob McCown / Mundane - Robur of Roestoc / SCA - Sir Gaath Gazul / NERO  |
|  rmccown@world.std.com                                                   |
|  "'ow d'you know 'e's a king?" "'cause 'e 'asn't got shit all over 'im!  |
|									   |
Newsgroups: comp.os.ms-windows.programmer.misc
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: Any GIF display routines for windows 3.1? DLL?
Organization: Morituri Te Salutent, Inc.
X-Newsreader: TIN [version 1.1 PL7]
Date: Fri, 8 Jan 93 20:33:13 GMT

Jaye Mathisen (osyjm@cs.montana.edu) wrote:
> 
> 
> I am needing to be able to display simple GIF's under windows, but I'd
> rather not fire off another program to do it.
> 
> Speed isn't important.
> 
> I use Borland C++ 3.1, but under protest would use MSC with the 3.1 SDK.
> 
All explained in Advanced Windows Programming by Martin Heller, Wiley & 
Sons 1991, source code in the book and available on a separate disk (at a
high price. Yes Martin, I know volume is low and you have to get the costs
of distribution back.  Our penurious correspondents are still going to 
balk at $40 for the floppy....)

--
||------------------------------------------------------------------------
||Dave Jones (dj@ekcolor.ssd.kodak.com)|Eastman Kodak Co. Rochester, NY  |
From: jkb@suned1.Nswses.Navy.Mil (John K Bunk)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Books on C7.0 / MFC programming?
Date: 8 Jan 93 20:52:24 GMT
Organization: NSWSES Code 4g13 - Opinions: Are Mine Alone
X-Received: by usenet.pa.dec.com; id AA14010; Fri, 8 Jan 93 13:11:48 -0800
X-Received: by inet-gw-1.pa.dec.com; id AA13721; Fri, 8 Jan 93 13:11:34 -0800
X-Received: by suned1.Nswses.Navy.Mil (4.1/Nswses4.1.2_920723eb)
	id AA25763; Fri, 8 Jan 93 12:52:25 PST
X-Mailer: Mail User's Shell (7.2.3 5/22/91)
X-To: comp.os.ms-windows.programmer.misc.usenet

Can anyone recommend any books on C++ programming using
MICROSOFT (R) FOUNDATION CLASSES with MS C7.0?

My background includes extensive programming in Turbo Pascal
for Windows (and OWL) and Microsoft C.  I've had a course
in C++, so I'm still learning about that.  Therefore,
I don't want a book which is dirt entry level and assumes
reader is knowledgable about C++ or at least OOP("this is
a class, see class run, run class run").  A book which
really jumps into MFC programming directly would be nice.

I learned OWL by examining the examples given with the Borland
compiler.  I'm currently looking at the MFC examples, and
am learing from that also.

Thanks to all responses in advance!
John Bunk

-- 
                      John Bunk, Code 4G13, NSWC-PHD 
                       jkb@suned1.nswses.navy.mil
    Any statements / opinions made here are mine, alone, not the Navy's.
              But that's OK, the Navy is usually wrong anyhow.
Newsgroups: comp.os.ms-windows.programmer.misc
From: dwightm@microsoft.com (Dwight Matheny)
Subject: Re: Windows 3.1 LZEXPAND DLL
Date: 07 Jan 93 18:58:48 GMT
Organization: Microsoft Corp.

COMPRESS.EXE comes in the Win 3.1 SDK, and MS does not provide this
separately. Since you get your tools from Borland, you should be able
to get this from Borland also. Borland is part of our Open Tools program,
and COMPRESS.EXE is one of the files that they have a license to 
redistribute.

-Dwight (MS)
Newsgroups: comp.os.ms-windows.programmer.misc
From: yefchak@hplabsz.hpl.hp.com (George Yefchak)
Subject: Re: Calling C from VB--Debug??
Date: Tue, 5 Jan 1993 23:08:43 GMT
Organization: Hewlett-Packard Laboratories Palo Alto,CA
X-Newsreader: TIN [version 1.1.4 PL6]

Yes, I was informed by e-mail that you set the "Calling program"
parameter of the QuickC debugger for the DLL to "VB.EXE", then
start the DLL.  QuickC will then load VB, and everything works
from there.

Thanks to all!
--George
Organization: Ryerson Polytechnical Institute
Distribution: na
Date: Wednesday, 6 Jan 1993 22:37:31 EST
From: Marc Zimmermann <ACPS0974@RyeVm.Ryerson.Ca>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: EDIT control 'PICTURE' validation

Can anyone recommend a good library that enables us to implement standard
PICTURE-type data masking within Windows EDIT controls?  It has to handle
things like date input (with '/' characters in their correct positions), as
well as numeric input to our pre-defined precision.

Commercial or public domain code is fine as long as no royalties are required.

Joseph Janakovic
STARCO International, Inc.
From: paul@sierra.com (Paul Stratton)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: how to convert (C,M,Y) colours to (R,G,B)?
Date: 11 Jan 93 22:17:59 GMT
Organization: Sierra Geophysics Inc.,  Kirkland, Wa

In article <1993Jan7.211624.27277@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes:
>I have several (C,M,Y) colour palettes that we use in UNIRAS graphics
>on the VAX that I want to convert to (R,G,B) palettes for use in Windows.
>Can anyone supply the algorithms to convert between these 2 colour
>systems.  I have code to convert between (H,L,S) and (R,G,B).
>I think the relationship between CMY and RGB is quite simple, because
>CMY is subtractive and RGB is additive.
>-- 
>John A. Grant						jagrant@emr1.emr.ca
>Airborne Geophysics
>Geological Survey of Canada, Ottawa

It really is simple.  For example if your CMY is in the range of 0 - 255
and you have a CMY value of (4, 195, 80) then the RGB value is

	255 - 4
	255 - 195
	255 - 80

The only problem is I can't remember which CMY go with which RGB!  I haven't
done this in a while.


-- 
Paul Stratton               -----   -----   -----    -----    -----    ------
Sierra Geophysics, Inc.    /          /    /        /    /   /    /   /     /
P.O. Box 3886              -----     /    /---     /-----   /-----   /-----/
Seattle, Wa.  98124            /    /    /        /   \    /  \     /     /
Newsgroups: comp.os.ms-windows.programmer.misc
From: Ian_Upright@mindlink.bc.ca (Ian Upright)
Subject: Dos version problem! help!
Organization: MIND LINK! - British Columbia, Canada
Date: Tue, 12 Jan 1993 03:54:20 GMT

I've got a problem.. I changed my configuration around, and now when
I go to shell out to dos to complile, and bring up a os window, it
reports "Incorrect System Version, Run Setup Again".. Bull&hit.
Any time I try to make a call to a dos program, thats what it reports.. :)
All I did (I thought) was change video drivers.. Highly annoying..

Does anyone know what could be causing the problem, or if there is a way
to fix this without having to reinstall windows all over again??

Thanks..

--
-----------------------------------------------------------------------------
 Origin:  Astaria Digital Enterprises             Ian_Upright@mindlink.bc.ca
 BBS: (604) 852-1866, or FidoNet  :-)  1:153/513                  CANADA eh?
-----------------------------------------------------------------------------

Newsgroups: comp.os.ms-windows.programmer.misc
From: ahrikenc@hprisc-12.cae.wisc.edu (Cherif Ahrikencheikh)
Subject: function TIMING in Windows: HELP
Distribution: usa
Date: 11 Jan 93 13:59:08 CST
Originator: ahrikenc@hprisc-12.cae.wisc.edu


Is there any way I can time an algorithm that is part of a Windows
application?  For example, Unix allows finding the CPU time spent
specifically on executing a given set of instructions.

In Windows, I used the gettime function and computed the difference
of the times at two points, and I get different results at different
times, for the same points, the same data;  I believe this is due to
the fact that Windows continuously executes other tasks in the 
background, which explains the difference in the results.

Please help! 


Newsgroups: comp.os.ms-windows.programmer.misc
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: Help Compiler
Organization: Compaq Computer Corp.
Date: Thu, 7 Jan 1993 14:48:17 GMT

In article <1993Jan7.140359.6629@crd.ge.com> deitsch@sol.crd.ge.com writes:
>Is there any way to create Windows Help files with Borland.  I
>have seen that a Help Compiler comes with SDK, but I have already
>purchased BC++3.1.  

The help compiler comes with BC++.  But, you will need another package
to generate the RTF file.  MS word will do this, as will some other
Windows word processors.

--
Ed McCreary                                               ,__o
mccreary@sword.eng.hou.compaq.com                       _-\_<,
"If it were not for laughter, there would be no Tao."  (*)/'(*)
Newsgroups: comp.os.ms-windows.programmer.misc