HDTenEightyP/NetNews huggingface dataset:
From: jjacob@nyx.cs.du.edu (Jude Jacob)
Subject: Re: ToolBar feature
Reply-To: jjacob@nyx.UUCP (Jude Jacob)
Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
Date: Tue, 18 Aug 92 00:41:16 GMT

In article mats@infolog.se (Mats Lordin) writes:
>I want to include a ToolBar in my application. I have received example
>source code from Microsoft on how to do this. The problem is that I don't
>understand how the ToolBar, which is an child window, excludes the 
>possibility of moveing other childwindows completely under the window. I.e
>the same way you are unable of completely hiding any childwindow under the
>apps menu bar. Could anyone tell me how the client area of the main window
>is reduced in size or however it's done so that you can't hide other
>childwindows under my own ToolBar.

If the toolbar is a sibling of the of the other child windows, there might
not be a super easy way to prevent the child windows overlapping the 
toolbar window.

However, you will notice that most applications that use toolbar's are
generally MDI applications. In case of MDI applications, the toolbar
is a child of the frame window and is a sibling of the client window.
The MDI child windows are children of the client window. So the question
of child windows overlapping the toolbar does not arise if the toolbar 
does not overlap the client window.

You can ensure that the client window and the toolbar window do not 
overlap by moving the windows yourself. The MDI child windows will never 
extend out of the client window because the they are children of the 
client window.

So, in case of MDI, the problem almost takes care of itself. In case what 
you are writing is a non-MDI application, things will get a lot more 
involved. Let me know if this is a non-MDI applcation and we can look 
at possible solutions then. 

Jude
Xref: sparky comp.os.ms-windows.programmer.misc:1399 comp.os.ms-windows.programmer.tools:733 comp.lang.pascal:4911
From: bakern@gtephx.UUCP (Nigel Baker)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools,comp.lang.pascal
Subject: Displaying data in an Icon
Keywords: windows, icon, tpw
Date: 19 Aug 92 20:20:34 GMT
Article-I.D.: gtephx.1992Aug19.202034.20024
Organization: gte

I am trying to find out how to make the icon of a minimized 
application display data.

For example the clock program that comes with Windows 3.1 shows
the current time in it's icon when it is minimized.
Does anybody out there know how this is done ?

I'm using TPW ver 1.5 with Whitewater Resource Toolkit.


Nigel Baker, AG Communication Systems, Phoenix, AZ
    UUCP: ...!{ncar!noao!enuucp | att}!gtephx!bakern
INTERNET: gtephx!bakern@enuucp.eas.asu.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: infra@heart.ubc.ca (Infrascan Inc.)
Subject: Mouse Sensitivity
Organization: UBC Pulmonary Research Lab., St. Paul's Hospital, Vancouver, B.C., Canada
Date: Tue, 18 Aug 1992 18:55:41 GMT

	Is it possible to change the Windows mouse sensitivity from inside
a program?  I can't find anything in any of the manuals.  Any help is 
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: heathh@cco.caltech.edu (Heath Ian Hunnicutt)
Subject: Re: Change App's Icon On The Fly
Organization: California Institute of Technology, Pasadena
Date: Mon, 17 Aug 1992 23:51:09 GMT

scott@ods.com (Scott Harper) writes:
>[Wants to change his icon immediately]

>   SetClassWord(hWnd, GCW_HICON, hNewIcon);    then,

>   if (IsIconic(hWnd))
>      InvalidateRect(hWnd, NULL, TRUE);

>and it worked like I wanted it to.  However, since I've switched
>over to the 3.1 SDK, it no longer works.  Any suggestions?
	I have done this very same thing in 3.1, followed by an
UpdateWindow(hWnd); call.  This works for me.
	Maybe MS thought that requiring UpdateWindow() to force an
immediate redraw would optimize 3.1's performance...

See ya,
Heath
-- 
On Saturday, April 18, 1992, this .sig became self-aware.

Newsgroups: comp.os.ms-windows.programmer.misc
From: hjanssen@cbnewse.cb.att.com (hank janssen)
Subject: (HOW TO GET INFO) was: MICROSOFT's SDK vs BORLAND C for WINDOWS
Organization: AT&T
Date: Wed, 19 Aug 1992 21:31:36 GMT

