HDTenEightyP/NetNews huggingface dataset:
From: dewerk@yosemite.csufresno.edu (<< Dragon >>)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Multi-select combo boxes
Date: 13 Jan 93 03:08:53 GMT
Organization: California State University, Fresno

->Newsgroups: comp.os.ms-windows.programmer.misc
->From: pdaugher@mcl.bdm.com (Pat Daugherty)
->Subject: Combo boxes with multiple selections????
->
->Does anyone have any ideas to allow multiple selections in a combo
->box?
->
->Please email or post.
->Thanks,
->
->--
->*	pdaugher@bdmserver.mcl.bdm.com               *
->*	PAT DAUGHERTY   Go Redskins                  *
->*	"Hey Man I Am Cool, I Am The Breeze"         *

when you define the style (most likely you're using LBS_STANDARD) include 
LBS_MULTIPLESEL (e.g. style = LBS_STANDARD | LBS_MULTIPLESEL)...

also...  instead of sending the messages LB_SETCURSEL, LB_GETCURSEL, or
LB_SELECTSTRING you'll need to use LB_SETSEL and LB_GETSEL...  for more
information try looking at pp.244-249 of Charles Petzold's book
"Programming Windows, 2nd Ed"...

 -- Paul-Joseph

                                * - * - *

Paul-Joseph "Dragon" de Werk        | God grant me the SERENITY to accept
Department of Computer Science      | the things I cannot change, the
California State University, Fresno | COURAGE to change the things I can,
dewerk@csufres.CSUFresno.EDU        | and the WISDOM to know the difference.

HELLO!  I'm a .signature virus! Join in and copy me into yours!
From: deitsch@sol.crd.ge.com (Andy Deitsch)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: MDI Child Windows
Date: 8 Jan 93 14:03:12 GMT
Reply-To: deitsch@sol.crd.ge.com
Organization: GE Research & Development

First, I'd just like to thank everyone who responded to my 2 previous
posts.  You've been extremely helpful.


Now the problem:

I am writing an MDI application that I based on an example program
delivered with BC++3.1 as part of their Resource Workshop demo (rwcdemo).

The problem is that when a child window is maximized, it dissapears and
there is no way to get it back.  Experimenting a little, I decided to
add scroll bars (WS_HSCROLL | WS_VSCROLL) to the style in MDICREATESTRUCT
and when I maximize this window, the scroll bars appear where they should
(butted up to the border of the frame window, but the system menu and 
restore bitmap don't appear on the menu bar.

I have looked at several books and it seems like maximizing an MDI child
and getting the required behaviour is the default (i.e. I shouldn't have
to handle the message myself right?).  The Borland example has the
same behaviour as my application.

Anyone have any ideas?

-- 
_________________________________________________________________________
Andy Deitsch                             email    : deitsch@crd.ge.com  
GE Corporate Research & Development      phone    : (518) 387-7207   
Schenectday, NY 12301                    dial comm: 833-7207
From: j_pan@ranger.enet.dec.com (Joanna Pan)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Calling ISR from Windows application
Date: 11 Jan 93 15:15:12 GMT
Organization: Digital Equipment Corporation


I am porting a DOS application to Windows environment. Can I use in-line
assembly to make an interrupt call ? It's not the regular int 21h or int 5Ch.
e.g.
	_asm {
	     push  ds
	     push  ax
	     mov   ax, 0DE11h	; some function code
	     int   78h		; call ISR
	     pop   ax
	     pop   ds
	     }

Can I use 32-bit registers instead of 16-bit ? If I choose to write a separate
assembly file, can I write truely 32-bit programme ?

Thanks !

_______________________________________________________________________________
!	Joanna Pan			email:j_pan@ranger.enet.dec.com       !
! 	Personal Computer Systems Group					      !
!	Digital Equipment Corporation					      !
!	Littleton, Massachusetts					      !
-------------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: ahaus@dke.uni-linz.ac.at (Andreas Hausleitner)
Subject: filecopy function f. windows
Keywords: filecopy
Reply-To: ahaus@dke.uni-linz.ac.at
Organization: Johannes Kepler Universitaet
Date: Mon, 11 Jan 1993 15:20:07 GMT

I urgently need a program to copy files under windows. This program should be
a DLL or EXE program, with parameters to specify source- and destinationfile.

like: filecopy <sourcefile> <destinationfile>

It should also work within a network (Novell Lite 1.1).

It would be nice to get such a program.

If no program is available, does there exist a function for C (MSC or Borland)
to copy files simply? Do have C-Code samples?


Note: it should also work within a network!

Thanks, for your help.

Andt
ahaus@gup.uni-linz.ac.at
From: jeff@tct.com (Jeff Witzer)
Subject: Drawing Borland OWNERDRAW button faces...
Date: Mon, 11 Jan 1993 02:25:37 GMT
Organization: TC Telemanagement, Clearwater, FL

I am trying to respond to the WM_DRAWITEM message for Borland OWNERDRAW 
buttons.  I have the following questions:

1)  How do I tell if the button is pushed or not?  I need to know this to
    redraw the button face pushed or not.  lpdis->itemAction and 
    lpdis->itemState do not seem to give this information.
    
2)  How can I draw text to the face of the button in either black or dark 
    gray AND a light gray background within the text?  I would like to use
    something with the power of DrawText () so I can horizontally and 
    vertically center the text on the button.  I can draw black text on a 
    white background, but this looks funky on a gray button face.
    
