HDTenEightyP/NetNews huggingface dataset:
From: mattsq@microsoft.com (Matthew Squires)
Subject: Re: Clock applet
Date: 15 Oct 92 17:55:01 GMT
Organization: Microsoft Corporation

In article <1992Oct15.053454.8491@engage.pko.dec.com> marshall@tfh.enet.dec.com (Hunting the Snark) writes:
>I would like to imitate an interesting property of the Clock applet in Windows
>3.1 (I don't remember now if the one in 3.0 did this). When you select the "No
>Title" setting, holding the left mouse button down in the clock window puts it
>into the move mode the same as in the caption of of a normal window. How does 
>it do that? Is there an easy way (some undocumented windows fuction) or do they
>do it "the hard way" (LbuttonDown, SetCapture, GetDC, MouseMove, etc.) Is it 
>significant that it only does this when there is no title bar?

Yes, it's true!  There is another undocumented windows function called
"ImplementCoolClockBehaviorOnlyForMSApplications" that only we know
about.




Seriously, look up the WM_NCHITTEST message.  If the user is clicking on
your client area (found by calling DefWindowProc and noting its return
value) then you would want to return HTCAPTION - i.e. windows should treat
this click as if it happened on the title bar.

There are other issues like handling double-clicks and you probably
don't want to let the user move your window if it is maximized, but
this should be enough to get you started.

Matt "not a spokesbeing for microsoft" Squires
mattsq@microsoft.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: ahmad@norooz.NoSubdomain.NoDomain (Ahmad Alavi)
Subject: Borland IDE linker option question.
Reply-To: ahmad@norooz.b17a.ingr.com
Organization: " "
Date: Thu, 8 Oct 1992 15:59:05 GMT

Why I cannot link with dynamic version of run-time library?

I opened examples\win31\truetype.prj, selected Option|Linker|Libraries,
and from the Link Libraries dialog box I selected Dynamic for RTL.
When I link, there 10 undefined symbols. (sqrt, strlen, cos, etc.)

The project works if I link RTL as static.

Please help.

Ahmad Alavi
From: mokler@desert.in-berlin.de (Claudius Mokler)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Font as part of a ressource ?
Date: 15 Oct 92 21:01:20 GMT
Organization: Private Site

I am currently writing a win 3.1 app which uses an own font.
This is currently achieved by using a .fon file and calling
AddFontResource(). Does anybody know how to embed the font
in my programs resource data, so that I don't have to carry on
with the .fon file ?

Thanks in advance, Claudius
e-mail : mokler@desert.in-berlin.de
From: focke@gmdzi.gmd.de (Stefan Focke)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Help: How to activate DEL in the Edit Class
Date: 16 Oct 92 12:10:44 GMT
Organization: gmd

Hello!

The last problem I had, had been solved very fast by some kind netters. So, 
here's a new one.

I use Turbo Pascal for Windows 1.5.
If I use a TEditWindows-Object (a child of the Edit-Class) the DEL-Key does 
not work. The only possiblility to delete a character is to use Backspace.
I think, that this is because of the implementation of the Windows Edit-
Class. My question is: How can I activate the DEL-key. 

I see two problems:
- How can I capture the Del-Key. Does it come with a wm_char message? I 
  can't find one.
- The Edit-class has no message to delete the character right to the cursor. 
  Also it has no message to get the cursor position in the current line.

Thanks
Stefan

----------------------------------------------------------------------

Stefan Focke                  Tel. 02241-14-3154
GMD-I8                        e-mail: stefan.focke@gmd.de
Postfach 1316
D-W 5205 Sankt Augustin 1
From: whedon@netcom.com (Bill Whedon)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: What memory model for windows?
Date: 16 Oct 92 16:22:48 GMT
Article-I.D.: netcom.1992Oct16.162248.24400
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

I've been programming in Windows for a few years now, and gave up on memory
models smaller than Large quite some time ago.  True, you pay a small penalty
in performance sometimes, and your programs are a bit fatter, but you almost
never have to worry about adequate space again, nor need to muck about with
casts to far and other such Intel nonsense.  Or, maybe I'm just lazy... :-)
Cheers,
Bill Whedon
  
-- 
-- Charter member of Mutants for Nuclear Power --
From: marcusj@apricot.co.uk (Marcus Jenkins)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Display a bitmap while loading - the answer?
Date: 13 Oct 92 08:32:06 GMT
Organization: Apricot Computers Limited

I have had a few responses to the problem of:

	"How do I get my app. to display a pretty bitmap while
	it's loading up, just like Resource Workshop or Borland's
	Windows IDE?"  (Paraphrasing my posting)

One person suggested that I made sure that my code segments 
weren't PRELOAD, but LOADONCALL.  I changed that, *and* put
WinMain into a teeny-weeny module, all of it's own.  It
still took an age to display the MessageBox() as the first line
in WinMain.  (Borland C++, large model, OWL, by the way).

Another suggestion was to put the bulk of my app. in a DLL.  This
lead me to think of the opposite view.  Why not put the bitmap
displayer and changing the icon to the hourglass into a DLL's
LibMain.  Then call a stub function from that DLL in my code.
Windows, I understand, loads and initialises all DLL's required
by an app. before running the app. itself.

Another solution suggested was to write two executables.  One
little one that displays the bitmap and changes the cursor, and
then WinExec()'s the bulk of the app..

The last two solutions still seem a trifle 'bitty'.  I would like 
to pursue the first line of attack, really (the 'get the segmants
right in the first place' one).  Unfortunately, I'm not certain 
what to do here, since so much implicit work happens in a C++
app. rather than a C one, that I feel that if I start mucking
about with the segments, it might just stop working altogether.

Incidentally, somebody pointed out that there is (TP) source
for an example of how to display a bitmap while loading called
splash.zip of cica.  Unfortunately, this does not tackle the
issue of how to get in there *really* early in the loading
process.   (Nonetheless, I'm sure it will save me some hassle
when I want to change the MessageBox() call to the real bitmap).

By the way, has anybody got any bitmaps of some nice decidous 
trees?  (A sort of old tree, by itself, with an uncluttered
background, and no royalties :-)

 _ _ _
' ) ) )                         Internet: marcusj@apricot.co.uk
 / / / __.  __  _. . . _        UUCP: marcusj@apricot.uucp
/ ' (_(_/|_/ (_(__(_/_/_)_      If all else fails from US, try:  
Marcus Jenkins                  apricot!marcusj@relay.EU.net
Tel: +44 21 472 3002  Fax: +44 21 471 2935
Disclaimer:  Anything I wrote above is, of course, my own view and
             does not in any way represent my employer.
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: tomw@stephanie.megatek.com (Tom Wright)
Subject: Writing my own windows driver; advice needed on getting started
Organization: Megatek Corporation, San Diego, California
Date: Tue, 13 Oct 1992 00:13:52 GMT

I need to write a printer driver for arbitrary Windows applications. My needs 
are fairly modest in that I will only be producing a file, not actually driving
a device.

How should I get started? I've seen that the Windows NT Driver Development
Kit costs about $500. Is the 3.x DDK that expensive too? Are there any good
alternatives? I'm an experienced Windows developer, but I never bought the
SDK because Borland C++ had everything I needed. That kind of alternative
is attractive to me because I'm on a tight budget.

Any help would be appreciated. Post or e-mail responses as you wish.

Thanks,
Tom Wright
Newsgroups: comp.os.ms-windows.programmer.misc
From: helge@donald.mikrosys.no (Helge Johansen)
Subject: MDI problem
Date: Wed, 7 Oct 1992 08:13:59 GMT
Reply-To: helge@donald.mikrosys.no
Organization: Mikrosys AS
Posting-Front-End: Winix Conference v 92.05.15  1.20 (running under MS-Windows)

I have some question about MDI in Windows. I have some problems with
icons in a program that uses MDI. A document window in the client area 
of a MDI with a bitmap drawn in it, gets an incorrect icon. On 24-bits 
color screen, the whole bitmap in used as icon. On 8-bits color screen, 
the program crashes with stack overflow when I try to make icon of such 
a window.

How can I correct this? Is it a special way of using/initializing icons
for document windows in a MDI?
Is it possible to disable MINIMIZE-option for document windows in the
client area of a MDI?

Thanks in advance for answers!


-- 
//  Helge Johansen              //  Phone: +47 83 15050           o       //
//  Mikrosys AS                 //  Fax:   +47 83 15055          /|\      //
//  Strandveien 74              //  E-mail: helge@mikrosys.no    / \o     //
//  N-9000 Tromsoe, NORWAY      //                              -----     //
Newsgroups: comp.os.ms-windows.programmer.misc
From: jtaylor@dseg.ti.com (Jeff Taylor)
Subject: BC++ and BWCC problems (ICON,TIMER with DialogBox)
Organization: Texas Instruments, Incorporated
Date: Thu, 8 Oct 1992 18:05:04 GMT

Well, I love the way the BWCCs look, but I must admit that I'm having some 
problems getting them to do what I think they are supposed to...

Has anyone implemented a "bordlg" class dialog box as the mainwindow of an 
application? I can't seem to get the icon that i've loaded to show up when 
the window is minimized. Borland gave some hints about deriving from the
"bordlg" class in a doc file called "BWCCAPI.RW" but evidently there's 
something I don't understand... H E L P ...!

Also, I have a timer set up and running (verified with WinSight), but I
can't seem to intercept the WM_TIMER message to kick off my response 
function. Any ideas?

If anyone has any suggestions, please send them to:

		jtaylor@mk1501.dseg.ti.com

Thanks!

Also, since I'm not a member of CompuServe, I can't get to the latest docs
that Borland has out there. Can someone send me anything they have on working
with the BWCC stuff.

Mucho Appreciatho.
Newsgroups: comp.os.ms-windows.programmer.misc
From: mboucher@cortex.prospect.com (Mike Boucher)
Subject: Bizzare behavior w/ hourglass cursor
Organization: Cortex Corporation, Waltham, MA, USA
Date: Sun, 11 Oct 1992 16:53:12 GMT
X-Posted-From: cortex.prospect.com
NNTP-Posting-Host: sol.ctr.columbia.edu

Hi there,

I have a strange problem (but that's a long story.. :) ).  I am writing
the client portion of a MS Windows/VMS client/server application, using
C/C++ 7.0, SDK 3.1, and Digital's Pathworks.

When Communication occurs, I want to turn on the hourglass cursor, and
reset it to the arrow when comm is finished.  I successfully set the
cursor, and then call the comm routine.  The cursor instantly changes
BACK to the arrow.  When I return from the comm routine, the cursor 
DISSAPEARS outright.  It's still there, just not visible, which kinda
defeats the purpose.  Nothing I've tried restores it.

Can anyone give me suggestions about
1) what is happening?
2) how/where to fix this?
3) how they did the same?

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: eduard@htsa.aha.nl (Eduard Beijnes)
Subject: reply: serialnumber harddisk
Organization: Algemene Hogeschool Amsterdam, The Netherlands
Date: Fri, 9 Oct 1992 13:23:25 GMT

