HDTenEightyP/NetNews huggingface dataset:
From: kuntz@rwja.umdnj.edu (Ralph Kuntz)
Newsgroups: comp.windows.ms.programmer,comp.lang.c++,comp.os.ms-windows.programmer.misc
Subject: HELP?: "Smart" scrolling in BC++ ObjectWindows
Date: 26 Jul 92 18:47:55 GMT
Followup-To: poster
Organization: Robert Wood Johnson Medical School, Piscataway NJ

Hi-

I am developing a Windows application using BC++ 3.1 and
ObjectWindows.  I am having some trouble "optimizing" re-painting the
window with TScroller.

I have AutoOrg == TRUE, AutoMode = FALSE, AutoTrack = TRUE.  In my
TMyWindow::Paint routine, I can't figure out the "coordinates" of the
rectangle that needs to be repainted.  My window paints a bitmap with
Bitblt(hDC, a, b, c, d, memDC, e, f, SRCCOPY).  What should go into
the arguments a, b, c, d, e, and f?  I know it is a function of
paintInfo.rcPaint.left, ..., and the origin of the client area
viewport.

Any help or pointer to an example file that does this?

			Thanks, Ralph
-- 
G. Ralph Kuntz
Medical student, UMDNJ - Robert Wood Johnson Medical School, Class of 1994
kuntz@umdnj.edu			(H) 908-463-7170
[Computer scientist for Bell Labs in a former life (before Med. School)].
From: kirt@sdd.hp.com (Kirt Winter)
Newsgroups: comp.windows.ms.programmer
Subject: Windows on a Network / 24-bit Displays
Date: 30 Jul 1992 15:43:01 -0700
Organization: Hewlett Packard, San Diego Division
NNTP-Posting-Host: hp-sdd.sdd.hp.com
Summary: questions about networked windows and 24-bit displays
Keywords: network full-color

Two unreleated subjects...

In a networked Windows environment, is it guaranteed that every user
has their own Windows directory even if they share the Windows system
directory?

Is there a reliable way to detect whether the system has a full-color
display card (24-bits/pixel)?  Is using GetDeviceCaps and the PLANES
and BITSPIXEL info a good idea?

If you know the answers to these two questions, I'd appreciate it if
you'd either send me e-mail or post your response.  Given the general
problems I'm having adjusting to rn (I've been a notes/tass/tin user
in the past), I'd really appreciate it if you e-mailed anything you
posted.

Thanks in advance,
Kirt
----------------------------------------------------------------------------
Kirt Alan Winter                                             kirt@sdd.hp.com
Hewlett-Packard -- Desktop Color Management Team             (619) 592-4962
San Diego Printer Division
----------------------------------------------------------------------------
Newsgroups: comp.windows.ms.programmer
From: feist@ils.nwu.edu (Steven Feist)
Subject: Re: Diplaying BMP files under Windows 3.x
Organization: The Institute for the Learning Sciences
Date: Wed, 22 Jul 1992 15:24:56 GMT

In article <1992Jul21.180439.12547@twisto.eng.hou.compaq.com> mccreary@sword.eng.hou.compaq.com (Ed McCreary) writes:
>In article <1682BEB88.SSCHEMA@ibm.gwdg.de> SSCHEMA@ibm.gwdg.de (Stefan Schemat) writes:
>>Does anybody knows how to load and display a BMP file with 256
>>colors under Windows 3.x?
...
>... you need to create a logical palette based upon the colors needed in the 
>image, select it into the device context and realize it before displaying.

It just so happens that we just wasted a fair amount of time figuring
out how exactly this works.  After giving up on the Microsoft Windows
manuals, we figured it out based on information in the Windows API
Bible from the Waite Group Press.  Thank you very much, Microsoft, for
your fine, thorough, clear, and complete documentation.  It turns out
that LoadBitmap always maps the colors in your bitmap to the 20 system
colors, even if the image is 256 colors and your device has 256 colors
available, so you can't use LoadBitmap to do what you want (I'm pretty
sure this is true; if anyone thinks they know otherwise, please let me
know.)

As far as I know, the only reasonable (by Microsoft Windows standards)
way to accomplish what you want is to use FindResource, LoadResource,
and LockResource to get your hands on the color table and bits for
your bitmap resource; then to build and realize an appropriate
palette for the color table using CreatePalette, SelectPalette, and
RealizePalette; and finally to use SetDIBitsToDevice to do the
display.  (You also could do something similar to build the proper
256 color device dependent bitmap for later BitBlt-ing.)



