home *** CD-ROM | disk | FTP | other *** search
- From: defaria@hpcuhe.cup.hp.com (Andy DeFaria)
- Date: Fri, 8 Jan 1993 21:20:53 GMT
- Subject: Help needed with BC++ 3.0 Windows Programming without OWL
- Message-ID: <115310001@hpcuhe.cup.hp.com>
- Organization: Hewlett Packard, Cupertino
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpcss01!hpcuhe!defaria@hpcuhe.cup.hp.com
- Newsgroups: comp.os.ms-windows.programmer.misc
- Lines: 50
-
- OK I give up. I have been trying to learn how to program MS Windows using
- Borland C++ 3.0 *without* Application Frameworks. Coming from X/Motif
- programming, it appears to me that programming without some sort of class
- library such as Borlands Object Windows Library (OWL or <owl.h>. This is part
- of Application Frameworks right?) is akin to programming raw Xlib. Using OWL
- is sorta like using Xt/Motif. Well I'm working on getting Borland C++ 3.1
- *with* Application Frameworks but until then I gotta use just straight MS
- Window calls.
-
- I've made a lot of progress doing so. I have my application up and *looking*
- pretty good but it isn't *doing* anything really useful yet. I have learned
- how to create windows, child windows, dialog boxes, buttons, how to get the
- icon image right, etc. But the questions about how to do this or that are
- coming fast and furious. I try to resolve them myself but sometimes I just
- get stuck. Perhaps these are FAQ and if I could be pointed to the right place
- it would be helpful. I bought a book (cost me ~$43 too!) that was
- specifically oriented toward Borland C++ 3.1 and had some stuff about raw MS
- Window calls. Indeed it has a complete function reference. But after giving
- some trivial examples of raw MS Window calls it goes on to describe OWL.
-
- Anyways, here are the problems that I haven't been able to resolve and really
- need answered inorder to get my program doing anything useful.
-
- How do I write get or set text into a child window? My application
- presents a form-like window that has child windows that are TEXT
- input boxes. I cannot figure out how to put/get text into or out of
- these child windows.
-
- How does one put text into a dialog box? I want to do a familiar "Are
- you sure you want to delete 'thing being deleted'" type of dialog. I
- need to construct the message string for the dialog box but I don't
- know how to do that.
-
- How can one get an icon image or a bmp into a button?
-
- I tried making what would be called a staticTextWidget in X but it's
- color is wrong. I want the color for a staticTextWiget to be the
- application's background color, not a TEXT boxes' input color.
-
- How would I change the input editing semantics of these text input
- areas to be as I specify. I like emacs type editing. I get this
- easily in X via translation table and like to implement this in my
- program.
-
- And a non window related one:
-
- How does one talk to a modem and dial a number like CARDFILE or
- TERMINAL does?
-
- Thanks much
-