HDTenEightyP/NetNews huggingface dataset:
From: d6caps@dtek.chalmers.se (Per Bergland)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Data links to Excel?
Date: 21 Dec 92 17:37:41 GMT
Organization: Chalmers University of Technology

In article <724814244snz@chrism.demon.co.uk> chris@chrism.demon.co.uk writes:
>In article <BzInst.853@news.chalmers.se> d6caps@dtek.chalmers.se writes:
>
>>Is it possible to use for instance Excel as a Chart Engine, feeding with
>>data out of my own picking, and updating for instance once a minute?
>
>You should be able to do what you want with DDE.  I would suggest getting
>hold of the "Excel Developer's Kit", obtainable from Microsoft at a low
>price.  It explains all.

So I called Microsoft Sweden, and they said "we're sorry, but the
Excel Developer's Kit isn't available yet".
What gives?
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: help & rtf files
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 30 Dec 1992 01:52:38 GMT

Thanks for all of the help I received from various folks regarding
my frustration and confusion in creating help files.  I received
many suggestions and simplified examples of RTF files.  However
the overwhelming number of responses came from folks who confirmed
my original statement that I was "stupid", but in a different way.
I thought I was just dense, but they all thought I was stupid:

  (a)	to try to create help without a real word processor that
	could export RTF files

  (b)	to try to understand the syntax of the RTF files

  (c)	to invest so much time and money in good development tools
	like Borland C, etc etc and then *not* go out and get a
	decent RTF wp package (like Word or WordPerfect)

Well, you know something?  They are 100% correct.  I was just
wasting my time with trying to understand RTF format so I could
create RTF files with a plain-text editor or other text-to-rtf
converters, just to avoid buying another word processor.

I got a copy of Word for Windows.  I fired it up, had it figured
out in 2 minutes and 20 minutes later, had most of the features
(pop-ups, jumps, various fonts etc) coming up when summoned
from my application.  It really is so simple and easy to use
that I'm really quite embarrassed about my original question
and plea for help on writing RTF files.

The bottom line (IMHO) is:
	(a) don't mess about with creating RTF files by hand
	(b) don't mess about with tools to convert text files
	    to RTF files
	(c) buy a decent wp package that can export RTF files
	    directly

However, let me just close with a parting shot at MicroSoft.  As
one person pointed out, I should consider myself lucky to have
a good help engine - something that other GUIs don't have.  On
the other hand, why doesn't MicroSoft provide *all* of the tools
to develop applications without steering us into other products
in their product line?  If Windows help is such an integral feature
of Windows and is standardized throughout all Windows apps,
then why can't Windows Write (supplied with Windows) export
RTF files?  Why isn't an editor/wp capable of exporting RTF files
supplied with the SDK?  No, instead we are directed to buy their
other (expensive) products (like Word).  It is exactly this type
of consumer manipulation (or whatever you call it), that MS is being
allegedly investigated for right now.

Well folks, that's it.  I have now finished my help and that completes
my first Windows app: 20k lines of code and 5 months of effort.
I am delighted (and less stupid).  Thanks to all of you for your
help on this and other topics.  Time for project #2...
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
From: sloyola@girtab.usc.edu (Steven J. Loyola)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Bitmaps on Buttons wish BC++
Date: 22 Dec 1992 09:37:03 -0800
Organization: University of Southern California, Los Angeles, CA
Distribution: world
NNTP-Posting-Host: girtab.usc.edu