The following programs writes 2911.1971 as a serialnumber on the 
default drive (29 nov 1971) 

----- uuencoded program / cut here -----
begin 600 serial.com
4N %ILP"Z#@'-(;1,S2$  '$9$2D 
 
end
----- end of uuencoded program /cut here -----

dump van debug.com:

2F73:0100 B80169        MOV	AX,6901                            
2F73:0103 B300          MOV	BL,00                              
2F73:0105 BA0E01        MOV	DX,010E                            
2F73:0108 CD21          INT	21                                 
2F73:010A B44C          MOV	AH,4C                              
2F73:010C CD21          INT	21                                 
2F73:010E 0000          ADD	[BX+SI],AL                         
2F73:0110 7119          JNO	q012B                               
2F73:0112 1129          ADC	[BX+DI],BP          

I don't have the documentation with me because I am on school while
I am writing this.

I am not sure but if you change MOV AX,6901 in MOV AX,6900 it reads the
serialnumber.

If this doesn't work email me (eduard@solist.htsa.aha.nl) and I will
look it up

Xref: sparky comp.os.ms-windows.programmer.misc:2694 comp.sys.ibm.pc.misc:13713
From: b_haughey@ccvax.ucd.ie (Brian J Haughey)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.sys.ibm.pc.misc
Subject: Visual Basic Problem - Max Procedure Limit
Date: 9 Oct 92 21:01:00 GMT
Organization: University College Dublin