-- 
Steven Feist (feist@ils.nwu.edu)
Institute for the Learning Sciences
1890 Maple Avenue
Evanston, IL 60201
From: 6500sctt@ucsbuxa.ucsb.edu (Scott Loban)
Newsgroups: comp.windows.ms.programmer
Subject: Re: How do you resize a control in Borland Object Windows from Paint?
Date: 30 Jul 92 06:21:52 GMT

In article <1992Jul13.033939.17316@nuscc.nus.sg> ipser@solomon.technet.sg (Ed Ipser) writes:

>control to be a function of the ATTR.H and ATTR.W of the containing window
>from within the Paint function. Of course, though, this doesn't work since
>these attributes are used only at creation time. I could delete the control
>and create a new one each time Paint is called but that seems crude as hell.

Can you send a wm_Size message to it?  It can access its parents Attr record
all by itself.

Scott R. Loban                                   loban@geog.ucsb.edu
Dept. of Geography                         6500sctt@ucsbuxa.ucsb.edu
University of California                 CompuServe Mail: 76646,3451
Santa Barbara, California                      Phone: (805) 893-4519
--------------------------------------------------------------------
"I was building a model for it, but I got glue on the windshield..."
--------------------------------------------------------------------
Newsgroups: comp.windows.ms.programmer
From: cparker@centerline.com (Charles Parker)
Subject: recent MSJ issue w/ debugging tips
Reply-To: cparker@centerline.com
Organization: CenterLine Software
Date: Tue, 28 Jul 1992 20:58:14 GMT

someone mentioned recently that there was an msj article
with tips and code about writing a windows debugger. Does
anyone know which issue, where I can get a copy, online
or otherwise. Thanks in advance

	cparker
Xref: sparky comp.windows.ms.programmer:7362 comp.os.ms-windows.programmer.misc:1020 comp.os.msdos.programmer:8087 comp.sys.ibm.pc.programmer:285
From: forte@nic.cerf.net (Kai Kenner)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc,comp.os.msdos.programmer,comp.sys.ibm.pc.programmer
Subject: How to perform memory-mapped hardware I/O in Windows?
Date: 26 Jul 92 03:31:34 GMT
Followup-To: comp.windows.ms.programmer
Organization: CERFnet

I'm trying to translate a small C++ DOS program to run as a Windows app
and I'm having trouble because the program writes directly to 
an area above 640K (D000:0000), which is where an IO card that the program
works with attaches.
The program throws an exception (GP fault) when it attempts to write
bytes to that area of memory, obviously because Windows runs in 
protected mode. 

So how do I send data to the card?  A small example of code would
be greatly appreciated.

Thanks,
Kai Kenner	forte@cerf.net
From: timmy@btcase.bt.co.uk (Tim Gibbons)
Newsgroups: comp.windows.ms.programmer
Subject: Scrolled Window in Visual Basic ?
Keywords: Visual Basic
Date: 23 Jul 92 12:51:26 GMT
Distribution: comp
Organization: British Telecom, Lion House, London.

Hello Everyone

I am currently writing an application in VB. Ther application has a
window that contains a buttons and graphics that cover an area larger
than is visible through the window. I therefore need a "scrolled
window", containing horizontal and vertical scroll bars , which can be
used to navigate through the picture.

Is such a window supported directly under Visual Basic ? - or will I have
to program it myself (which could end up a mess given VB's problems with
refreshing overlapping controls).

Thanks in advance for any responses.

Tim 
 
-- 

Tim Gibbons                   	
usenet: timmy@btcase.bt.co.uk  
Newsgroups: comp.windows.ms.programmer
From: john@utafll.uta.edu (John Baima)
Subject: Moving about a list box with 700 items
Organization: Silver Mountain Software
MessageID: <JOHN.92Jul17110058@utafll.utafll.uta.edu>
NntpPostingHost: utafll.uta.edu
Date: Fri, 17 Jul 1992 17:00:58 GMT
X-Bytes: 304

I have a listbox with about 700 items. It would be nice to move about
the list by typing more than just the first character (the default).
Any clues?

Thanks for any help.

