HDTenEightyP/NetNews huggingface dataset:
From: johnn@eskimo.com (John Navitsky)
Subject: Source for Hierachal List Box?
Organization: =>ESKIMO NORTH (206) 367-3837 SEATTLE, WA.<=
Date: Wed, 30 Dec 1992 02:20:39 GMT

Hello,

Does anyone have source or DLL for a hierarchal list box in Win32 or Windows
3.1?  Preferably C or C++.

Please respond by e-mail as I'm not a frequent reader.

Thanks! 

-- 
   ---------------------------------------------------------------------------
    ||   John Navitsky   `,`,`,`,       e-mail >>  johnn@eskimo.com        || 
   ---------------------------------------------------------------------------
From: np2@doc.ic.ac.uk (Nathaniel Pryce)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
Subject: Re: How to distinguish between Click and Double-Click?
Date: 21 Dec 1992 17:17:46 -0000
Organization: Department of Computing, Imperial College, University of London, UK.
Distribution: world
NNTP-Posting-Host: oak1.doc.ic.ac.uk


In article <1992Dec18.131216.3058@cs.wayne.edu>, pbh@pandora.cs.wayne.edu (Patrick B. Haggood) writes:
|> Borland's OWL includes two Windows messages; WM_LBUTTONDBLCLK AND
|> WM_RBUTTONDBLCLK.  See the OWL manual p.42 or any of a bunch of 
|> third party books on OWL.

To have double click messages sent to a window, you must set the correct
class style: CS_DBLCLICK I think, but I'm not sure of the exact name.

Windows deals with double clicks by sending four messages to the window:
WM_LBUTTONDOWN, WM_LBUTTONUP, WM_LBUTTONDBLCLK & WM_LBUTTONUP. (for the
left mouse button, for instance.) When the program receives the 
WM_LBUTTONDBLCLK message, must handle the fact that the previous two messages 
were part of the double click, as is the next button-up message. The latter 
can be handles with a  boolean flag. 

The former is a little harder. I used double clicks to end the drawing of
a multi-point line in an object-oriented drawing package (actually a garden
designer). Every button up message added a point to the line, unless the last
message processed was a double-click. When I received a double click message,
I knew I had collected all the points and so processed them. Therefore I didn't
need to deal with/remember the previous two button-down/button-up messages,
since the double-click was an extension of a single-click; ie: single-click = 
"new point", double-click = "last point". 

I have found that in practise, most uses of double clicks are like this. 
Anything else is complicated to write and nasty to use.



|> -- 
|> Patrick B. Haggood				Wayne State University
|> "Again, the kingdom of heaven is like unto a net," | DoD #1966	
|> 	Matthew 13:47                              | pbh@prjup.uucp
-- 
-------------------------------------------------------------------------------
  ///                     Nat Pryce (np2@doc.ic.ac.uk)                  
 ( oo  It is essential to dig the most for if you do not dig you lose your
 |\_|  superiority over the square and so are less likely to be cool - Kerouac
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Displaying 256-Colors DIB Help Needed
From: pacheco@acs.harding.edu
Date: 2 Jan 93 09:58:05 -0500
Reply-To: pacheco@acs.harding.edu
Organization: Harding University

If anyone can help with this problem I would be very appreciative.

I have created a 256 color bitmap in my resource file.  I am trying to
display the bitmap on the screen.  I am using the GetDIBits function
with the wUsage parameter set to DIB_RGB_COLORS to retrieve the color
information for the bitmap in order to create a logical palette (is this
the correct procedure ... ?).  However, even though the resulting
bmiColors[] array contains 256 elements, all of the entries have RGB
values of (0,0,0) except for the 20 entries reserved by the system.

I have loaded my .EXE with a resource editor and viewed the bitmap to
confirm that it is 256 color and indeed it is.

Any help?  This is the first time I have worked with 256 color bitmaps
and I would appreciate any information anyone has to offer.

Thanks in advance ...

Ron

------------------------------------------------------------------------
 Ron Pacheco \pa-chek'-oh\  |  HARDING UNIVERSITY     Searcy, Arkansas
 pacheco@harding.edu    ;)  |  Dept. of Mathematics & Computer Science
------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: Sending message for multiple program instances
Organization: Vonnegut Tent Rentals, Inc.
X-Newsreader: TIN [version 1.1 PL7]
Distribution: comp
Date: Tue, 29 Dec 92 21:36:56 GMT