Hi there.

Apologies if this is the wrong group, please re-direct me if so.

I'm working on a large MS Visual Basic project with about 100 forms of data
in total. We have hit the magic (and undocumented) 1300 procedure limit in 
any one make file. Our only possible work-around is to create a number of 
executables and run them simultaneously and hope to god that the user 
can't tell the difference. Can any one who has successfully got around this
problem tell me how they did it ?


Replies to the group, or to "b_haughey@ccvax.ucd.ie" *PLEASE*!

Best regards,
Kierman Nolan
-- 
Internet : b_haughey@ccvax.ucd.ie      "There's no future in time travel"
Newsgroups: comp.os.ms-windows.programmer.misc
From: mokler@desert.in-berlin.de (Claudius Mokler)
Subject: Re: NEED HELP! info on reading mac disk
Keywords: Read Mac 1.44M disk on PC 1.44M disk drive
Organization: Private Site
Date: Thu, 08 Oct 1992 22:26:14 GMT

Meeee tooo !
If anybody has any information about the disk structure, I would
like to get it too .

Thanks in advance, Claudius

e-mail : mokler@desert.in-berlin.de
Newsgroups: comp.os.ms-windows.programmer.misc
From: rioj7@fel.tno.nl (M.L.M.Veraart)
Subject: Scrolling Two Listboxes with One ScrollBar
Organization: TNO Physics and Electronics Laboratory
Date: Thu, 8 Oct 92 14:54:58 GMT
Keywords: Listbox scroll