In article <1h76k1INNflb@ceres.kingston.ac.uk> ee_d270@ceres.kingston.ac.uk (Richie Poo's) writes:
>
>Hi.
>
>I am trying to put pictures on buttons in dialog boxes will the
>resource workshop supplied with BCC++.
>
>Does anyone know how to do this as I cant get it to work.
>
>Thanks a lot
>
>ee_d270@king.ac.uk
>

First, look in the file BWCCAPI.RW (it should be in your DOC subdirectory).  It
and the other .RW files can be helpful sometimes.  In general, you need to:
1)  define the button class as "BorBtn" (ctrl-dblclick to get this dlg box)
2)  create 3 bitmaps for each button (copy & paste helps here)
    Button Control Id + 1000:  Normal VGA image
           "          + 3000:  Pressed VGA image
           "          + 5000:  Focused VGA image
    (add 1000 to each for EGA)
    Your bitmaps should include the frame and shadow for each button (use the
    Resource Workshop on itself to see how Borland makes theirs.

I may be forgetting some details, so check those .RW files.  Also, I can't
overemphasize how helpful it can be to use the Resource Workshop to look at the
resources in an .exe file.

Hope this helps,
Steve Loyola
Newsgroups: comp.os.ms-windows.programmer.misc
From: plummer@hercules.cs.uregina.ca (Dave Plummer)
Subject: OWL TListBox Selection Change
Date: Sun, 27 Dec 1992 19:41:12 GMT
Organization: University of Regina, SK, Canada

I've got an application that uses a Dialog as the main window, and in that
dialog is a listbox.  When the user selects a line from the listbox, the
dialog gets the LBL_SELCHANGE and updates some other info on the screen.
That works fine.

However, I also have a speedsearch function, which also works.  The problem
is, when the speedsearch within the listbox changes the selection, the dialog
has no way of knowing, and can't update the other screen information.  The
listbox doesn't have access back to the dialog, so I can't call the routine
manually.

What I really need to do is fake an LBL_SELCHANGE message when I change
the selection manually.  Then the dialog will handle it.  Unfortunately,
SetSelString() doesn't do this... and I don't know how.

Any suggestions greatly appreciated.  Please email me, if you can.

Thanks,
Dave
From: davei@comp.lancs.ac.uk (Mr D Ingles)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Font handling in VB
Date: 23 Dec 92 09:40:06 GMT
Organization: Department of Computing at Lancaster University, UK.

Has anyone got any VB code which would allow one to view a font which is
not installed under Windows ?

Davei
From: jianqing@cs.tamu.edu (Dennis Li)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Help:Resource Workshop style toolbox
Date: 23 Dec 1992 05:54:07 GMT
Organization: Computer Science Department, Texas A&M University
Distribution: world
NNTP-Posting-Host: solar.tamu.edu

Hi,

It would be greatly appreciated if anybody answer my following questions.

1. I am trying to implement a toolbox like the ones in Borland Resource
   Workshop, which move along with the drawing window, and never go out of the
   MDI frame.  What window style should I use? Are they child windows of the
   drawing window or the MDI frame? And what message should I intercept? I am
   using Borland C++ 3.1 & OWL. 

2. I would like the toolbox have a different system menu than the default.  I 
   know I can delete the old menu items and add mine. But is there a better way
   to do it?

Thanks a lot.

--
Dennis Li
Newsgroups: comp.os.ms-windows.programmer.misc
From: bjd7p@uvacs.cs.Virginia.EDU (Bert J. Dempsey)
Subject: Borland OWL --- cleaning up windows
Organization: University of Virginia Computer Science Department
Date: Thu, 24 Dec 1992 16:42:30 GMT


 Here's my OWL-based programming problem----any comments appreciated.

   I want to have the following (pseudo) code where GP and GP2
   are global pointers of the proper types--

in file1.cpp I have:

   TWindowClass1::TWindowClass1(...)
	{
          ...
	  GP2 = new TWindowClass2(this, "ATitle");
	  ...
	}


in file2.cpp (my application) I have:
	
	...
	GP = new TWindowClass1(this, "AnotherTitle");
	...

	Now, my simple question-------->

	how do I correctly clean up (say later in file2.cpp) ?

	Possibilities seem to include:

		(1)  GP->ShutDownWindow();

		or (2)  DestroyWindow(GP);

		or (3) GP->ShutDownWindow(); delete GP;

		or maybe (4) GP->ShutDownWindow(); delete GP2; delete GP;


	Can someone clear up my confusion on the relationship between 
	destroying the window and releasing the memory of the 
	associated interface object? Thanks.


-- 
Bert Dempsey   (bjd7p@uvacs.cs.Virginia.EDU)
Computer Science, University of Virginia

"Language is not an abstract construction of the learned...but is 
something arising out of the work, needs, ties, joys, affections,
tastes, of long generations of humanity, and has its bases broad 
and low, close to the ground."   --Walt
		
Newsgroups: comp.os.ms-windows.programmer.misc
From: Kyle Marsh <kylemar@microsoft.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Virtual Listbox Example                                                        
Date: 31 Dec 92 18:25:00 GMT
X-MSMail-Message-ID:  8A044A68
X-MSMail-Conversation-ID:  8A044A68
X-MSMail-WiseRemark:  YO
To: netnews

We recently updated the files on ftp.uu.net. Look for 10-4.zip and 
3-31.zip instead.

Kyle
MS Developer Network
From: rpd@twinkletoes.sbi.com (Richard P. Daley)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Virtual Listbox Example
Date: 30 Dec 92 21:28:46 GMT
Organization: Fulcrum - Salomon Brothers, NY

Someone recently posted a message, which said that there was an
example of a virtual listbox example available on ftp.uu.net.
The files were supposed to be called vlbdocwh.zip and vlistsam.zip.
I have had zero luck in finding these files.  Does anyone know
where I can get a copy?

Thanks for any help,

Rick Daley
rdaley@sbi.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: how to find parentless non-child windows?
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 23 Dec 1992 23:27:10 GMT

I found a solution to my problem and I thought I'd post it here since
it was a bit obscure.

If you recall, I was creating several parentless non-child windows with:
 	CreateWindow("xxx",NULL,
 			WS_OVERLAPPED  | WS_CAPTION    |
 			WS_SYSMENU     | WS_THICKFRAME |
 			WS_MINIMIZEBOX | WS_MAXIMIZEBOX,
 			CW_USEDEFAULT,CW_USEDEFAULT,
 			CW_USEDEFAULT,CW_USEDEFAULT,
 			NULL,           //note - no parent
 			NULL,                           
			hinstance,(LPVOID)xxx);

I wanted them parentless so they wouldn't remain in front of the main
window.

When I closed the main window, these sub-windows disappeared, but when
I put a breakpoint at WM_DESTROY, it never got there (I guess Windows
destroyed them, but not through WM_DESTROY).  Anyway, they all used
resources that I wanted to free up before closing them.  I needed a
way to find all of these windows so I could send them WM_DESTROY.

Several people sent suggestions regarding EnumWindows and some said
I should keep a linked list of the HWND.  As simple as the linked
list code is, it just seemed to add yet more complexity to an already
complex app, so I looked for another solution.  Rick Kimmel came up
with the best ideas, so here is the (our) solution:

In the main window:
	  case WM_DESTROY:	DestroyOtherWindow(hwnd,"xxx");
				PostQuitMessage(0);
				break;

void DestroyOtherWindows(HWND hwndmain,char *classname)
{
HWND hwnd;
char buffer[50];

	hwnd=GetWindow(hwndmain,GW_HWNDFIRST);
	while(hwnd){
	  GetClassName(hwnd,buffer,sizeof(buffer));
	  if(strcmp(buffer,classname)==0){
	    if(GetWindowWord(hwnd,    GWW_HINSTANCE)==
	       GetWindowWord(hwndmain,GWW_HINSTANCE)){
	      		SendMessage(hwnd,WM_DESTROY,0,0);
	    }
	  }
	  hwnd=GetWindow(hwnd,GW_HWNDNEXT);
	}
	return;
}
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: jennrich@pollux.itp.uni-hannover.de (Oliver Jennrich)
Subject: Changing default mouse cursor
Organization: Institut fuer Theoretische Physik, Uni Hannover
Date: Mon, 21 Dec 1992 10:58:32 GMT


Hi Netters,

is there anyone out there who might help me ?

Ok, here is the problem :
I want to change the standard mouse cursor, this silly arrow, to something 
more pretty (you can guess, a mouse :-) ). I know that I can change the mouse 
cursor in editing the corresponding *.exe-file with my ResEditor, but I want 
to avoid changing MSW files.