Sarir Khamsi (khamsi@ll.mit.edu) wrote:
> Yo,
> 
> Does somebody have a code segment that will display a message window
> (with OK button) stating that the program is currently running? I am
> using the condition :
> 
>    if( hPrevInstance)
>       return FALSE;
> 
> in my WinMain() to check currently, but it tells the user nothing.
> Thanks in advance.
> 
You ought to be able to use: MessageBox(NULL, "Program is already running!",
"Oops!", MB_OK);
You don't need an application window to use MessageBox.  This in fact is the
answer to those smartalecs who gloat that you can't write a 1-line "Hello 
World" program in Windows.  You can, and I have.

If you want something a little less rough and ready, you can query 
hPrevInstance for its main window, then send that a message of your own 
devising (WM_USER or somesuch).  You will add code to the Window procedure
so that the original instance notifies the user.

--
||------------------------------------------------------------------------
||Dave Jones (dj@ekcolor.ssd.kodak.com)|Eastman Kodak Co. Rochester, NY  |
From: jyl@burgess.eng.sun.com (Jacob Levy)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Getting times and memory utilization for an executing process (Win32)
Date: 23 Dec 92 09:47:53
Organization: What?! Organization???
Reply-To: jyl@toss.eng.sun.com
NNTP-Posting-Host: burgess


I asked this in the programmer.win32 group but got no answer. Since Win32
is a superset of Win16, it occurred to me to ask here - maybe the API had
not changed all that much, and maybe I'd get a pointer to where to start
looking.

Anyways, I need to get the elapsed time, cpu time and percentages of user
and kernel time for a process executing on Windows/NT written using the
Win32 API. I know it's possible because I've seen PVIEW.EXE and debuggers
do it. How would this be done in Windows 3.1? Also, how do I find out how
much memory (and what kinds of memory) are being used by each DLL used by a
program?

Many thanks for any and all insights,

--JYL
Newsgroups: comp.os.ms-windows.programmer.misc
From: maley@micro.cs.umn.edu (Michael P Maley)
Subject: find commdlg and OWL
Organization: University of Minnesota
Date: Tue, 29 Dec 1992 07:40:49 GMT

I am trying to implement the common find dialog box in
the OWL framework. I can get the dialog box to appear, but

1. I can't use the tab key to move around inside the dialog
box. I didn't understand the Help file which says that
IsDialogMessage() must be called. By enabling the KB handler
it is, yet it still didn't work.

2. Most importantly, I can't see how to incorporate the
RegisterWindowMessage() and the DefWndProc code into the
OWL framework. I think I can register the FIND.. message
in the constructor of my TWindow descendant. But I am
not quite sure where to add the message trapping code. I 
assume I will have to inheret and change alot of the
TWindowsObject routines.

I would really appreciate some help. Thanks alot in
advance.

Mike Maley
maley@cs.umn.edu

Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.win32,comp.windows.ms.programmer
From: scstech@solomon.technet.sg (Arthur Lim)
Subject: Re: Source for Hierachal List Box?
Followup-To: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.win32,comp.windows.ms.programmer
Organization: Singapore Computer Systems Ltd
X-Newsreader: TIN [version 1.1 PL8]
Date: Wed, 30 Dec 1992 07:32:35 GMT

John Navitsky (johnn@eskimo.com) wrote:
: Hello,

: Does anyone have source or DLL for a hierarchal list box in Win32 or Windows
: 3.1?  Preferably C or C++.

: Please respond by e-mail as I'm not a frequent reader.

: Thanks! 

: -- 
:    ---------------------------------------------------------------------------
:     ||   John Navitsky   `,`,`,`,       e-mail >>  johnn@eskimo.com        || 
:    ---------------------------------------------------------------------------

Please include me on the list. Or better yet, please post. I'm sure there
are others interested too.

Thanks.



+======================================================================+
| Arthur Lim                     | #include <std.disclaimer>           |
| Advanced Software R&D Centre   |                                     |
| Singapore Computer Systems Ltd | scstech@solomon.technet.sg          |
|                                |                                     |
| (Voice) 065-240-3850           | Please prefix "For Arthur :" in the |
| (Fax)   065-441-2811           | subject line when mailing. Thanks.  |
+======================================================================+
From: odysee@pyton.DoCS.UU.SE (Tobias Thomson)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: HELP with DPMI
Date: 3 Jan 93 12:16:32
Organization: Dept, of Computer Systems, Uppsala University, Sweden.
NNTP-Posting-Host: pyton.csd.uu.se