In article <9452@ncratl.AtlantaGA.NCR.COM> 
on 3 Oct 1992 Gordon Edwards asked

>I have a dialog box with two listboxes displayed side-by-side on the
>screen.  I have the scrollbar on the left box hidden, and the scrollbar on
>the right visible.
>
>Each entry in the left listbox is related to the entry in the same position
>in the right listbox.
>
>What I'd like to so is when the scrollbar on the right listbox causes some
>scroll action to occur in the right listbox, I'd like the left listbox
>to perform the exact same type of scrollaction.  (IOW, if the right box
>scrolls one line I'd like the left box to scroll one line).
>
>Also, if the user selects an entry (double-clicks on an entry) in the
>right listbox I'd like the left listbox to also receive the selection
>messages so that the selected entry in both boxes is highlighted.
>
>My problem is that I haven't been able to make the left listbox perform
>the same actions that the right listbox takes.
>

Gordon,

A more easier way of dealing with your problem is using a very
wide listbox with a TABSTOP in the middle. When you enter a string
you must separate the string for the Left-Listbox and the Right-Listbox
with a tab-char '\t'
example  "First line of left\tFirst Line of right"

The tabstop in the listbox can be set with the LB_SETTABSTOPS message.

When the user scrolls, both entrys scroll. After selection and retreiving
the selected string you must locate the position of the tab-char with
   start_right:=strpos(sel_str,'\t');

To give the impression of a double listbox you might try to find a character
that looks like a vertical bar and compose the string the following way
    "First line of left\t|\tFirst Line of right"
where '|' represents the bar-character. You will to set a second tab-stop.

I hope this will be of use.

Mario Veraart
e-mail adres: mveraart@tnofel.fel.tno.nl
Newsgroups: comp.os.ms-windows.programmer.misc
From: jca17@phx.cam.ac.uk (J.C. Ashworth)
Subject: Borland Custom Buttons and Toolbars
Keywords: Borland
Reply-To: jca17@phx.cam.ac.uk (J.C. Ashworth)
Organization: Cambridge University, England
Date: Fri, 9 Oct 1992 11:54:02 GMT


I've been trying to write an application whose user interface controls
are somewhat similar to the 'tool' windows featured in Borland's
Resource Workshop that comes with BC++ 3.1.  Essentially, these windows
contain what look like push-buttons with their own bitmaps.

My attempts so far have concentrated on using TButtons (OWL) with a
BS_OWNERDRAW option and an override of the supplied ODASelect and
ODADrawEntire member functions.  I have successfully managed to produce
bitmapped buttons, but with one irritating defect.

When the button is clicked using the mouse more than once and rapidly,
it does not always respond - graphically, I have the bitmap changing to
make the button look pressed.  Using the space-bar to operate the
button, this is not the case: the button always responds correctly, no
matter what the rate of pressing.

The OWL manual implies somewhere that this is the strategy to implement
bitmapped buttons, but I'm not convinced.  I wonder if the problem I'm
having is with the TButton - if I used a TControl, would things improve?

If anyone can suggest a reason for the 'sticky' mouse-click, I'd be most
grateful.  Any other advice or recommendations on implementing the sort
of controls I've mentioned would also be much appreciated.  Could I be
using Borland's TBButtons perhaps (with my own bitmaps) - and if so, how?

If anyone is interested in the code I've written so far, I'll be happy
to send it on.


- Ta muchly,

Jules.
Date: Mon, 12 Oct 92 14:38:17 +0100
From: Martin_Schloeter@eurologic.fido.de (Martin Schloeter)
Subject: Re: Not working GlobalUnlock (Was Minizing Lock and Unlock Calls in
Newsgroups: comp.os.ms-windows.programmer.misc
X-Comment-To: (Atif)
Organization: Die ersten 100.000 Jahre... 

a > However, if I decided to replace...
a > 
a >   if (GlobalUnlock(hMem) != (HANDLE) NULL)
a >      GlobalFree(hMem);
a > 
a > simply with a call to GlobalFree, as in...
a > 
a >   GlobalFree(hMem);
a > 
a > then the memory object gets freed anyway without using the 'if'
a > condition and a call to GloabalUnlock. Although this works, I'd
a > like to understand why exactly why the article choses to call
a > GlobalUnlock before the the GlobalFree function. 
Not quite sure, but in a app of mine I got the problem, that GlobalUnlock on 
Windows 3.0 returned FALSE, but while running on Win 3.1 TRUE was returned. 
Ignoring the return value had no consequences, all worked fine.
a > Before I leave you to ponder, I'd like to also state my own
a > reasoning behind why the article's method doesn't work. If I am
a > correct, please tell me so (this will also save you some time and
a > writing).
a > 
Greetings Martin
Newsgroups: comp.os.ms-windows.programmer.misc,comp.sys.ibm.pc.misc
From: jpehko@cs.joensuu.fi (Juha Pehkonen)
Subject: Re: Visual Basic Problem - Max Procedure Limit
Organization: University of Joensuu
Date: Fri, 16 Oct 1992 09:54:28 GMT

b_haughey@ccvax.ucd.ie (Brian J Haughey) writes:
>Apologies if this is the wrong group, please re-direct me if so.

try alt.lang.basic

Juha Pehkonen
jpehko@cs.joensuu.fi

Newsgroups: comp.os.ms-windows.programmer.misc
From: scott@unixland.natick.ma.us (Scott Evernden)
Subject: Re: __WinAllocFlag in DLL
Organization: Unixland Public Access Unix & Think_Tank BBS
Date: Tue, 13 Oct 1992 00:58:00 GMT

In article <9210121327.aa27407@Paris.ics.uci.edu> lhuynh@clyde.ICS.UCI.EDU (Thomas Huynh) writes:
>Hi,
>
>I am writing a DLL and I was wondering if anybody has ever used
>the global variable "__WinAllocFlag."  Somebody told me about this
>variable and the compiler I am using (Borland C++ 3.1) just won't
>recognize it.  Does it exist?
>
>The reason why I need this variable is because I want to make
>the memory allocated by the DLL to be shareable, thus settting
>it to "GMEM_DDESHARE";

try:

extern unsigned _WinAllocFlag;

-scott
----
GrayMatter Software Co.              Holliston, MA   508 429-7867
scott@unixland.natick.ma.us    scott@opl.com    spe@world.std.com
user interface and application development technologies and tools
Newsgroups: comp.os.ms-windows.programmer.misc
From: alwin@zen.et.tudelft.nl (Alwin Hoogerdijk)
Subject: Question about playing wave-files
Organization: Delft University of Technology, Dept. of Electrical Engineering
Date: Thu, 15 Oct 1992 12:46:58 GMT

 Hi ,

I am exploring the multimedia functions in the Windows 3.1 API. But there's
something I don't understand and I can't find the answer in the Borland books,
the help files or the samples, so I thought that maybe one of you could help me.

I am writing a sample editor for windows, so I need to output sound using a
wave-audio device. As far as I understand it, there are the following methods of doing WAVE-I/O :

- using sndPlaySound : very easy to use, plays waves from disk or from memory,
	but sound cannot be paused and cannot be played from and to specific
 	points in the sample.
- using the low level functions : rather difficult to use, this method seems
	not necessary for my application.
- using MCI commands or strings : still easy to use, everything I want to do is
	possible (play, stop, pause, resume, record, play from/to), so this
	seems to be the perfect method when writing a sample editor. But there
	is one thing I don't get : Is it possible to play a wave-file
	directly from memory, as with sndPlaySound ? When you open a device,
	you use a filename to indicate what you want to play. 

So how do I do this ? I want to be able to play waves from memory, to pause
the output and to play from and to a position in the sample. Do I really
have to use the low level functions to do this. This seems too much trouble
for my app, because the MCI-commands seem to provide everything I need.

For the time being I use sndPlaySound, so I have output, but not the way I want it. Could somebody provide me with the information I need ? 

Thanx for your time,

Alwin Hoogerdijk
Faculty of Technical Mathematics and Informatics
Delft University of Technology
Holland

Email : alwin@dutisa.twi.tudelft.nl
 
-- 
|        Alwin Hoogerdijk         |    Email : alwin@dutisi.twi.tudelft.nl    |
| Delft University of Technology  |                                           |
Newsgroups: comp.os.ms-windows.programmer.misc
From: chtan@solomon.technet.sg (Tan Choong Hwee)
Subject: EMM, DPMI and Windows Standard Mode
Organization: National University of Singapore
X-Newsreader: TIN [version 1.1 PL6]
Date: Fri, 16 Oct 1992 08:02:15 GMT


Dear Netters,

Does anyone know how much DPMI support there is in Windows standard mode
with EMM on?  I'm interested in accessing extended memory, possibly even
beyond the system physical memory (some I/O device memory that I have to
grab), and I use DPMI to get a selector to the extended memory.  Under
386 enhanced mode I have no problem accessing said memory, but with
Standard mode and EMM active Windows complains of a Page Fault at
the point where I dereference the selector.

Does anyone have similar experiences of what I had just described?
Anyway I can get at that memory without Windows coughing up and throwing
my program out?

Thanks in advance for any help you may have.

Regards,
C H Tan
chtan@solomon.technet.sg
Newsgroups: comp.os.ms-windows.programmer.misc