Ther must be a software solution, something like changing the handle of the 
cursor to some selfdefined bitmap.

I also know how to change the cursor in my own applications, but this seems
to be a different job, as I've to change the cursor without having th code.

Any ideas ?
If any, please respond via EMail, as I usually don't look very closely to this
group...

Mary X. Mas is happily going to New York ...


-- 
+-------------------------------------------------------------------------+
|  -oje-  Oliver Jennrich                     Institut f"ur theor. Physik |
|  jennrich@kastor.itp.uni-hannover.de        Universit"at Hannover       |
+-----  If there are any opinoins expressed, they are possibly mine ------+
From: kris@circ.upenn.edu (Kris Gupta)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Microsoft ctl3d library
Date: 23 Dec 92 20:16:57 GMT
Reply-To: kris@circ.upenn.edu
Organization: Cardiothoracic Imaging Research Center

In article 725136642@dseg.ti.com, jtaylor@dseg.ti.com (Jeff Taylor) writes: 
> 	Can these by used by Borland C++ programmers? Are they compatible, 
> or only an extension of exsisting Microsoft tools?


I have been using ctl3d with BC++ 3.1 without any evident problems --- yet!

Kris

---
Kris B. Gupta  - Cardiothoracic Imaging Research Center
Dept Radiology - Hospital of U of Pennsylvania
Internet: kris@gynko.circ.upenn.edu
From: kevin@execu.execu.com (Kevin English)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Seeking WMF file format
Keywords: WMF METAFILE
Date: 22 Dec 92 20:40:42 GMT
Organization: Execucom Systems Corp

