HDTenEightyP/NetNews huggingface dataset:
From: dj@ssd.kodak.com (Dave Jones)
Subject: Re: How to make a graphical startup window.
Organization: :noitazinagrO
Date: Fri, 21 Aug 92 19:22:32 GMT

In article <hihunn.714284365@vex> hihunn@vex.ugcs.caltech.edu (Heath I Hunnicutt) writes:
>Hello,	
>	Lots of apps these days display a graphical logo/copyright
>message, etc., window when they start up.  Usually, the window is
>frameless, and appears centered over the forming app window.  My
>question is, what methods are there for creating such windows?
>How are they filled with wall-to-wall bitmap?  
>
>Curious,
>Heath
>
Actually it's very easy.  By default a window has no border, no title
bar, no max/min buttons, no system menu, no application menu. Those are
things you put in when you register a window class, or create a dialog
definition in a resource file.  So to do the logo, all you do is leave
out the details, and draw the logo bitmap in the Window in response to
some event, like WM_PAINT.  A logo that comes up and stays up till your
app finishes initializing is probably a modeless dialog.

-- 
||)) Dump the Whatizit!  Ren and Stimpy for Olympic mascots in '96 ! )))))))|
||)) "What is it, man?!?" ))))))))))))))))))))))))))))))))))))))))))))))))))|
||))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
||Dave Jones (dj@ekcolor.ssd.kodak.com) | Eastman Kodak Co. Rochester, NY   |
Newsgroups: comp.os.ms-windows.programmer.misc
From: rkris@twin.twinsun.com (Ram Krishnan)
Subject: Can Edit control have a buffer > 64KB? (FOLLOWUP)
Organization: Twin Sun, Inc
Date: Mon, 17 Aug 1992 17:35:43 GMT


This is a sort of follow-up posting to 	Andrzej Brzezinski's 
(umbrzez0@silver.cs.umanitoba.ca) question about editing strings longer than 64Kb
in the Windows standard edit control. 

A second question that I had was if there exists a public-domain edit widget
source available that can handle this case. Appreciate any ideas or suggestions.



Newsgroups: comp.os.ms-windows.programmer.misc
From: mikael@udac.uu.se (Mikael Lundgren)
Subject: GDI: Foreground color and StretchBlt
Keywords: GDI, StretchBlt, foreground, rop, raster operation
Organization: UDAC, Uppsala University, Sweden
Date: Fri, 21 Aug 1992 15:15:36 GMT


Hello,

I am having a bit of a problem trying to understand what my Programmer's 
reference is trying to tell me.

First a short presentation  of my goal. I need to define a custom
raster opertion code in order to achieve a special effect in an application
we are working on. After doing some calculations I have decided that the 
code to use is 0x00b8074a. The idea is that i want to use a b/w bitmap as a 
kind of filter in order to put a color (specified in a brush) on a specific 
area of the screen. Now, the destination bitmap is a color bitmap, this 
MIGHT mean that the b/w bitmap will be converted to a color bitmap which in 
turn might affect the results I see on the screen.

I have now been reading the manual (SDK Programmers Reference Volume 2) page 
918 (MS-Windows 3.1) which states the following:

"If StretchBlt must convert a monochrome bitmap to color, it sets white 
bits (1) to the background color and black bits (0) to the foreground color."

My question is: what is the "foreground color"? I cannot seem to find that 
info anywhere! I hope that this is a REALLY easy question to answer...

If I find the answer to this question I just might be able to move on with 
this quest...

If you happen to know anything else that might be useful I'd sure like to 
hear from you...!

Thank you!
-
Mikael Lundgren  UDAC, Uppsala University, Sweden!You saw an opinion up there?
Phone: +46 18 18 78 86       Fax: +46 18 18 77 70!It's my personal view, but
Email: mikael.lundgren@udac.uu.se                !you're welcome to share it!
From: slo@otter.hpl.hp.com (Steve Loughran)
Date: Tue, 18 Aug 1992 15:15:32 GMT
Subject: Re: Licensing Message
Organization: Hewlett-Packard Laboratories, Bristol, UK.
Newsgroups: comp.os.ms-windows.programmer.misc


