home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4775 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  3.0 KB

  1. From: defaria@hpcuhe.cup.hp.com (Andy DeFaria)
  2. Date: Fri, 8 Jan 1993 21:20:53 GMT
  3. Subject: Help needed with BC++ 3.0 Windows Programming without OWL
  4. Message-ID: <115310001@hpcuhe.cup.hp.com>
  5. Organization: Hewlett Packard, Cupertino
  6. 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
  7. Newsgroups: comp.os.ms-windows.programmer.misc
  8. Lines: 50
  9.  
  10. OK I give up.  I have been trying to learn how to program MS Windows using
  11. Borland C++ 3.0 *without* Application Frameworks.  Coming from X/Motif
  12. programming, it appears to me that programming without some sort of class
  13. library such as Borlands Object Windows Library (OWL or <owl.h>.  This is part
  14. of Application Frameworks right?) is akin to programming raw Xlib.  Using OWL
  15. is sorta like using Xt/Motif.  Well I'm working on getting Borland C++ 3.1
  16. *with* Application Frameworks but until then I gotta use just straight MS
  17. Window calls.
  18.  
  19. I've made a lot of progress doing so.  I have my application up and *looking*
  20. pretty good but it isn't *doing* anything really useful yet.  I have learned
  21. how to create windows, child windows, dialog boxes, buttons, how to get the
  22. icon image right, etc.  But the questions about how to do this or that are
  23. coming fast and furious.  I try to resolve them myself but sometimes I just
  24. get stuck.  Perhaps these are FAQ and if I could be pointed to the right place
  25. it would be helpful.  I bought a book (cost me ~$43 too!) that was
  26. specifically oriented toward Borland C++ 3.1 and had some stuff about raw MS
  27. Window calls.  Indeed it has a complete function reference.  But after giving
  28. some trivial examples of raw MS Window calls it goes on to describe OWL.
  29.  
  30. Anyways, here are the problems that I haven't been able to resolve and really
  31. need answered inorder to get my program doing anything useful.
  32.  
  33.         How do I write get or set text into a child window?  My application
  34.         presents a form-like window that has child windows that are TEXT
  35.         input boxes.  I cannot figure out how to put/get text into or out of
  36.         these child windows.
  37.  
  38.         How does one put text into a dialog box?  I want to do a familiar "Are
  39.         you sure you want to delete 'thing being deleted'" type of dialog.  I
  40.         need to construct the message string for the dialog box but I don't
  41.         know how to do that.
  42.  
  43.         How can one get an icon image or a bmp into a button?
  44.  
  45.         I tried making what would be called a staticTextWidget in X but it's
  46.         color is wrong.  I want the color for a staticTextWiget to be the
  47.         application's background color, not a TEXT boxes' input color.
  48.  
  49.         How would I change the input editing semantics of these text input
  50.         areas to be as I specify.  I like emacs type editing.  I get this
  51.         easily in X via translation table and like to implement this in my
  52.         program.
  53.  
  54. And a non window related one:
  55.  
  56.         How does one talk to a modem and dial a number like CARDFILE or
  57.         TERMINAL does?
  58.  
  59.                                 Thanks much
  60.