It is completely defined in Chapt 3, Vol 4 of the 3.1 SDK
Newsgroups: comp.os.ms-windows.programmer.misc
From: doc@magna.com (Matthew J. D'Errico)
Subject: GetProcAddress/DLL -- Wierd results - Help !
Organization: Magna Software Corporation
Date: Tue, 22 Dec 1992 22:46:04 GMT

This is a follow-up to a problem I've been trying to resolve...
I STILL NEED HELP, though !

I have a routine, InitLib() which is bound into several DLL's,
and exported in the .DEF for each.  What I use this for is to
pass some data into the DLL...  The InitLib() routine takes this
data and depending upon the context, massages it, and loads it into
Global variables which are created using GlobalAlloc w/ GMEM_SHARE...

When I call LoadLibrary() in my .EXE, I follow it with a GetProcAddress()
for "InitLib", and if it passes, I call the routine as a FARPROC
function pointer with the appropriate data (all far pointers as well)...

Here's the wierd bit:

This routine, or one quite like it, is bound into several DLL's/
In Windows 3.0, when I run the program, the data's not there, even
though a couple of MessageBox displays in the InitLib() says it is...

So I recompiled for CodeView, and when I set the breakpoint at or in
InitLib for the DLL, I never hit it !!  Even if I trace into InitLib()
from the calling .EXE !!  I *see* the breakpoint, but CV doesn't trip...

Even wierder (to *me*, anyway), is that under Windows 3.1, this all
works perfectly !!  Arrrrgghh !  The Global memory's there, the
CodeView breakpoints hit, everything's *perfect* !

I need help...  Desparately !  (before I really need MENTAL help!)

-- Doc
From: reed@hpcc01.corp.hp.com (Perry Reed)
Date: Wed, 23 Dec 1992 00:44:08 GMT
Subject: Re: HP's Dashboard
Organization: Hewlett Packard Co / PGIS
Newsgroups: comp.os.ms-windows.programmer.misc

I have seen Dashboard running on several different PCs including
Vectras, and clones, and I've yet to see any bugs...

Perry

Newsgroups: comp.os.ms-windows.programmer.misc
From: jeff@tct.com (Jeff Witzer)
Subject: WM_CTLCOLOR...
Date: Thu, 31 Dec 1992 13:49:59 GMT
Organization: TC Telemanagement, Clearwater, FL

On December 4th of this year blakeco@microsoft.com posted this follow-up 
message:

>In article <focke.125.723322161@gmd.de> focke@gmd.de (Stefan Focke) writes:
>>I think, that it is not possible to change the color of the font used in a 
>>edit-class window. 
>
>In the wndproc of your parent window add:
>
>case WM_CTLCOLOR:
>    if ((HWND)LOWORD(lParam) == hwndYourEditCtl)
>        SetTextColor((HDC)wParam,rgbYourTextColor);
>    return NULL;
>
>-Blake
>-- 
>#include <std/disclaimer.h>                      blakeco@microsoft.com
>Mail Flames, Post Apologies.                     ...!uunet!microsoft!blakeco

...I think I have a related question.  

I am trying to display (in a dialog box) a grid of numbers whose color 
represents some condition (black - within range, red - above range, blue -
below range).  I have set up an array of OWNERDRAW controls and respond to 
the WM_DRAWITEM message with:

    FillRect (lpdis->hDC, &lpdis->rcItem, GetStockObject (LTGRAY_BRUSH);
    SetTextColor (lpdis->hDC, RGBValue);
    DrawText (lpdis->hDC, "text", -1, &lpdis->rdItem, DT_LEFT);
    		
(The color and text vary for each lpdis->CtlID, of course.)  The FillRect ()
call is done because I'm using Borland style dialog boxes and need to gray the
background because Windows clears the OWNERDRAW background to white before I 
get the WM_DRAWITEM.  This causes great amounts of flicker, as you can well 
imagine.

Is there any way to have Windows fill OWNERDRAW backgrounds with another 
color (light gray in my case)?

The related question has to do with my attempts to use LTEXT controls in the
place of the OWNERDRAW controls.  I want to respond to the WM_CTLCOLOR message
as Blake described and use the SetWindowText () function elsewhere in the 
process, but I never recieve the WM_CTLCOLOR message.  Do I have to somehow
tell windows to send me that message for static controls?  

Also, what is the CTLCOLOR_STATIC (6) message used for?

Thanks,

jeff@tct.com


Newsgroups: comp.os.ms-windows.programmer.misc
From: stephen@eggneb.astro.ucla.edu (Stephen Schimpf)
Subject: Re: Borland-izing Common Dialogs 
Organization: UCLA Dept of Astronomy
Date: 22 Dec 92 21:36:30 PST

In article <724971010snz@chrism.demon.co.uk> chris@chrism.demon.co.uk writes:
>In article <TORSTEIN.92Dec21103132@itekiris.kjemi.unit.no> torstein@itekiris.kjemi.unit.no writes:
>
>>In article <2B31FB9F.88D4@tct.com> jeff@tct.com (Jeff Witzer) writes:
>>   I'm writing an app that uses Borland style dialog boxes and buttons.  I
>>   would like to keep the interface consistant but haven't found a way to 
>>   Borland-ize the <commdlg> File Save and File Open dialog boxes.
>>
>>   Does Borland have their own version?  (I couldn't find any public
>> alternative
>>   like thier BWCCMessageBox...I hoped to find a BWCCGetOpenFileName () and 
>>   BWCCGetSaveFileName ())
>>
>>   I also tried to run Resource Workshop on my .exe but, of course, couldn't
>> find
>>   those dialogs to modify.
>>
>>   Should I give up and use the bland MicroSoft standard dialogs or is there
>> hope?
>>
>>   jeff@tct.com
>>
>
>There's a VERY good solution now.  Microsoft have just released a DLL called
>"CTL3D" which gives you 3D versions of *all* the standard Windows controls,
>as well as nice grey backgrounds to dialogs.  According to its documentation,
>these weill become standard in "a future version of Windows", and CTL3D is
>now the "official" way to get "the 3D look" to your dialogs.
>
>It's VERY easy to use.  You just make about 3 function calls and a "hook"
>is installed, which automagically subclasses all the controls in your
>dialogs, to make them 3D.
>
>Best of all it's FREE!!!!  It's in the MSDNLIB area of CompuServe, so
>should also be in the corresponding "mirror" directory of ftp.uu.net.
>
>Hope this information is useful to you,
>
>Merry Christmas!
>
>Chris
>-- 
>--------------------------------------------------------------------------
>| Chris Marriott                           | chris@chrism.demon.co.uk    |
>| Warrington, UK                           | BIX: cmarriott              |
>| (Still awaiting inspiration              | CIX: cmarriott              |
>|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
>--------------------------------------------------------------------------


This sounds great, but I can't find it! Would somebody please let me
know where this file is. If it is not at ftp.uu.net, could somebody
*please* upload it to wuarchive.wustl.edu or ftp.cica.indiana.edu, or
someplace else where those of us without Compu$erve can get it?

Stephen

Newsgroups: comp.os.ms-windows.programmer.misc
From: "chris snell" <chris.snell@canrem.com>
Subject: help gwl_wndproc
Reply-To: "chris snell" <chris.snell@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 3 Jan 93 07:53:47 EST

Before I ask my next question I would like to thank two people who have 
helped me before: Stephen Groundwater for drag & drop server information, 
and Brett Manz for revealing the stm_SetIcon message to me. Thank you.

And now, could anyone tell me the correct method of calling the procedure 
address returned by GetWindowLong(hWnd, gwl_WndProc)?

I want to intercept one message from another application, so I get the 
address of the window function with OldWndProc:=GetWindowLong(hWnd, 
gwl_WndProc), and substitute a new window function with 
SetWindowLong(hWnd, gwl_WndProc, longint(@MyNewProc)), and my new function 
gets all the window messages, which is what I want. But when I try to pass 
the messages I don't want to intercept on to the OldWndProc, I get a 
general protection fault. How do I pass the unwanted messages on to the 
other application?

As you can tell, I am using Turbo Pascal for Windows, but a C example 
(perhaps with some commenting) I should be able to understand.

Thanks to anyone who responds,
                                        chris.snell@canrem.com

---
WMR #1 I was on a roll, until I slipped on the butter.
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Newsgroups: comp.os.ms-windows.programmer.misc