home *** CD-ROM | disk | FTP | other *** search
/ Media Share 13 / mediashare_13.zip / mediashare_13 / ZIPPED / PROGRAM / TBIWIN12.ZIP / TBIWIN.DOC < prev    next >
Text File  |  1992-12-15  |  3KB  |  119 lines

  1. TBIWindow Ver. 1.2 (c) Copyright Casper Pedersen  1992
  2. You must use this source code, but please do not changed is it, if
  3. you distribute it to other programmers.
  4.  
  5. NOTE
  6. The TBIWindow will might not work under Win30, that is because I
  7. use WM_WINDOWPOSCHANGED, which first was implemented in Win31.
  8.  
  9. If any questions or idears write to
  10.  
  11. Casper Pedersen
  12. P. Knudsensvej 14, 3, V. 11.
  13. DK-8900  Randers
  14. Denmark
  15.  
  16. Hey, I need a job - if you know of any you need a C/C++ programmer
  17. please contact me, I am willing to move to allmost anywhere execpt
  18. for Siberia.
  19.  
  20. Window with bitmap buttons in the caption bar like
  21. in the Borland TBrowse.DLL.
  22.  
  23. All virtual functions except from void ButtonActivated(void)
  24. must call their parents:
  25. myclass::wmncmovemouse(RTMessage Msg)
  26. {
  27.   TBIWindow::WMNCMoveMouse(Msg)
  28.   /* some stuff in here */
  29. }
  30.  
  31. This is because I'm using allmose all WM_NC..  messages, and many others.
  32.  
  33. The button Message can be retrived in two ways:
  34.  
  35. 1.
  36.  
  37. Use ButtonActive(), and ask on (UINT)ActiveButton, or
  38.  
  39. 2.
  40.  
  41. virtual void ... (RTMessage Msg) = [CM_FIRST + ResourceID]
  42.  
  43. wParam = ResourceID
  44. lParam = 0;
  45.  
  46. To add buttons use BOOL AddButton(UINT ResourceID);
  47. the bitmap id's in the Resource file are:
  48.  
  49. Unactive bitmap id = ResourceID + 10000
  50. Activated bitmap id = ResourceID + 30000
  51.  
  52. Both must be present.
  53.  
  54. Just like BWCC buttons.
  55.  
  56. Eventully look in WINDOW.CPP, TBIWIN.CPP, TBIWIN.H, WINDOW.RC,
  57. to recompile you must use BC++ 3.1, and Borland's Resource Compiler BRC.
  58. You must set the BRC resource compiler up in the Options|Transfer menu.
  59.  
  60. Program Title: Borland Resource Compiler
  61. Program Path:  BRC
  62. Command Line:  $RC
  63. Translator:    [x]
  64.  
  65. Select Ok or Update, save the project, and compile.
  66.  
  67. The idel size of the bitmaps is 19x18, or CaptionHight
  68. ( use GetSystemMetrics(SM_CYCAPTION) ) but I use StretcBit
  69. to diplay them, so it have no difference to make them in other sizes.
  70.  
  71. The idea came from one of my frinds, my advice is never listen to frinds,
  72. even if it's a good idea, I used alot of time and tobaco, to make this
  73. class. So if you use then please send me $10 for my work, I'll might
  74. give them to my bartender on my favorit pub, and then I hope he will
  75. poor me a pint of beer, and a scotch.
  76.  
  77. If you do so, I notice you when I develop new versions.
  78.  
  79.  
  80.  
  81. Version 1.0
  82. -----------
  83.  
  84. Only for internal use...
  85.  
  86. Version 1.1 - Aug - Sep. 1992:
  87. ------------------------------
  88.  
  89. Some bugs fixed, and distributed as FREEWARE with source
  90.  
  91.  
  92. Version 1.2 Dec. 1992: ( Latest version )
  93. ----------------------
  94.  
  95. Some bugs fixed.
  96.  
  97. Now you can place the Buttons either in the left or the right side
  98. of the caption bar.
  99.  
  100. That is done whith the constructor, the enum LEFTRIGHT can either
  101. be LEFT or RIGTH.
  102.  
  103.  
  104. Further versions:
  105. -----------------
  106.  
  107. I might make it possible to react on:
  108.  
  109.   LBUTTON_DOWN and not on button
  110.   LBUTTON_UP and not on button
  111.  
  112. and to react on the right button, but only if there are some reactions.
  113.  
  114. ---------
  115. End File
  116. ---------
  117.  
  118.  
  119.