From article <1992Aug13.201922.24458@ecst.csuchico.edu>, by tjohn@ecst.csuchico.edu (Todd A Johnston):
> 
> 	I am just curious, I am about to buy a SDK and am leaning more
> towards Microsofts C/C++ 7.0 w/SDK because of all the apparent bugs
> with Borlands C/C++ for Windows (from reading the net), ANY THOUGHTS (I am sure you Borland fans have some)  
> 
>                                        Thx
>                                           Todd
>                                           tjohn@cscihp.ecst.csuchico.edu
>                   
>                                            


I  asked  the  same  question also a few back. And i got great reply's
from  the  net (To those i did not reply back yet, thanx again also.).
If there is enough intrest than i will post it. Or i can  sent  it  to
people via email.

-- 
-----------------------------------------------------------+------------------
The full moon shines bright. I gaze long at its beauty,	   |    Hank Janssen
I am overwhelmed. "Isn't it lovely," you say -		   | 	    (CPU)
         I'd forgotten you were there.			   |att!ihlpb!hjanssen
Newsgroups: comp.os.ms-windows.programmer.misc
From: bmeranda@uceng.UC.EDU (Brent E Meranda)
Subject: Scrollbars in MDI Client Area
Keywords: But only when needed
Organization: College of Engineering, University of Cincinnati
Date: Mon, 17 Aug 1992 21:54:17 GMT

I would like to be able to create a CMDIFrameWnd using the MFC
that will display scrollbars if and only if the child windows
will not fit on in the client area (similar to Program Manager or
File Manager).

I have been able to get scrollbars to appear and work using 

	CWnd::FromHandle(m_hWndMDIClient)->ShowScrollBar(SB_BOTH,TRUE);

the scrollbars disappear when not needed anymore (after being used)
but appear even if not needed.

How do I determine if scrollbars are necessary?
	
Post or send responses to bmeranda@uceng.uc.edu.
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Non-windows comms program under Windows?
From: phys169@csc.canterbury.ac.nz
Date: 19 Aug 92 16:27:48 +1200
Organization: University of Canterbury, Christchurch, New Zealand

If I have a NON-WINDOWS communications program (or at least one capable of
running without Windows), which sometimes will be run under windows, what is
the best way to avoid losing characters on the coms port (assuming I rewrite 
it a bit - even detecting whether it is being run under windows and doing 
something special then)?

So far, the alternatives seem to be:

(a) Grab the coms port IRQ inside the coms program, and buffer input in an ISR,
(b) Have a separate TSR/device driver, loaded before Windows runs, that grabs
    the IRQ and buffers the input from the coms port, or
(c) Detect whether running under windows, and use int 14h or DOS calls if so.

The fourth option, writing a completely-revised version of the program as a
windows application isn't really an option, since it (most often) needs to be 
run from the command prompt, when Windows may or may not be running.

Without windows, option (a) seems the most sensible.  With windows, I'd guess
that the Interrupt Service Routine would get more time (less chance of missing
characters) under option (b).  But both of these would have all their I-O
slowed down more than would be the case with characters being buffered by
Windows itself, surely.

I hope somebody can explain what is the best thing for my program to do when
running under windows...

AdvTHANKSance,
Mark Aitchison, University of Canterbury.
Newsgroups: comp.os.ms-windows.programmer.misc
From: ketil@edb.tih.no (Ketil Albertsen,TIH)
Subject: Re: How much memory is needed to run a program?
Organization: T I H / T I S I P 
Posting-Front-End: Winix Conference v 92.05.15  1.20 (running under MS-Windows)
Date: Wed, 12 Aug 1992 09:26:07 GMT

In article <1992Aug11.180831.5010@fics.uucp>, ekl@fics.uucp writes:

>I have a program that runs as a beauty under Windows 3.1, but
>refuses to start under Windows 3.0, with windows giving the
>message "Insufficient memory to run this application; close 
>one or more windows applications and try again". 
>[...]
>Help About claims that there is 400+ K free memory, and 72%
>free resources. Which roof am I hitting?

Last time I experienced the same symptoms (and the time before that, and 
the one before that, and... blush!) the reason was that when registering 
the window class, I used a local wndclass struct, and forgot to set the
cbClsExtra and cbWndExtra fields to zero. Being stack variables, the
values were random, and usually quite large. When I was "lucky", the
program would start, but a few operations later, the system would run
out of memory.

Most or all of the examples in the SDK use a dynamically allocated
wndclass struct with zeroing of all fields at allocation time, so they
do not have to explicityly zero the cbXxxExtra fields.
From: pluto@cs.ucsd.edu (Mark Plutowksi)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: How can I get more memory in an edit control?
Date: 13 Aug 92 19:08:23 GMT

