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