John Baima
Silver Mountain Software   1029 Tanglewood, Cedar Hill, TX 75104
john@ling.uta.edu          Voice/Fax (214) 2932920
From: courtney@data.rain.com (Courtney Meissen)
Newsgroups: comp.windows.ms.programmer
Subject: Windows and high (>19.2K) baud rates
Date: 25 Jul 92 23:08:28 GMT
Organization: Microtek DSD, Hillsboro, OR



Questions on Serial communications from Windows:

1) Standard Windows API's don't accept baud rates higher than 19200
   (API's like BuildCommDCB(), SetCommState()).

   Is there a workaround from Windows?
   What are the baud rate indices in the 3.1 Windows.h (CBR_*) for?
      They are not used by any of the sample code in the 3.1 SDK.

   If I ignore the API's and set up the DCB myself, SetCommState
      still fails (don't know what the error codes mean, this one
      returns -5).
   I would be willing to talk to the port directly, but I see that
      the Dos int $14 functions only document a maximum baud of 19200
      (int $14, function 4 - Extended initialize comm port).

   Is there an inherent limit of 19200 with Windows since it is built
      on top of Dos?
   Are there any substitute comm.drv drivers for Windows that would
      support higher baud rates?

Please help!!
-- 
Courtney Meissen		   Microtek Development Systems Division
courtney@data.rain.com		   3300 NW 211th Terrace
uunet!intelhf!percy!data!courtney  Hillsboro, OR  97124  (503)645-7333x446
"There's a light at the end of the tunnel.. I hope it ain't no train."
From: galenr@hpgrla.gr.hp.com (Galen Raben)
Date: Tue, 28 Jul 1992 17:51:53 GMT
Subject: Re: 256 Colours in VB
Organization: Hewlett-Packard, Greeley, CO
Newsgroups: comp.windows.ms.programmer

In comp.windows.ms.programmer, ran@doc.ic.ac.uk (Robert A Nicholls) writes:

>Please excuse me if this is a common problem, and I'm sure it must be, but
>how does one get 256 colours out of Visual Basic? I have been told that PCX
>Toolkit for Windows and QuickPak Pro for Windows can produce 256 colours. Is
>this the only way to go? How about directly accessing the Windows API?

>Another question, which may be related to the above, does anyone have any
>information about Microsoft's Professional Toolkit for Visual Basic 1.0? Is
>the toolkit worth the price?

>Many thanks for any help you can give me.

It seems one could do it via the API but I've not had the time to try,
if you get any sample code would you send it to me also??  I have the
prototype declarations (from WINAPI.TXT & W31API.TXT) but not a clue
as to how to set up the palettes etc...

No it's not in the MS Pro Toolkit...  They have 3d controls, charting 
controls, animated buttons, MCI and OLE as well as info on WinHelp but no 
256 color stuff  :-(  Is it worth it?  Depends on your needs...  I got
mine at the $99 upgrade price, for the number of controls you get, it's
worth it.  However many of the controls can also be done via API calls...
The 3d controls & charting stuff is neat though...

- Galen -

Newsgroups: comp.windows.ms.programmer
From: shah@cherry.iss.nus.sg (shahrin abdullah)
Subject: Re: Need a program to record & playback midi event in windows 3.1
Reply-To: shah@iss.nus.sg (shahrin abdullah)
Organization: Institute of Systems Science, NUS, Singapore
Distribution: comp.windows.ms.programmer, comp.os.ms-windows.programmer.misc, comp.music
Date: Wed, 29 Jul 1992 02:50:05 GMT

Hello to all the gurus of windows multimedia. I am wondering whether is
there anyone out there who have written a windows program in C7 which is
able to record and playback the midi events using a callback function.
I have just started
programming in windows and I'm going into multimedia stuff. So if there
is any kind soul who have written such program before , it would save me
a lot of effort by not reinventing the wheel. I would also appreciate it
if someone has the complete source program of the DRUM machine which is
discussed in the PC MAGAZINE of MAY 12 issue which I could ftp. Any
other source for working with midi under windows is also appreciated.

Another last problem I had is the MIDIMON sample program which is provided with
C7 under the samples directory. The program is written to accept midi
events, place it in the circular buffer and then displayed to the MIDI
monitor screen. But everytime I run it, it generate an error message
which says 'An invalid parameter was passed to a system function '. I
have traced the source of the errors and found out that the MidiInOpen
function which called a callback function in a DLL was the cause. So how
do I tackle this problem? This is a sample program and it is supposed to
work. Could it be that the setting of the system configuration or
windows environment is incorrect. I am using a sound blaster pro card
which conform to the MS Multimedia Level 1 SPecification set to Int 10,
Channel 1 & Address 240H. Any guidance or assistance is again much
appreciated. Thank U. Cheers.

shah
From: graco01@cai.com
Newsgroups: comp.windows.ms.programmer
Subject: What Sun PC-NFS Version works with Windows 3.1 ?
Date: 28 Jul 92 07:46:51 GMT
Organization: Computer Associates International

Currently I am running Sun PC-NFS Version 3.0.1.   Will this version work with
Windows 3.1?  If not, what version will I need to upgrade to.

Thanks in advance.

-- 
Dean Grammas..............................................dxg@cai.com

   "All I ask is a chance to prove that money can't make me happy."
.....................................................................
Newsgroups: comp.windows.ms.programmer
Subject: Icon imagery -> .bmp
From: robbins@brandonu.ca
Date: 29 Jul 92 22:22:55 CST
Organization: Brandon University, Brandon, Manitoba, Canada

This may or may not be a simple/hard/stupid/etc., question but since I am not
intricately involved in Windows, here it is:

Is there a simple/standard way/program to extract iconic imagery from
executable programs and form .bmp files from them?

Because I don't do a lot with Windows (there are other operating
systems/architectures available - but Windows does have a few nice
pictures...), I'm not sure whether the standard tools shipped with the package
can be fudged with enough to do this.

Any assistance would be appreciated.

Thanks in advance.

Wayne Robbins
Email:  Robbins@BrandonU.CA

--
Amiga:    The computer for the creative mind.
Mac:      The computer for the rest of us.
Windows:  For those on the outside looking in?
Newsgroups: comp.windows.ms.programmer
From: bonney@esds.mdc.com (Greg Bonney)
Subject: graphics questions
Organization: Visual Simulation Systems
Date: Tue, 28 Jul 1992 15:21:12 GMT

Is it possible to write fast 3-D graphics applications under Windows?  Is there
any way to do page flipping in a window?  I'm new to Windows programming, so
I'd appreciate any ideas or suggestions.  I've already thought of using fixed-
point math and trig look-up tables.  Any suggestions on how to (or how not to)
implement these?

Thanks.
Newsgroups: comp.windows.ms.programmer
From: al@well.sf.ca.us (Alfred Fontes)
Subject: I need DIBBLE by Petzold
Organization: Whole Earth 'Lectronic Link
Distribution: na
Date: Tue, 28 Jul 1992 06:08:37 GMT

In the September, 1991 issues of PC Magazine, Charles Petzold mentioned
a program called DIBBLE that converts 24-bit DIB's to 8-bit DIB's.  Can
anyone send this to me, or tell me where to get it?  I couldn't find it
on PC Magnet.
From: thanos@reef.cis.ufl.edu (Thanos Karras)
Newsgroups: comp.windows.ms.programmer
Subject: Group File Format
Date: 21 Jul 92 19:35:11 GMT
Organization: Univ. of Florida CIS Dept.

Does anyone out there has a better description other than SDK for
the group file format (.GRP files)?
I am interested in being able to write to the group file and
modify it. Has anyone out there source code?

Any help is greatly appreciated.

Thanos Karras
thanos@reef.cis.ufl.edu

Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
From: 890560p@dragon.acadiau.ca (Trevor Porter)
Subject: Calling DOS programs from Windows
Organization: Acadia University
Date: Tue, 21 Jul 1992 16:33:37 GMT


Is it possible to call a DOS program from my windows program and display
the DOS program's output?  (For example: calling a DOS C compiler and        
displaying the compiler messages in a window.)