mmccarri@physics.ucla.edu (Mike McCarrick) writes:

>I think I've seen this before, but I can't find the answer.
>The edit control that I create in my program runs out of
>memory after a few hundred characters are typed.  How do
>I get even close to a full 64K of memory for my edit box?
>I remember something about giving the CreateWindow call
>a global memory handle instead of my own hInstance handle,
>but I can't get it to work without more specific instructions.
>Does anyone have this information handy?

>Thanks in advance.
>-- 
>Dr. Michael McCarrick                   UCLA Department of Physics
>Plasma Physics Lab                              405 Hilgard Avenue
>mmccarri@physics.ucla.edu                    Los Angeles, CA 90024


Followup question of mine own along the same vein:  
How does one determine in advance (at creation time of the
edit window) how many characters will be allowed?  
I was unable to discern this from Borland's docs - none
of the functions available in the OWL seem pertinent. 
I suspect it will be necessary to go to thego?tZTyU~1|Gt~`d@5down to the   Windows level.  I may be wrong (hope so!)   

Anybody?

thanks,

= Mark
Newsgroups: comp.os.ms-windows.programmer.misc
From: mboucher@cortex.prospect.com (Mike Boucher)
Subject: How to determine size of dialog box?
Organization: Cortex Corporation, Waltham, MA, USA
Date: Thu, 20 Aug 1992 19:35:08 GMT
X-Posted-From: cortex.prospect.com
X-Posted-Through: sol.ctr.columbia.edu

Hey there,

Is there any way to determine the "size" of a dialog box on the fly?  By size I
mean the size that the window would have to be set to in order to make all
controls visible.

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
From: sap@sactoh0.sac.ca.us (Stephan A. Puga)
Subject: Using listbox to display info
Organization: Sacramento Public Access Unix
Date: Tue, 18 Aug 92 16:32:32 GMT

I am using a listbox to display information and I wanted it to
automatically scroll when a new line is added.  The biggest problem
I am having is finding the best way to remove the annoying green
bar!  I think I have solved the problem of a user being able to
select a line by setting the focus back to the parent window when a
line is clicked on.

I am currently using two SendMessage calls to scroll the window by
LB_GETCURSEL and the second to turn off the green bar.
Unfortunately, this method causes the green bar to flash
annoyingly.  If anyone has found a good workaround, please let me
know!

Thanks!

-- 
#############################################################
# "Its been surreal!"         #     sap@sactoh0.SAC.CA.US   #  
#     -- Gogo Dodo            # UUCP=..ames!pacbell!sactoh0 #
#############################################################
From: fuller@athena.cs.uga.edu (James P. H. Fuller)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
Subject: Re: More surveys. Protecting software development from programmers
Date: 16 Aug 92 14:12:16 GMT
Article-I.D.: athena.1992Aug16.141216.6614
Followup-To: alt.flame
Organization: University of Georgia, Athens

In article <1992Aug16.010730.29295@umbc3.umbc.edu> themos@umbc5.umbc.edu (Mr. Themos Pentakalos; ADMIN-COMP) writes:

>Currently, there are companies in the US which are making use of
>programmers abroad (Russia, etc.) for software development at
>low man hour costs. How can these companies protect their software
>from getting stollen by the programmers themselves and getting sold
>to other companies?
>
>The big question is that the American companies have no way of using
>US law to protect them outside the US.

     Ho, ho, ho.  How can they exploit others without, themselves, being
exploited in turn?  If I knew of a method you can be sure I'd keep it a
deep dark secret.
                                            -- jf
Organization: Ryerson Polytechnical Institute
Distribution: na
Date: Tuesday, 18 Aug 1992 23:36:53 EST
From: <ACAD8060@RyeVm.Ryerson.Ca>
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
Subject: Edit buffer >32K???

Is there a limit to the amount of text an edit window can handle?  I can't
seem to get it to take (via the WM_SETTEXT message) more then 32K.
Newsgroups: comp.os.ms-windows.programmer.misc
From: geirt@Lise.Unit.NO (Geir Torheim)
Subject: StretchBlt() and colors...
Keywords: StretchBlt, SelectPalette, AnimatePalette
Organization: Norwegian Institute of Technology
Date: Tue, 18 Aug 92 16:53:59 GMT


(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 ?

Any help appreciated.

-Geir



-- 
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
From: whedon@netcom.com (Bill Whedon)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: PtInRegion
Keywords: PtInRegion
Date: 12 Aug 92 22:28:15 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

This is in response to infra@heart.ubc.ca or something like that.  My note
came back garbled:

 Re: How do regions work?

Based on the fact that PtInRegion works only in device coordinate world,
I would surmise that your second guess (floodfill) is close to the mark.
You should probably implement it in assembler for speed, unless your
software (a) checks few points, or (b) runs on 80486+ only. :-)

There are mathematical methods for determining whether a point lies
within a convex polygon, but those involving concave or complex polys
are quite a lot more difficult.  See "Algorithms in C" for some
discussion of this.

Cheers,
Bill Whedon


 
Newsgroups: comp.os.ms-windows.programmer.misc
From: pap@tempel.az05.bull.com (Pierre Perret)
Subject: Re: What is the windows call to find the video mode?
Reply-To: pap@myths.az05.bull.com
Organization: Bull HN Information Systems Inc., Phoenix Product Division
Date: Wed, 12 Aug 92 22:52:18 GMT

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...)

-- 
- Pierre Perret -    Phone: (602) 862-5448   FAX: (602) 862-6105
                  Internet: P.Perret@az05.bull.com
                Compu$erve: 73757,2337     BIX: pierre_perret
From: pshuang@zurich.ai.mit.edu (Ping Huang)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: WinExec and TSRs
Date: 19 Aug 92 14:58:15 GMT
Organization: M.I.T. Artificial Intelligence Lab.
In-reply-to: tomd@bali.amd.com's message of 18 Aug 92 16:17:01 GMT

In article <1992Aug18.161701.29972@dvorak.amd.com> tomd@bali.amd.com (Tom Deneau) writes:

 > Can one use WinExec to invoke a non-Windows TSR application and then
 > have that TSR affect the parent window application's virtual machine?
 > (or is there some other way to do this?).  When I tried this, the TSR
 > was invoked, it hooked an interrupt vector, but the parent's view of
 > that interrupt vector remained unchanged.

The reason this is happening is that when you try to WinExec the TSR,
Windows detects that it is a DOS program and not a Windows program (by
looking for the New Executable header present on Windows executables)
and automatically starts up a new DOS box to run the TSR in, separate
from the system virtual machine where all Windows applications are
running (this sequence of events should be readily apparent visually).
You may be able to achieve the effect you want by putting a line to
start the TSR in the file WINSTART.BAT, which Windows will execute
before loading itself completely if in 386 Enhanced Mode. TSR's loaded
there will be visible to Windows applications, as documented in the
User's Manual.

--
| Ping Huang (INTERNET: pshuang@martigny.ai.mit.edu) speaking for himself.
| "One Thing to name them all, One Thing to define them,
|  One Thing to place them in environments and bind them..."
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Documentation for Win3 decompression DLL?
From: lance@lancea.actrix.gen.nz (Lance Andrewes)
Date: Sun, 16 Aug 92 05:41:31 GMT
Distribution: world
Organization: none

Last month I posted this:
 I'm seeking the following: a Windows 3.1 DLL that can decompress
 an archived file.  The archive would most likely be zip or zoo.
 Source code prefered, but if it is well supported just the DLL
 might be okay.

Most of the replies were of the "me too" variety.  Others pointed
me to sources for zoo/lzh.  These I have or can get.  One reply
pointed out that LZEXPAND.DLL may do what I want.  This DLL
comes with Win3.x, but it appears to be undocumented.

Does anyone know if documentation for the DLL and the compression
algorithm is available?  The compression would be done on a VMS
system, so C source-code would be most useful.  

--
 _______  Email: lance@lancea.actrix.gen.nz
////      ZL2AJH    Wellington, New Zealand
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
From: jinli@dgp.toronto.edu (Jin Tonic Li)
Subject: changing the height of a window's caption bar
Organization: CSRI, University of Toronto
Distribution: na
Date: 21 Aug 92 15:22:43 GMT


Is there a simple way to change the height of a standard window's caption bar?

If not, how would I go about custom define a new window style such that the
caption bar's height is the desired one?

I am using BC++, but any help will be appreciated.


-- 
Jin Li                               (416) 978-6619  //  Gin & Tonic mix well
Dynamic Graphics Project, Dept. of Computer Science  \\
University of Toronto, Ontario, Canada   M5S 1A1     //
jinli@dgp.utoronto.ca          uunet!utai!dgp!jinli  \\    No bugs, no bucks
Newsgroups: comp.os.ms-windows.programmer.misc
From: scott@ods.com (Scott Harper)
Subject: Re: Change App's Icon On The Fly
Cc: heathh@cco.caltech.edu
Organization: Optical Data Systems, Inc.
X-Newsreader: Tin 1.1 PL5
Date: Tue, 18 Aug 1992 14:18:51 GMT

Heath Ian Hunnicutt (heathh@cco.caltech.edu) wrote:
: scott@ods.com (Scott Harper) writes:
: >[Wants to change his icon immediately]
: 
: >   SetClassWord(hWnd, GCW_HICON, hNewIcon);    then,
: 
: >   if (IsIconic(hWnd))
: >      InvalidateRect(hWnd, NULL, TRUE);
: 
: >and it worked like I wanted it to.  However, since I've switched
: >over to the 3.1 SDK, it no longer works.  Any suggestions?
:
: 	I have done this very same thing in 3.1, followed by an
: UpdateWindow(hWnd); call.  This works for me.


I tried this, but it didn't work for me...

I even tried this:

   if (IsIconic(hWnd))
      {
      GetWindowRect(hWnd, (LPRECT) &rect);
      InvalidateRect(GetDesktopWindow(), (LPRECT) &rect, TRUE);
      UpdateWindow(GetDesktopWindow());
      }

but it didn't work either.  So if there are yet other suggestions,
I'd love to hear them!!

Thanks -
-- 
Scott Harper                       Optical Data Systems, Inc.
scott@ods.com                      1101 E. Arapaho Road
(214) 234-6400                     Richardson, TX  75081
From: dj@ssd.kodak.com (Dave Jones)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: BC++ 3.1 - trouble with ICONs
Date: 21 Aug 92 19:05:19 GMT
Organization: :noitazinagrO

To make the BC++ IDE come up with a given project file: just
associate .PRJ files with BCW.EXE.  Then you can launch .PRJ
files from File Manager, or even set them up as icons in Program
Manager (the quick way is to drag a .PRJ file from File Mgr to 
Program Mgr).

Two ways to make the association: in File Manager's File|Associate
dialog, just specify BCW.EXE as the app for PRJ files.  This the
direct method.  Before you close the dialog, look at that listbox
with all the file types listed in it.  Wouldn't you love to have
BCW files in that list?  Just launch REGEDIT.EXE from the Windows
directory.  Select  Edit | Add File Type and fill in the dialog.
This lets you put extra parameters on the command line, which you
can't do with File | Associate anymore.

Once you set up the type, you can declare PRJ files to be of that
type in File | Associate in File Manger.

-- 
||)) 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: ag510@cleveland.Freenet.Edu (Steven Sobol)
Subject: COMM programming in TPW
Reply-To: ag510@cleveland.Freenet.Edu (Steven Sobol)
Organization: Case Western Reserve University, Cleveland, OH (USA)
Date: Thu, 20 Aug 92 06:11:52 GMT



Anyone have simple working examples?

Thanks

  --TechnoGeek
-- 
Steve Sobol*President   Cleveland FN: ag510    Tri-State Online: usr8398a
The Tiny Software Co.   Internet: sjsobol@tiny.com     UUCP: tiny!sjsobol
23707 Glenhill Drive,                    IRC: Snowball
Cleveland,  OH  44122             It's just life. Live with it.
From: hihunn@vex.ugcs.caltech.edu (Heath I Hunnicutt)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Change App's Icon On The Fly
Date: 20 Aug 92 01:27:31 GMT
Organization: California Institute of Technology, Pasadena

Here is some working code to change an icon on the fly.

This has been compiled using Turbo C++ 3.0.

One thing that might be causing trouble is using an old window.h with
Windows 3.1. According to Undocumented Windows (Schulman, et al. - Addison
Wesley) , the various GCW_ xxx constants changed with 3.1.  I guess 
that means you have to do version checking around your calls to
Get|Set Window|Class Word|Long.
---CUT HERE---
	if (Flashing) {
		if (GetClassWord(hWnd,GCW_HICON)==HIconRed)
			SetClassWord(hWnd,GCW_HICON,HIconGreen);
		else
			SetClassWord(hWnd,GCW_HICON,HIconRed);
		InvalidateRect(hWnd,NULL,TRUE);
	}
---END CODE---

For the record, my GCW_HICON equals -14.

Good luck,
Heath
Newsgroups: comp.os.ms-windows.programmer.misc