The user and company info seem to be stored in a stringtable
within user.exe

You could use a ResEdit app to fiddle with the strings (514 & 515)
or just copy user.exe from another installation to the system directory

	-Steve
From: gordy@endor.uucp (Robert Gordy)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: BC++3.1/CommonView 2 problem
Date: 20 Aug 92 13:23:17 GMT
Article-I.D.: das.1992Aug20.132317.12582
Organization: Aiken Computation Lab, Harvard University

In article <1992Aug20.073713.4309@alf.uib.no> fnsgs@alf.uib.no (Gunnar Sylthe) writes:
>
>I have just installed Borland C++ 3.1, and now I am unable to link my
>application. 
>
>I'm using Glockenspiel's CommonView 2 class library. There was no problem
>with the project as long as I used BC++ 3.0, but now all calls to 
>CommonView routines result in "undefined symbol" errors at pass 2 of
>the linker.
>
>All those "undefined symbols" are reported in lower case; e.g. "Undefined
>symbol dialogwnd::enddialog in module so-and-so"; is that significant?
>(I tried turning off the "Case sensitive link" option, but to no avail.)
>
>The last error I get is "Undefined symbol app::start() in library file
>..\cv2\lib\wcxxcbr.lib in module COMMONVU", so it seems that the linker
>does find the library, at least.
>
>There was also a problem with CommonView when I upgraded to BC++ 3.0,
>but the -Vo backwards compatibility switch took care of that. Not so
>this time...
>
>I would be grateful if someone could shed some light on this. In the
>meantime I guess it's back to 3.0; I've tried every compiler/linker
>option I can think of. Oh, well...
>
>--Gunnar
>

I'm getting basically the same problem with Whitewater Object Graphics
and Borland C++3.1.  I called Whitewater and they're sending me the 
latest and greatest version (they said they fixed some minor bugs
in the version I have and it "might" work).  If anyone knows anything
about Object Graphics and Borland 3.1, please e-mail this account.

Thanks,
Rob
Newsgroups: comp.os.ms-windows.programmer.misc
From: ins434u@aurora.cc.monash.edu.au (D. May)
Subject: Using Borland Custom Control LIbrary
Organization: Monash University, Melb., Australia.
Date: Wed, 12 Aug 1992 23:48:20 GMT


I have this problem with TPW.  I am learning how to do TPW's menus, dialogs, etcwith Resource Workshop  - and am joggin through it with Neil Rubenking's
Turbo Pascal book.

I always thought that Resource Workshop was pretty cool because you could
access Borland's nice-looking dialogs, etc.  However, I have just found out
(from reading Rubenking's book) that unless BWCC.DLL is loaded (i.e. if you're
doing something like running Resource Workshop) your nice custom control
dialogs don't load up properly.

I tried it this morning and he was right.  But he says, instead of using
WObjects and StdDlgs, use the units WObjectB and StdDlgB - wait a minute...
I don't think I have those units (it would stand to reason - because I pur-
chased TPW when they bundled WRT with it.  My Resource Workshop comes with
TC++ for Windows).  Apparently, you need these units to build a stand-alone
program/

So - I was wondering if anyone can help me - by telling how to get them or
if they can get them to me or whatever!!!!!!!

Anyway ... at least I can still do dialogs - even though they'll be as 
boring as watching paint dry...


Thanks.

Daniel May
2nd year Sci/Law
Monash University, Australia, Earth
Newsgroups: comp.os.ms-windows.programmer.misc
From: infra@heart.ubc.ca (Infrascan Inc.)
Subject: How do regions work?
Organization: UBC Pulmonary Research Lab., St. Paul's Hospital, Vancouver, B.C., Canada
Date: Wed, 12 Aug 1992 17:40:00 GMT

	I am faced with the task of converting some of my Windows code to run
under DOS so I'm writing a replacement for CreatePolygonRgn() function.  Does
anyone have any ideas on how Windows handles this internally?  Specifically
I need to be able to create a polygon region of interest and then check
to see if points are in that region same as with PtInRgn().
	I can think of two possibilities.  The first possibility is that