If this is possible, some sample code would be great.

Thanks.

-- 
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_                               Trevor Porter    	890560p@dragon.acadiau.ca                               Acadia University                                                               Wolfville, NS, Canada                                                           -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Date: Fri, 24 Jul 92 13:20:44 +0200
From: Martin_Schloeter@eurologic.fido.de (Martin Schloeter)
Subject: Re: Shared Global Memory
Newsgroups: comp.windows.ms.programmer
X-Comment-To: mike_t@hyperdesk.com (Mike_t)
Organization: martin_schloeter@eurologic.fido.de 

m > My are questions:
m > 
m >      1) Is there any system penalty for always using shared memory?
m >         For example, is it a limited resource or is it more costly
m >         to access?
Think so, but no quite sure.
m >      2) Is GMEM_DDESHARE really even necessary for Windows 3.0 in standard
m >         or enhanced modes or Windows 3.1?  Or is it just a throw back from
m >         EMS banked memory and real mode?
No, there is really different handling. For example "normal" global memory 
allocated inside a DLL belongs to the app using the DLL, but 
"GMEM_DDESHARE"-memory allocated inside a DLL belongs to the DLL!

m >      3) Can I send pointers to shared memory between apps and use them
m >         directly?
Yes, with Win 3.x.
m >      4) Is the following scenario a still a restriction under 3.1 or 3.0
m >         in standard and enhanced:
m > 
m >           -- App A creates shared memory and writes to it
m >           -- App A sends a message to App B containing the handle/pointer
m >               of the shared memory
m >           -- App B reads the shared memory, does something interesting,
m >              and then writes the results to the same shared memory
m >           -- App B sends a message to App A saying "all done, read the
m >              the shared memory that you sent me"
m >           -- App A reads it
m > 
m >         The question is does App A see anything useful.
Yes, with Win 3.x it will work fine. But be aware, with future 
32-Bit-Windows-Version it will not be allowed to pass memory-references 
directly between apps. The apps will have strictly separeted adress spaces! In 
this environment you will have to a real DDE-protocol via DDESendMessage and so 
on.

