home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / tools / 940 < prev    next >
Encoding:
Internet Message Format  |  1992-09-12  |  2.4 KB

  1. From: sqe@hpcc01.corp.hp.com (Sam Espartero)
  2. Date: Fri, 11 Sep 1992 22:49:41 GMT
  3. Subject: Re: Question On Using Borland Custom Controls
  4. Message-ID: <70560002@hpcc01.corp.hp.com>
  5. Organization: the HP Corporate notes server
  6. Path: sparky!uunet!wupost!sdd.hp.com!scd.hp.com!hplextra!hpcc05!hpcc01!sqe
  7. Newsgroups: comp.os.ms-windows.programmer.tools
  8. References: <1992Sep10.080122.20960@nuscc.nus.sg>
  9. Lines: 58
  10.  
  11. This is a copy of my returned mail.
  12.  
  13. #
  14. #/ hpcc01:comp.os.ms-windows.programmer.tools / scstech@solomon.technet.sg (Arthur Lim) /  1:01 am  Sep 10, 1992 /
  15. #Hi,
  16. #
  17. #I posted this query a couple of weeks ago and I don't seem to get any
  18. #reply (Maybe it got lost somewhere in the net :>). So here goes again.
  19. #
  20. #I saw that in Borland's C++ 3.1, there are a couple of custom controls
  21. #which I think are rather neat ( 3-D Shaded Box, etc ) which I would like
  22. #to use in building my Win 3.1 applications. However, due to certain
  23. #constrains and project requirements, I had to use MS C7 for development.
  24. #
  25. #The QUESTION is "Can I make use of these custom controls in MSC or is
  26. #there another way out?"
  27.  
  28.     Yes you can! You may not be able to integrate BWCC.DLL with the
  29. MSC Dialog Editor but you can manually modify the dialog file and use
  30. appropriate BwCC control classes and styles.
  31.  
  32.     After that, include bwcc.h in your header file and then add
  33. bwcc.lib to your link options. Also make sure bwcc.dll can be found in
  34. the current directory when the app starts or in the path.
  35.  
  36. Examples: link options
  37.  
  38.     /align:16 /NOD PLAYCD USERCODE MCICDA SUPERCLS ,PLAYCD.EXE ,, LIBW MLIBCEW bwcc mmsystem, PLAYCD.DEF
  39.  
  40. Examples: dialog file
  41.  
  42. ABOUT DIALOG  4,5,199,137
  43. STYLE WS_POPUPWINDOW | DS_MODALFRAME | WS_VISIBLE | WS_CLIPSIBLINGS | WS_DLGFRAM
  44. E
  45. CAPTION "Home-Brew CD Player"
  46. CLASS "BorDlg"
  47. FONT 8,"Helv"
  48. BEGIN
  49.     CONTROL "",100,"Static",SS_ICON | WS_CHILD | WS_VISIBLE,5,16,16,16
  50.     CONTROL "",-1,"BorShade",WS_CHILD | WS_BORDER,33,6,161,126
  51. .....
  52.     CONTROL "",IDOK,"BorBtn",BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD,154,9,32,2
  53. 0
  54. END
  55.  
  56. Examples: message box
  57.  
  58. #ifdef BWCC
  59.                 BWCCMessageBox(GetActiveWindow(), "Unknown MCI Error!", "MCI Error", MB_OK | MB_ICONHAND);
  60. #else
  61.                 MessageBox(GetActiveWindow(), "Unknown MCI Error!", "MCI Error",MB_OK | MB_ICONHAND);
  62. #endif
  63.  
  64. - Sam (speaking for himself) Espartero -
  65. Hewlett-Packard, CAIS
  66. 3000 Hanover St, M/S 20BJ
  67. Palo Alto, CA. 94304
  68. sqe@corp.hp.com
  69.