3)  How do I tell if the button is ENABLED or not?  I would like to draw gray
    text (see #2) if the button is disabled.
    	    
Speed is of the essence! 
    
Thank you for your support,

jeff@tct.com
    
   
Newsgroups: comp.os.ms-windows.programmer.misc
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: Disp 24bpp on 8bpp system?
Organization: Compaq Computer Corp.
Date: Mon, 11 Jan 1993 15:15:22 GMT

In article <C0K4nM.14B@news.cso.uiuc.edu> jas37876@uxa.cso.uiuc.edu (John A. Slagel) writes:
>    Is there anyway to display a 24bpp DIB on a 256 color SVGA without
>    implementing the code for color quantization?  I wrote some code to
>    convert 24bpp images into 8bpp DIBs, but it takes around 10 seconds
>    for a 512x512 DIB, and I just wonder if there is a better way.
>
>    I did try using SetDIBitsToDevice, but the picture only uses the 20
>    system colors to draw the 24bpp DIB.  The result is pretty nasty looking.
>

I doubt it.  The driver will use the system colors to display by default.
Now you could create a standard palette with a range of colors in it.
That would work better than just using the system palette.  Writing
your own code is probably the only way to get a good image though.


--
Ed McCreary                                               ,__o
mccreary@sword.eng.hou.compaq.com                       _-\_<,
"If it were not for laughter, there would be no Tao."  (*)/'(*)
From: Jeff Dean <jeff@igc.apc.org>
Newsgroups: comp.os.ms-windows.programmer.misc
Date: 07 Jan 93 00:14 PST
Subject: Re: Questions about Windows for Workgro
Nf-ID: #R:1id908INNdr0@gap.caltech.edu:-1531880661:cdp:1668700021:000:341
Nf-From: cdp.UUCP!jeff    Jan  7 00:14:00 1993


Yes, Windows for Workgroups can coexist with another network on the
same physical cable.  I've used it with a TCP/IP package from
NetManage without a problem.  There is supposedly an SDK, but
from what I've heard, it's not yet available in a released
version (there may be a pre-release version on Compu$erve).

	Jeff Dean
	jeff@igc.apc.org

Newsgroups: comp.os.ms-windows.programmer.misc
From: mavmav@mksol.dseg.ti.com (michael a vincze)
Subject: Windows 3.1 LZEXPAND DLL
Organization: Texas Instruments
Date: Tue, 5 Jan 1993 22:43:07 GMT

With windows 3.1 there is an included LZEXPAND.DLL.  I know that you can use
this DLL in place of the DOS EXPAND.EXE.  My question though is how do you get
a file in the compressed form to start off with?  I realize that there is a
DOS COMPRESS.EXE, however I did not receive this program with any of my DOS
software.  I suspect that you get one with the Windows SDK, however I program
with Turbo Pascal for Windows and do not have the SDK.  Could someone please
inform me how I can obtain a copy of COMPRESS.EXE, or better yet a *.DLL, or
source code that would perfom the compression?

All help is appreciated.

Best regards,
Michael Vincze
mav@asd470.dseg.ti.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: mehran@monet.uwaterloo.ca (Mehran Farimani)
Subject: Re: DLL problem (using BC++/AF)
Organization: University of Waterloo
Date: Wed, 6 Jan 1993 10:17:03 GMT

In article <1993Jan5.212008.6162@msdhsv.ingr.com> ahmad@norooz.b17a.ingr.com writes:
>
>    BOOL FAR PASCAL MyFunction (char far *theString) /* this functions is */
>    {                                            /* exported in .DEF */
>         return 1;
>    }
>
>
>And the main executable source:
>
>    #include <owl.h>
>    int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
>                       LPSTR lpCmdLine, int nCmdShow)
>    {
>        HINSTANCE DLLInstance;
>        BOOL FAR (*MyFunctionFunc)(char far  *theString);

If this is not a typo in your posting, then the problem is that you should
declare lpfnMyFunction as BOOL FAR PASCAL (*lpfnMyFunction) (...) (you're
missing the pascal part). To avoid these mistakes, you can use the CALLBACK
typedef for declaring your functions. So, in your DLL you'd have

BOOL CALLBACK MyFunction (...)

and in your program you'd have

BOOL (CALLBACK *lpfnMyFunction) (...);

Hope this helps ...

Regards,

--Mehran
From: steveo@mel.dbce.csiro.au (Stephen Oakes)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Drawing on a dialog
Date: 11 Jan 93 21:22:33 GMT
Organization: CSIRO, Div. Building Constr. and Eng'ing, Melb., Australia

What you need to do is trap the WM_PAINT message for the dialog box, then
allow Windows to paint all the other controls, then paint your bitmap on
your special control.  There is an example of this in Petzold, but I don't 
have it here, so I can't look it up.

Look in the index under "dialog boxes, painting" or something.  If you don't
have it, I can look up some code for you.

(You certainly don't need any TIMER messages!)

--
| Stephen Oakes      CSIRO Division of Building, Construction and Engineering |
|                    Post Office Box 56, Highett, Victoria, Australia   3190  |
| Internet: steveo@mel.dbce.csiro.au  Tel: +61 3 252 6000 Fax: +61 3 252 6249 |
|_____________________________________________________________________________|
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
From: rekle@loligo.cc.fsu.edu (Rick Ekle (CompSci))
Subject: Creating custom messages in Windows 3.1
Summary: How do I create a new Windows message unique to my program, 
         register it with Windows, and call it from within my program.
Organization: Florida State University Computing Center
Distribution: na world
Date: Thu, 7 Jan 93 04:07:19 GMT

I was thinking the other day:

Is this possible?  I would like to create a custom message and call it
from within my program.  i.e.

#define WM_MYNEWMESSAGE <integer value>

// ...later in the windows procedure:
long FAR PASCAL _export WndProc(HWND hwnd, UINT message, UINT wParam, 
                                LONG lParam)
{
  int counter=10;
  switch (message)
  {
    case WM_MYNEWMESSAGE:
      // This case statement is basically the body of a simple for loop.
      // The body of this statement is executed counter number of times.
   
      // Print a message to screen
      --count;
      if ( count != 0 )
        SendMessage(hwnd,WM_MYNEWMESSAGE,0,0L);
      return 0;
    default:  // Pass message to DefWindowProc
  }
}

I figured that this technique would be usefull in performing long loops
without tying up Windows in one program...  Other programs get to run and
the loop still executes.

Is this even possible?

--
/---------------------------------------------------------------------------\
| Rick Ekle | rekle@loligo.cc.fsu.edu | Birth, School, Work, Death.         |
|---------------------------------------------------------------------------|
| "I survived Hurricane Andrew." | This Space For Rent | FSU #1!!!          |
\---------------------------------------------------------------------------/
From: adams@zurich.ai.mit.edu (Stephen Adams)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Menus in other places?
Date: 8 Jan 93 13:41:22
Organization: M.I.T. Artificial Intelligence Lab.
NNTP-Posting-Host: klosters.ai.mit.edu

Is it possible to make a window have several menus that are
not submenus of the window's main menu?  I know that I can
do popup menus at any time but I would like my window to
display the menus at all times.  I realise that perhaps I
should be using a toolbar or arrangement of buttons but I
need the extra menus to look like ordinary menus, but
perhaps vertically aligned too.

Thanks,
Stephen
From: tim@ipmce.su (Dmitry Ye. Kolosov)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Borland "BorDlg" button problem
Date: 11 Jan 93 10:52:07 GMT
Reply-To: tim@ipmce.su
Distribution: comp.os.ms-windows.programmer.misc
Organization: Inst. of Prec. Mech. & Comp. Equip., Moscow, Russia

In comp.os.ms-windows.programmer.misc article
    <LOUIS.93Jan8221009@obelix.newshost.uwo.ca> Chan Louis writes:

>	I am using Borland C++ 3.1 with the Dialog class BorDlg, which is 
>the Borland Window Custom Controls.  I know how to create those Ok, Cancel
>nice looking Custom Control buttons.  My problem is that I also
>want to create the same bitmmaped buttons (New, Change, Delte) as in the
>Resource Workshop.  Is there a way to create those buttons as creating
>those OK, Cancel buttons ?

Did you try looking at the file named MANUAL.RW in your BC/DOC
directory? It lists the predefined button controls:
OK, Cancel, Abort, Retry, Ignore, Yes, No.
The file BWCCAPI.RW gives you guidelines to create new buttons.
The summary follows:
 - Add new Button from tools palette ( that with no OK in it ).
 - Note its Control ID
 - Add 3 bitmaps to your resource with ID + 1000, 3000, 5000
   for normal, pressed and focused VGA-resolution images.
 - The next time you edit dialogue the buttons will have the look
   you want.

Hope this helps.
   Dmitry - tim@ipmce.su
Newsgroups: comp.os.ms-windows.programmer.misc
From: misha@abacus.uucp ( MISHA GLOUBERMAN )
Subject: How to get option buttons out of VB Tab order?
Organization: Cicma, Concordia University, Montreal, Quebec
Date: Sat, 9 Jan 1993 07:19:27 GMT

Does anyone know of a way to remove option buttons from the Tab
order in VB 2.0 pro? Even if you set the TabStop property
to False, Tab still lands the focus on whichever button has
the TRUE value.
 
Is there some not-too-awkward workaround for this?
From: echi@cisco.com (Eric P. Chi)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Window programming book for beginner
Date: 6 Jan 1993 22:54:14 GMT
Organization: cisco Systems, Inc., Menlo Park, Ca.
Distribution: us
NNTP-Posting-Host: echi-ss2.cisco.com


HI, Could someone suggest a few book for Windows programming in either C or
C++? Or could someone point me a FAQ covering this?

Thanks,

Eric.

Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Windows 3.1 LZEXPAND DLL 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Wed, 6 Jan 1993 20:18:55 +0000

In article <1993Jan5.224307.11862@mksol.dseg.ti.com> mavmav@mksol.dseg.ti.com writes:

>With windows 3.1 there is an included LZEXPAND.DLL.  I know that you can use
>this DLL in place of the DOS EXPAND.EXE.  My question though is how do you get
>a file in the compressed form to start off with?  I realize that there is a
>DOS COMPRESS.EXE, however I did not receive this program with any of my DOS
>software.  I suspect that you get one with the Windows SDK, however I program
>with Turbo Pascal for Windows and do not have the SDK.  Could someone please
>inform me how I can obtain a copy of COMPRESS.EXE, or better yet a *.DLL, or
>source code that would perfom the compression?
>
>All help is appreciated.
>
>Best regards,
>Michael Vincze
>mav@asd470.dseg.ti.com
>

You're right.  COMPRESS.EXE comes with the SDK.  It actually forms a part
of the Microsoft Setup ToolKit, since its main purpose is, of course, in
installation programs.

As to how you can get it - I'm afraid I can't help you there.  You could
try asking Borland if they can supply it.

-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
From: deitsch@sol.crd.ge.com (Andy Deitsch)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Debugging Windows Apps
Date: 12 Jan 93 15:17:33 GMT
Reply-To: deitsch@sol.crd.ge.com
Organization: GE Research & Development

This has probably been mentioned before, but I haven't seen an FAQ for
this list so I'll have to ask.

How do you go about debugging an application when you get a 'Protection
Violation Error'?  I have no idea what is causing my problem and don't
know where to start.

I also haven't been able to get my Turbo Debugger for Windows to work.
When I try to load it, the cursor disappears and Windows locks.  Any
ideas?

-- 
_________________________________________________________________________
Andy Deitsch                             email    : deitsch@crd.ge.com  
GE Corporate Research & Development      phone    : (518) 387-7207   
Schenectday, NY 12301                    dial comm: 833-7207     
Newsgroups: comp.os.ms-windows.programmer.misc
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: Menu Problem
Organization: Compaq Computer Corp.
Date: Fri, 8 Jan 1993 14:52:48 GMT

In article <1ij6qmINN3hr@matt.ksu.ksu.edu> lssong@matt.ksu.ksu.edu (Livingstone Song) writes:
>Is there a way to find when the menu gets the focus?
>
>What's the easiest way implement a code that will tell
>me which menu item is currently being highlited either
>by the mouse or keyboard.
>

Look at WM_MENUSELECT and WM_MENUINIT.  Those two messages should tell
you all you need to know.


--
Ed McCreary                                               ,__o
mccreary@sword.eng.hou.compaq.com                       _-\_<,
"If it were not for laughter, there would be no Tao."  (*)/'(*)
From: pbh@prjup.mi.org (Patrick B. Haggood)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.tools
Subject: Good book for 3D graphics in Windows?
Date: Tue, 12 Jan 93 19:53:49 -0800
Organization: Project: JUPITER Scientific Software

I was at the bookstore today looking for a tome on 3d graphics in
Windows using C++ (not specializing, am I?) and was wondering:
can books on DOS 3D programming be useful in Windows?  I was looking
at Steven's Advanced 3D Graphics and Adams Supercharged Graphics in 
C++, but neither really struck me as "the One".  

Anyone have any good experiences with these books or can you recommend
another book?

-- 
Patrick B. Haggood  pbh@prjup.mi.org   	| Wayne State University Physics
Project: JUPITER Scientific Software	| REDUCE COMPLEXITY - RECYCLE CODE
John Birks (Dizzy) Gillespie 1917-1993  | Dawn breaks in Tunisia....
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: how to convert (C,M,Y) colours to (R,G,B)?
Organization: Energy, Mines, and Resources, Ottawa
Date: Thu, 7 Jan 1993 21:16:24 GMT

I have several (C,M,Y) colour palettes that we use in UNIRAS graphics
on the VAX that I want to convert to (R,G,B) palettes for use in Windows.
Can anyone supply the algorithms to convert between these 2 colour
systems.  I have code to convert between (H,L,S) and (R,G,B).
I think the relationship between CMY and RGB is quite simple, because
CMY is subtractive and RGB is additive.
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: kevin@iti.gov.sg (Kevin Patt (SE))
Subject: Re: BC++ "BorDlg" problem
Organization: National Computer Board, Singapore
Distribution: na
Date: Wed, 13 Jan 1993 01:55:26 GMT

deitsch@sol.crd.ge.com (Andy Deitsch) writes:

>c2s4027@tamsun.tamu.edu (Cedric Sims) writes:

>>  You need to link the following libraries :
>>
>>       IMPORT.LIB
>>       BWCC.LIB
>>
>>  They must be linked in that order! Very important.


>Hmm, I only link BWCC.LIB and it seems to work fine.  What does import.lib
>do and will it cause problems later if I don't link with it?

>-- 
>_________________________________________________________________________
>Andy Deitsch                             email    : deitsch@crd.ge.com  
>GE Corporate Research & Development      phone    : (518) 387-7207   
>Schenectday, NY 12301                    dial comm: 833-7207     

Actually the IMPORT.LIB is linked for you by the BC++ 3.1 compiler.  If my
memory serves me right, it contains all the DLL functions calls for Windows.


-- 
Kevin Patt                                     Information Technology Institute
Associate Member of Technical Staff            Singapore 
Email: (Internet) kevin@iti.gov.sg             Tel: (65) 772-0471 
       (BITNet)   kevinpatt@itivax.bitnet      Fax: (65) 779-5966        
Newsgroups: comp.os.ms-windows.programmer.misc
From: jas37876@uxa.cso.uiuc.edu (John A. Slagel)
Subject: Disp 24bpp on 8bpp system?
Organization: University of Illinois at Urbana
Date: Fri, 8 Jan 1993 22:47:43 GMT

    Is there anyway to display a 24bpp DIB on a 256 color SVGA without
    implementing the code for color quantization?  I wrote some code to
    convert 24bpp images into 8bpp DIBs, but it takes around 10 seconds
    for a 512x512 DIB, and I just wonder if there is a better way.

    I did try using SetDIBitsToDevice, but the picture only uses the 20
    system colors to draw the 24bpp DIB.  The result is pretty nasty looking.

    So, I would be intereseted in hearing how other people got around the
    problem of using 24bpp DIBs on a 256 color system.  Thanks!

-- 
-----------------------------------------------------------------------------
 John A. Slagel              "My old man used to tell me, before he left this
 j-slagel1@uiuc.edu           shitty world, never chase buses or women- you
 (217) 337-7930               always get left behind." -The Marlboro Man
Newsgroups: comp.os.ms-windows.programmer.misc
From: hill@netcom.com (Tom Hill)
Subject: Re: Calling C from VB--Debug??
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Tue, 5 Jan 1993 06:57:03 GMT

In article <1993Jan5.003744.19694@hplabsz.hpl.hp.com> yefchak@hplabsz.hpl.hp.com (George Yefchak) writes:
>I'm using Microsoft QuickC to write DLL's which I call from Visual
>Basic 2.0.  Is there a way to do source-level debugging in the C
>code after it's called from VB?  (Yes, I've already used the debugger
>from within QuickC by having a little main() routine call the DLL
>from C, but now that that worked I'm having problems getting VB to
>call it correctly, and I thought having the debugger alive might
>help.)

Try softice/w from NuMega, it seems to be able to debug most anything 
at a source level, including DLLs and VxDs.

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