If this is not the correct meeting for my question, show the one.

My problem:
		I need to use ax=4300 function for int21h and the
		problem is the pointer to pathstring. Any suggestions?

		I read (sometime in the wonderful past) an article about
		DPMI with listings and that, but I can't remember where,
		so if anybody do remember please let me know.

T. Thompson

odysee$`csd.uu.se   // The '$' should be an adress sign but I can't
		    // print one
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: rryan@panix.com (Rob Ryan)
Subject: Re: MFC and Borland IDE
Date: Tue, 22 Dec 1992 05:47:10 GMT
Organization: Panix, NYC

In <1992Dec21.211933.14321@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes:

>	Did anyone write it using plain C and the Windows API?  It
>	would be nice to have those numbers for comparison also.

Having written lots of plain old C and a few largish MFC applications, I
would hazard a guess that the number of lines of code would be much higher
for the C code (than the MFC code, at least, and presumably the OWL code
too) and that the size of the executable wouldn't be that much smaller
than that of MFC.

MFC is a "wrapper" for the Windows API, meaning that it gives you easy
access to the API without too much overhead.  Clearly, for users that want a
cross platform (Windows, DOS, Macs, Suns, etc.) class library, a thin
wrapper around a particular platform's API won't do the trick.  But, then
again, given OWL's dependency on Borland-specific DDVTs, it's unlikely to
become a cross platform standard either.  OWL abstracts the programmer
away from the API a little more (arguably making it easier for beginners),
but I've heard OWL programmers suggest that you eventually have to become
familiar with the Windows API anyway, minimizing this advantage in my view.

For those C++ programmers who are used to doing C Windows development, MFC
is a great boon (though I still think the compiler stinks...painfully slow
and still a DOS application).  But having written MFC apps, I'm a convert to
Microsoft's class library.  The code seems efficient, small, and safe (i.e.
C++ protection and abstraction at it's best) and the source is a lot cleaner
than my old C stuff (and I prided myself as being a good, stylistically
speaking, C programmer).

Now, if Microsoft could just get a development environment that's as nice
as Borland's, I'd be happy.  PWB and CL is for cave men (though some might
argue that "real programmers don't eat quiche or use IDEs").  Personally,
I think Borland's development environment/tools are wonderful.

(P.S. I don't mean to start an OWL vs. MFC flame war here.  They're too
different paradigms, of which MFC suits my background and expectations
better.  OWL is good as well, though.  I just wanted to emphasize that
anyone still programming in C should *really* look into class libraries and
C++ development.  It save a lot of time and is well worth the investment if
you're doing any serious development.  And, if overhead is a concern, MFC
presents minimal overhead while offering tremendous OOP advantages.  It
should also be pointed out that although the OWL executables are bigger (and
if linked dynamically, may require those 3 DLLs), I've heard that the actual
run-time footprint (resources used and RAM consumed) isn't that bad.  It's
not like running in Visual Basic or anything.  The executables may be big,
but the code is still pretty efficient.)

-- 
 Rob Ryan
    rryan@panix.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Help: How to print w/ the same fonts as on screen 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Thu, 31 Dec 1992 19:28:05 +0000

In article <1992Dec30.231615.10852@njitgw.njit.edu> wxt5592@hertz.njit.edu writes:

>
>    Question:  How do you print the text with the same fonts as what 
>
>are displayed on screen?
>
>    What if true type fonts are used?
>
>    What if non true type fonts are used?
>
>    (Assume the fonts on screen are not printer internal fonts)
>
>
>    Thanks.
>

That's one of the purposes of the "ChooseFont" common dialog box.  If you
give it the "CF_WYSIWYG" flag, it'll only show you the fonts which are
available on both the screen and the printer.

In general, if you want WYSIWYG, you have to use scalable fonts.  That means
TT fonts on 3.1 and (yuck!) vector fonts on 3.0.  Unless you use a scaleable
font, the Window font mapper will give you the "closest approximation" to
the font you request, which sometimes is *not* terribly close at all!

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: leonp@cs.kun.nl (Leon Pillich)
Subject: Windows programming. What product to use?
Organization: University of Nijmegen, The Netherlands
Date: Mon, 28 Dec 1992 20:33:24 GMT

 Hello everybody,

 I'm considering programming for intel-based pc's in the
 near future.
 I do not know yet whether I will program for os2/2.0
 or for windows 3.1.
 I will be doing this programming to gain experience on
 such systems, since up to know I have mainly programmed
 unix systems, e.g. Sun sparc-stations with X-Windows/
 Open Look Interface Toolkit and RS6000 with 
 X-Windows/OSF-Motif. Since I am currently unemployed I do 
 have some time to gain experience.
 
 Which programming language/environment do you recommend?
 (I prefer C/C++, Pascal or Modula2/3.)
 What's the difference between Turbo C++ and Borland C++.
 I see them both being advertised for very different prices!
 Are they both for windows?

 Thnx, for any info

Leon Pillich
University of Nijmegen, Holland
email: leonp@cs.kun.nl
-------------------------------------------------------------
 Life is what's happening when you're making other plans ...
                                      John Lennon
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Herc cards and 486's and Windows ! 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Wed, 23 Dec 1992 22:08:18 +0000

In article <Bzp9Av.4FF@cantua.canterbury.ac.nz> cameron@cosc.canterbury.ac.nz writes:

>
>Do you have a dual display working on a 486 under
>windows ?
>
>I can get a Herc card and mono monitor working in my 486
>together with main VGA display card and monitor. Turbo
>Debugger uses it fine... BUT the whole windows environment
>is slowed down (screen updates) when the herc card is
>in place, also problems with the hard disk controller..
>
>I've got  DualDisplay=1 in my system.ini..and the herc card
>is a recent model.  The machine isn't slowed down in normal
>DOS mode.. 
>
>SO what do I need to do to get the second display working
>on the 486 ?  I've been through all available windows and
>Turbo C docs.. but the only setting I could find was
>the "dualdisplay=1" - make no difference..
>
>The vga card is a ET4000 is 1Mg RAM.. Machine is 33Mz TP
>486
>
>Thanks
>Cameron.
>
>
>

The reason for this slowdown is simple.  If you have an 8-bit secondary
video card in your machine - which ALL mono card are - then the primary
colour video card is *also* forced into 8-bit mode.  As you've discovered,
8-bit access to a video card makes Windows s-l-o-w.

There's absolutely no way around this - it's just the way the AT bus
works, unfortunately.  If you must have dual displays, the only thing you
could do (if you're rich!) is have an 8514/a card such as an ATI Ultra
as your primary display, and 16-bit VGA as secondary.

Personally, I live with CodeView on a single monitor.  Not too bad, once
you get used to it.

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: gowen@uswmrg.mrg.uswest.com (Lee Gowen)
Subject: Re: AUX Problem in Windows 3.1
Organization: USWEST Marketing Resources
Date: Tue, 29 Dec 1992 15:20:42 GMT

  I believe that the reference is section 3.3.2.1 in the getting started
  manual.  (At least in my SDK documentation. :)   )

  lee
Newsgroups: comp.os.ms-windows.programmer.misc
From: nuscss1@vms1.iscs.nus.sg (Vax BULLET-IN-Board SysOps)
Subject: Re: how to animate icon of minimised window ?
Summary: ok, i've managed to find out how... 
News-Software: VAX/VMS VNEWS 1.41    
Organization: National University of Singapore Dept. of Computer Sc.
Date: Sat, 26 Dec 1992 13:07:00 GMT

In article <1992Dec25.062010.6731@panix.com>, rryan@panix.com (Rob Ryan) writes...
>In <25DEC199200040150@vms1.iscs.nus.sg> nuscss1@vms1.iscs.nus.sg (Vax BULLET-IN-Board SysOps) writes:
> 
>Are you invalidating your window in your WM_TIMER message?  As well as telling
>Windows what the new icon is, you'd probably want to tell it to redraw it (and
>you do this by invalidating the appropriate window).
> 
>Personally, I wouldn't do the SetClassWord(), but rather manually take over
>the processing of the paint command.  So, I'd have something like:
> 
>  1. my WM_TIMER code would invalidate the window for the application and set
>     a static, hIcon to be the handle of my new icon; and
>  2. have a WM_PAINT (Microsoft doesn't recommend using WM_PAINTICON anymore)
>     check to see if IsIconic().  So, I'd have something like:
>       case WM_PAINT:
>         if (IsIconic(hWnd)) {
>             BeginPaint(hWnd, &ps);
>             DefWindowProc(hWnd, WM_ICONERASEBKGND, (WORD) ps.hdc, 0L);
>             DrawIcon(ps.hdc, 0, 0, hIcon);
>             EndPaint(hWnd, &ps);
>             return 0;
>         } else 
>             return DefWindowProc(hWnd, message, wParam, lParam);


	okie, after fiddling around with DrawIcon, WM_PAINT, and all
	those stuff, i discovered that the trick is, as you've pointed out,
	to invalidate the window. All that is required is :
	
	0. Set the timer. Upon reception of WM_TIMER, do the following: 
	1. Set the handle of the next icon using the SetClassWord() function.
	2. Invalidate the window with InvalidateRect(hWnd,NULL,TRUE).
	   The important thing here is the 3rd parameter. All along I've set it
	   to FALSE, which was why it didn't work before. I *guess* the reason
	   could be that if WIndows is forced to redraw the background, it
	   will also be forced to redraw the icon, and voila! your new icon
	   will be drawn.
   	3. That's it. No further code is required in the WM_PAINT message.

	I hope this saves someone out there from a bit of head-scratching.
> 
> 
>-- 
> Rob Ryan
>    rryan@panix.com
From: pam@vandi.ars.cl (Pablo Ahumada M.)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: very large list boxes 
Distribution: world
Organization: Ars Innovandi (El arte de innovar)
Date: Wed, 23 Dec 1992 13:44:22 CST



There is a Virtual Listbox in:

	 ftp.uu.net
	 /verdor/microsoft/developer-network/win

	 vlbdocwh.zip
	 vlistsam.zip

This listbox could help.

Pablo


--

  __   _  ,_ _	    |  Pablo Ahumada Mardones
  |_)_(_(_| | |_    |  uucp: pam@vandi.ars.cl
  |		    |  Fax: (56-2) 274-9737
		    |  Av Italia 1669
		    |  Santiago, Chile
From: skrause@informatik.hu-berlin.de (Steffen Krause)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: commdlg font box & bwcc - doesn't work
Date: 21 Dec 92 12:37:09 GMT
Organization: A poorly-installed InterNetNews site
NNTP-Posting-Host: einstein.informatik.hu-berlin.de

Hi everybody !
I try to use the commdlg font selection box with a Borland-style
dialog box template. The result is that the font preview is not
displayed. When I remove the 'BorDlg' class everything is OK.
Has anybody a solution for this problem ?
Steffen

-- 
---------------- Steffen Krause --------------------------------------------
Zu Risiken oder Nebenwirkungen lesen Sie die Packungsbeilage und informieren
Sie Ihren Arzt oder Apotheker.
----------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: yvon@ramsey.cs.laurentian.ca (Yvon Lavoie)
Subject: Trouble with Visual Basic
Organization: Dept. of Computer Science, Laurentian University, Sudbury, ON
Date: Tue, 29 Dec 1992 05:03:25 GMT


I have just started programming with Visual Basic.  When compiling a program
I am able to run it off my hard drive with no problem.  But once I copy the
program to a floppy disk and try running it, I get a system fault prompting
me to reboot my computer.  This happens even though I copy the VBRUN100.dll
file to my disk.  I have the Standard Edition of Visual Basic 1.0.

Any suggestions?

Yvon Lavoie
From: kris@circ.upenn.edu (Kris Gupta)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: commdlg font box & bwcc - doesn't work
Date: 23 Dec 92 16:50:51 GMT
Reply-To: kris@circ.upenn.edu
Organization: Cardiothoracic Imaging Research Center

In article 724941429@einstein, skrause@informatik.hu-berlin.de (Steffen Krause) writes:
> Hi everybody !
> I try to use the commdlg font selection box with a Borland-style
> dialog box template. The result is that the font preview is not
> displayed. When I remove the 'BorDlg' class everything is OK.
> Has anybody a solution for this problem ?

Apparently there are alot of internal bugs in commdlg. If you want to use
bwcc you may want to read PC Mag (vol 11, nums 19-20). They use TP code
but explain the pitfalls. If you just want to 3D-fy the commdlg try instead
(since hacking a working commdlg & bwcc model is such a headache) 
using Microsoft's offical 3D library. Look at Excel 4.0 to see what it can
do. It's trivial to use and apparently will be part of future Windows versions.
The library is called: ctl3d (dll, lib, header). I got it from the
Microsoft msdnlib forum on Compuserve. Note that they keep separate the library
and the technical notes on the topic (makes sense!). If there is enough interest
I might upload it to CICA.

Gook luck
Kris

---
Kris B. Gupta  - Cardiothoracic Imaging Research Center
Dept Radiology - Hospital of U of Pennsylvania
Internet: kris@gynko.circ.upenn.edu


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