they count intersections from the edge of the bounding rectangle to determine
if a point is inside or outside of a region.  The second possibility is that
they treat of hunk of memory like the display and draw the polygon on it.
Then they do a flood fill inside the polygon setting the inside to 1's and
the outside to 0's.  Then to check if a point is inside the polygon simply
check if the corresponding memory location is a 0 or 1.
	These are my ideas, any other comments, ideas suggestions or 
disgruntled Microsoft employees who want to e-mail me source code :-) would
be greatly appreciated.
--
Tim Roy
infra@pulmonary.ubc.ca
"My employer doesn't even know that I have opinions"
Newsgroups: comp.os.ms-windows.programmer.misc
From: mboucher@cortex.prospect.com (Mike Boucher)
Subject: scroll bar in dialog problem
Organization: Cortex Corporation, Waltham, MA, USA
Date: Thu, 20 Aug 1992 19:30:44 GMT
X-Posted-From: cortex.prospect.com
X-Posted-Through: sol.ctr.columbia.edu

Hey there,

I have a dialog box with scroll bars.  When the dialog box gets created,
the scroll bars are invisible, as they should be.  It is quite easy to
scroll part of the window off the top such that you cannot get it back!

First, here is some of my code for WM_SIZE, basically the same as
Petzold, the knowledge base here on CS, SDK manuals, etc...

case WM_SIZE:
  nVertSize = HIWORD(lParam);
  nHorzSize = LOWORD(lParam);

  nVertScrollMax = max (0, nDlgVertSize - nVertSize);
  nVertScrollPos = min (nVertScrollMax, nVertScrollPos);
  SetScrollRange(hDlg, SB_VERT, 0, nVertScrollMax, FALSE);
  SetScrollPos(hDlg, SB_VERT, nVertScrollPos, TRUE);
 
  ... same idea for horizontal ... 

Here are the steps to recreate the problem:

1) Size the window, making it vertically smaller.  Get a WM_SIZE message.
2) Determine if scroll bars should be created.  They should, so activate
them.
3) I then jump back to the top of the WM_SIZE code, as I just recieved
a new WM_SIZE, since adding scroll bars changes the size of the window.
4) Scroll down to the bottom of the window. (eg: scroll position = 50)
5) Size the window again, this time making it LARGER than the full size
6) The max scroll will be 0, since the window is larger than neccesary,
therefore the scroll position WILL be 0, since the minumum of whatever it
was and 0 will be 0.
7) When you SetScrollRange and pos as 0, the scroll bars dissapear, and
whatever you scrolled off the top is gone forever!

The other alternative is to never change the scroll range.  This will
allow the user to scroll everything off the window, and look at white
space.  This, in my opinion, is absolutely useless.  If there is nothing
there, you should not be allowed to scroll to it.

Any ideas on what I can do to avoid this problem would be appreciated.

thanx.

Mike
-- 
Mike Boucher			mboucher@cortex.prospect.com
Cortex Corp			"Don't take life too seriously, you'll never
Waltham, MA, USA		 get out of it alive!"
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: StretchBlt() and colors...
Keywords: StretchBlt, SelectPalette, AnimatePalette
From: aew@eosvcr.wimsey.bc.ca (Alan Walford)
Distribution: world
Date: Wed, 19 Aug 92 09:05:05 PDT
Organization: Eos Systems Inc, Vancouver, B.C., Canada

geirt@Lise.Unit.NO (Geir Torheim) writes:

