home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
PROGRAM
/
TBIWIN12.ZIP
/
TBIWIN.DOC
< prev
next >
Wrap
Text File
|
1992-12-15
|
3KB
|
119 lines
TBIWindow Ver. 1.2 (c) Copyright Casper Pedersen 1992
You must use this source code, but please do not changed is it, if
you distribute it to other programmers.
NOTE
The TBIWindow will might not work under Win30, that is because I
use WM_WINDOWPOSCHANGED, which first was implemented in Win31.
If any questions or idears write to
Casper Pedersen
P. Knudsensvej 14, 3, V. 11.
DK-8900 Randers
Denmark
Hey, I need a job - if you know of any you need a C/C++ programmer
please contact me, I am willing to move to allmost anywhere execpt
for Siberia.
Window with bitmap buttons in the caption bar like
in the Borland TBrowse.DLL.
All virtual functions except from void ButtonActivated(void)
must call their parents:
myclass::wmncmovemouse(RTMessage Msg)
{
TBIWindow::WMNCMoveMouse(Msg)
/* some stuff in here */
}
This is because I'm using allmose all WM_NC.. messages, and many others.
The button Message can be retrived in two ways:
1.
Use ButtonActive(), and ask on (UINT)ActiveButton, or
2.
virtual void ... (RTMessage Msg) = [CM_FIRST + ResourceID]
wParam = ResourceID
lParam = 0;
To add buttons use BOOL AddButton(UINT ResourceID);
the bitmap id's in the Resource file are:
Unactive bitmap id = ResourceID + 10000
Activated bitmap id = ResourceID + 30000
Both must be present.
Just like BWCC buttons.
Eventully look in WINDOW.CPP, TBIWIN.CPP, TBIWIN.H, WINDOW.RC,
to recompile you must use BC++ 3.1, and Borland's Resource Compiler BRC.
You must set the BRC resource compiler up in the Options|Transfer menu.
Program Title: Borland Resource Compiler
Program Path: BRC
Command Line: $RC
Translator: [x]
Select Ok or Update, save the project, and compile.
The idel size of the bitmaps is 19x18, or CaptionHight
( use GetSystemMetrics(SM_CYCAPTION) ) but I use StretcBit
to diplay them, so it have no difference to make them in other sizes.
The idea came from one of my frinds, my advice is never listen to frinds,
even if it's a good idea, I used alot of time and tobaco, to make this
class. So if you use then please send me $10 for my work, I'll might
give them to my bartender on my favorit pub, and then I hope he will
poor me a pint of beer, and a scotch.
If you do so, I notice you when I develop new versions.
Version 1.0
-----------
Only for internal use...
Version 1.1 - Aug - Sep. 1992:
------------------------------
Some bugs fixed, and distributed as FREEWARE with source
Version 1.2 Dec. 1992: ( Latest version )
----------------------
Some bugs fixed.
Now you can place the Buttons either in the left or the right side
of the caption bar.
That is done whith the constructor, the enum LEFTRIGHT can either
be LEFT or RIGTH.
Further versions:
-----------------
I might make it possible to react on:
LBUTTON_DOWN and not on button
LBUTTON_UP and not on button
and to react on the right button, but only if there are some reactions.
---------
End File
---------