Greetings Martin
Xref: sparky comp.windows.ms.programmer:7313 comp.os.ms-windows.programmer.misc:954
From: kuntz@rwja.umdnj.edu (Ralph Kuntz)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
Subject: HELP: documentation for __ahIncr
Date: 22 Jul 92 16:14:35 GMT
Followup-To: poster
Organization: Robert Wood Johnson Medical School, Piscataway NJ

Hi Windoze Programmers:

In the owl/examples directory in BC++ 3.1 (3.0 also) there is a sample
bitmap display program call bscrlapp.cpp.  In this file they make use
of a "magic" identifier called "__ahIncr", apparently to step from the
end of one segment to the beginning of the next in a large block of
memory obtained from GlobalAlloc().  There is a cryptic message about
Windows doing something funny to this symbol.  Other than this one use
of __ahIncr and a single line "__AHINCR  size = 0" in
/windows/system/import.lst, I can find no other mention anywhere.  I
did a global grep in the /borlandc and /windows directories.  I also
looked in several Windows programming books that I have, but none
mentioned it either.

Does anyone have any more information about this symbol (or another
also in import.lst "__AHSHIFT")?

Also, from reading Petzold, I understand that if I have allocated a
very large block using GlobalAlloc() (>64K bytes), then I cannot use a
huge pointer and step from byte 0xffff to 0x10000 by simply adding 1.
There is some magic about protected mode and adding 8 to the segment
register that is not clear.  Any ideas?

BTW, I am trying to write a program to read and manipulate large
(640x480x256) tiff files.

			Thanks, Ralph
-- 
G. Ralph Kuntz
Medical student, UMDNJ - Robert Wood Johnson Medical School, Class of 1994
kuntz@umdnj.edu			(H) 908-463-7170
[Computer scientist for Bell Labs in a former life (before Med. School)].
Newsgroups: comp.windows.ms.programmer
From: bd164@cleveland.Freenet.Edu (John M. Bemis)
Subject: Need sideways text on a HP7475a
Organization: Case Western Reserve University, Cleveland, Ohio, (USA)
Date: Tue, 21 Jul 92 14:37:41 GMT


   I'm developing an application that needs to plot
to a HP7475a plotter and needs to have text running
in both directions.  I have tried creating a font
with the Escapement set to 900 and a variety of other
parameters but always the text will get sent to the
screen correctly but all the text will plot in the
horizontal direction on the plotter.  Is this possible
(I know it can be done from dos)?
Thanks
John Bemis
Department of Chemistry
University of Wisconsin
Madison
bemis@chem.wisc.edu
Newsgroups: comp.windows.ms.programmer
From: lobssuth@fig.citib.com (Lou Obssuth)
Subject: Object Vision on a Network
Originator: lobssuth@swcdev
Organization: Citibank IBISM
Date: Mon, 27 Jul 1992 20:38:42 GMT


	Has anyone had any success running objectvision on a Novell
	network (3.11, Ungermann Bass, ethernet cards)???

	thanks
Newsgroups: comp.windows.ms.programmer