> 
> (Running Borland C++ 3.0, Windows 3.1)
> 
> Hi,
> 
> I've made a simple graphics program which creates a bitmap and uses
> BitBlt to copy the stuff to the screen. I use my own color palette and things
> worked just fine, until I modified my program from using BitBlt()
> to using StretchBlt(). This was the ONLY change I did in my program.
> Now the colors are all wrong. AnimatePalette doesn't affect the display
> anymore either. Actually, it may look like Windows won't use my color palette
> anymore... :-(

> 
> Are there any known problems with StretchBlt and colors, or should I assume
> a bug in my program ?
> 
> 
> Geir Torheim                             email: geirt@lise.unit.no
> MR Centre, med. section                  Phone: +47 7 99 89 36
> Olav Kyrres gt. 17                       Fax:   +47 7 99 77 08
> 7006 TRONDHEIM, NORWAY                    

We have exactly the same problem. BitBlt works and StretchBlt messes up all
the colours. We have read all the SDK manuals and various MS articles and
have not figured it out. We also tried all sorts of permuations of
palette commands. In fact we have given up for now.

One thing I suspected was my display driver but that was not conclusive
either. What type of display do you use? Standard VGA or SVGA? How many
colour do you use? 16, 256, 32K, 64K ? We have a 24bit Windows display also 
and the StretchBlt works ok. A palette is not used for 24bit displays though, 
so I suspect it is a palette problem.

Anybody out there that has a real program that displays bitmaps with
StretchBlt and a palette on a 256 colour screen and actually works ?

Al
----------------------------------------------------------------------------
Alan Walford     Eos Systems Inc., Vancouver,B.C., Canada  Tel: 604-734-8655
aew@eosvcr.wimsey.bc.ca  OR  ...uunet!wimsey.bc.ca!eosvcr!aew  
Newsgroups: comp.os.ms-windows.programmer.misc
From: m14430@mwunix.mitre.org (Lawrence Larson)
Subject: Re: How to display a tiff file ?
Organization: The MITRE Corporation
Date: Wed, 12 Aug 1992 14:12:59 GMT

galenr@hpgrla.gr.hp.com (Galen Raben) writes:

>The spec is elusive, even after you have the manuals :-(  I've not heard of
>by Bill Whedon) that you call tech support for Aldus, Microsoft, or HP and
>VERY NICELY ask for "The TIFF Specification".  I would expect to pay a fee.

It's available free by ftp from simtel and mirror sites in /msdos/tiff, folks...

-- Larry

Newsgroups: comp.os.ms-windows.programmer.misc
From: blakeco@microsoft.com (Blake Coverett)
Subject: Re: What is the windows call to find the video mode?
Date: 14 Aug 92 18:47:58 GMT
Organization: Microsoft Canada Inc.

In article <1992Aug12.225218.9547@catfish.az05.bull.com> pap@myths.az05.bull.com writes:
>This kind of info is among what GetSystemMetrics supplies
>(SM_CXSCREEN, SM_CYSCREEN + a couple other that tell
>about number of colors and color planes...)

Actually, you'll want to look at GetDeviceCaps instead to get color info.

-Blake
-- 
#include <std/disclaimer.h>                       blakeco@microsoft.com
Mail Flames, Post Apologies.                      ...!uunet!microsoft!blakeco
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools,comp.lang.pascal
From: jeroenp@rulfc1.LeidenUniv.nl (Jeroen W. Pluimers)
Subject: Re: Displaying data in an Icon
Keywords: windows, icon, tpw
Organization: Dept. FMC, Gorlaeus Labs, Leiden University, The Netherlands
Date: Fri, 21 Aug 92 21:30:52 GMT

In article <1992Aug19.202034.20024@gtephx.UUCP> bakern@gtephx.UUCP (Nigel Baker) writes:
>I am trying to find out how to make the icon of a minimized 
>application display data.
>
The trick is to have no ICON, but descent the PAint method and look
at IsIconic(HWindow) and then do the painting.

Look at the OWLDEMOS/GDIDEMO how they do it.

--
    o _   _  _   _   _             voice: +31-2522-20908 (19:00-24:00 UTC)
   / (_' |  (_) (_' | |            snail: P.S.O.
__/                                       attn. Jeroen W. Pluimers
                                          P.O. Box 266
jeroenp@rulfc1.LeidenUniv.nl              2170 AG Sassenheim
jeroen_pluimers@f256.n281.z2.fidonet.org  The Netherlands
From: scalawag@milton.u.washington.edu (Keith Frederick)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Windows Programming Books and Borland C++ for Sale
Date: 15 Aug 92 20:24:31 GMT
Article-I.D.: u.1992Aug15.202431.5754
Distribution: pnw
Organization: University of Washington, Seattle


The Waite Group's Windows API Bible - $30
Borland C++ Programming for Windows by Norton and Yao - $20
Developing Windows Applications with Borland C++ 3 by McCord - $25

Also, if someone is interested I am selling:
	Borland C++ v3.1 with Application Frameworks and
	Protogen, and the Phar-Lap DOS Extender LITE for $250

For questions, please leave me e-mail.


 ________________________________________________________________________
|                                  |                                     |
| Keith R. Frederick               | Happiness is our moral purpose.     |
| (206)285-1576                    | If you see Dr. Fu Manchu, Kill Him! | 
| scalawag@milton.u.washington.edu | Reason is our only absolute.        |
| I'm not a number, I'm a free man!|-------------------------------------|
| CIS: 73760,3521  UWID: 8722277   | :::  Looking for a grad school  ::: |
|__________________________________|_____________________________________|
From: boyd_m@inter-tel.com (Mark Boyd)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Where is the executable?
Date: 20 Aug 92 00:37:34 GMT
Organization: Inter-Tel, Inc. (Chandler, AZ)

In <157930002@hpcvra.cv.hp.com> daveo@hpcvra.cv.hp.com (Dave Ochs) writes:

>This is probably something simple I have overlooked, but is there a way
>to tell exactly where a program is executing from ... I am not talking
>about the "current directory," but where the executable is?

GetModuleFileName fills a "string" with the fully quailifed path of your
executable.  Here's the C prototype:

   int GetModuleFileName (HINSTANCE hInst, LPSTR lpszFilename,
			  int cbFileName);

-- 
+-----------------------------------------------------------------------------+
| Mark Boyd              | Internet: boyd_m@inter-tel.com                     |
| Inter-Tel, Inc.        | "Is anybody home...Mary" - Queensryche OMC         |
+-----------------------------------------------------------------------------+
Newsgroups: comp.os.ms-windows.programmer.misc
From: teera@emunix.emich.edu (Teerawat Pawittranon)
Subject: BC /d, works but how to get the Windows debugging going?
Date: Sat, 15 Aug 92 22:19:07 EDT
X-Received: by usenet.pa.dec.com; id AA01794; Sat, 15 Aug 92 19:18:18 -0700
X-Received: by inet-gw-2.pa.dec.com; id AA14221; Sat, 15 Aug 92 19:18:16 -0700
X-Received: by emunix.emich.edu (5.57/Ultrix3.0-C)id AA12410; Sat, 15 Aug 92 22:19:07 -0400
X-To: comp.os.ms-windows.programmer.misc.usenet (win.prog)
X-Cc: teera@emunix.emich.edu (Teerawat Pawittranon)
X-Mailer: ELM [version 2.2 PL8]

Hi All,

I have BC 3.1 and got the dual monitor setup to work.  I can't seem to find
the way to start the real Windows program debugging going.  (The regular DOS
program debugging works fine.)  I have been skimming through my user's guide
to find a way (will continue to, so please no RTFM).  Am I missing something
here?  Thank you in advance for your helps.

BTW, can we report Windows fault through internet?

Tee

Newsgroups: comp.os.ms-windows.programmer.misc
From: blakeco@microsoft.com (Blake Coverett)
Subject: Re: How to change wallpaper? (Sample code appreciated.)
Date: 14 Aug 92 18:45:21 GMT
Organization: Microsoft Canada Inc.

In article <ftsai.713761296@bronze.ucs.indiana.edu> ftsai@bronze.ucs.indiana.edu (fu-hwai tsai) writes:
>I'll appreciate if there is anyone who can tell me where to get sample
>codes to change the window wallpaper.  I've check the SDK reference

SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, 
		"somefile.bmp", SPIF_UPDATEINIFILE);

Aside:
	Tom, this one should be a FAQ (if it isn't already.)

-Blake
-- 
#include <std/disclaimer.h>                       blakeco@microsoft.com
Mail Flames, Post Apologies.                      ...!uunet!microsoft!blakeco
Newsgroups: comp.os.ms-windows.programmer.misc
From: jholdern@casper.cs.uct.ac.za (J E Holderness)
Subject: How to spawn a DOS program in BC++?
Keywords: spawn
Organization: Computer Science Department, University of Cape Town
Date: Fri, 21 Aug 1992 13:01:44 GMT

I'm writing a program that needs to spawn a DOS program from within
Windows. My first problem was that I don't want it to be visible while it
is executing. The solution was to use a PIF file, but it is only know at
run-time what the program name is, so I have to make a temporary PIF file
at run-time and then execute that. Is there a better way of doing this?

My next problem was that once I had started the program running (I'm using
WinExec btw), control was returned to my application, leaving the DOS
program running in the background which is not what I want. My solution was
to store the number of tasks being executed before I did the WinExec, and
then wait until the number of tasks reached that value again. To stop
everything else coming to a halt while I was waiting, I kept executing the
Yield function. Once again, is there a better way of doing this?

My last problem, is that while I'm doing this, I want to change the mouse 
cursor to the hourglass thingy. The only way I can get it to stay like
that (it changes to something else when it leaves my Window), is to keep
setting it in my waiting loop. Any other solutions?

Btw, I'm using Borland C++ 3.0.
I'm also very new to Windows and C++ programming, so please forgive if
these are stupid questions. Any help would be appreciated.

Thanks
James


Newsgroups: comp.os.ms-windows.programmer.misc
From: ar559@cleveland.Freenet.Edu (Jan Buitenhuis)
Subject: Software Publisher Sought.
Organization: Case Western Reserve University, Cleveland, Ohio, (USA)
Date: Sat, 22 Aug 92 10:48:58 GMT


I am looking for a software publisher who is potentially
interested in publishing a software development tool for
Windows.

Thanks, Jan
From: dobbins@lan.ccit.arizona.edu (Gary Dobbins)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Subclassing another app
Date: 17 Aug 92 19:26:41 GMT
Distribution: usa,world
Organization: University of Arizona

Can anyone help me with a trick for accomplishing a subclass of another
app's window?  I'm using a DLL, like the MS tip says, but want to "forward" 
messages over to a special proc in my program, and the usual trick of 
MakeProcInstance etc lets the DLL call it, but doesn't seem to be handling 
the fact that the code is referencing the wrong data/stack segment.  I want 
to switch to my app's data/stack during the call.

I've made it work by creating a child window, and then having my DLL 
SendMessage to it, but all I really want to do is accomplish the task 
switch (so the data and stack get set) without all the overhead of setting 
up and messaging to the child window.

Is there a neat way to do this?  Thanks in advance.


        Gary L. Dobbins  *  University of Arizona  *  (602)621-6715
             dobbins@arizona.edu  *  dobbins@arizvms (bitnet)
     "Some days, you just can't get rid of a bomb..." - Batman, 1966
Newsgroups: comp.os.ms-windows.programmer.misc
From: nelson_p@apollo.hp.com (Peter Nelson)
Subject: Re: Borland Resource Workshop question
Date: Wed, 12 Aug 1992 22:07:31 GMT
Organization: Hewlett-Packard Corporation, Chelmsford, MA

In article <1992Aug11.185641.174894@zeus.calpoly.edu> vcurley@zeus.calpoly.edu (Vince Curley) writes:
>In article <1992Aug10.165708.10334@walter.cray.com> jce@ferris.cray.com (John Ellsworth) writes:
>>
>>  So, I am new to windows programming, new to C++, with a just-unwrapped copy
>>of Borland's Turbo C++ for Windows, and the documentation supplied with the 
>>box leaves me with a feeling like trying to pick up a "portable" 25 inch TV with
>>no hand-holds. Vince makes reference to "Petzold" - Is this a good reference?
>>Are there other recommended references?  How does one get a handle on this stuff?
>>John.
>>jce@cray.com
>
>A good reference?  The best.  It can be obtained from your friendly
>neighborhood bookstore.  The full title is "Programming Windows" and
>it is by Charles Petzold.  It is a great introductory text with plenty
>of examples and it is written in plain English.  When I was working
>every programmer had this book at their desk.

  Yes, this is a very good book.   If you can hold off a month
  or so, the 3.1 version is supposed to come out in September.

  BTW, it might be a good idea to order the examples on floppy --
  it will save a LOT of typing.   (does anyone know if they are
  downloadable from any BBS?)

---peter

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