HowTo.txt in BitMapToolBar.rar


Toolbar with pictures, can change the interface Oh! Oh very beautiful!...Original Link
    Sponsored links

			
ToolBarEx:

I tried to make a simple toolbar class that allows to set a bitmap in the backgroud of a toolbar.
It is not as successfull as the BCGControl lib but that's a begining...

Some improvements could be made; for example, hot image is not used.
The process also ficker a little when clicking a button...
The class should also be modified to Load the background only once to update only the buttons rect.


* Create the toolbar as usual:

if (!myToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
		| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC, DB_BITMAP_TAHITI, IDB_BITMAP_TOOLBAR, 9, false) ||
		!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
	TRACE0("Failed to create toolbar\n");
	return -1;      // fail to create
}

DB_BITMAP_TAHITI = id of the background bi			

			...
			...
			... to be continued.

  This is a preview. To get the complete source file, 
  please click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 0423etahiti.bmp17.93 kB16-04-02 20:55
 <Debug>0.00 B18-05-07 15:26
 AfxCore.rtf44.11 kB12-04-02 12:12
 AppExit.bmp2.21 kB12-04-02 12:12
 Bullet.bmp142.00 B12-04-02 12:12
 CurArw2.bmp310.00 B12-04-02 12:12
 CurArw4.bmp566.00 B12-04-02 12:12
 CurHelp.bmp502.00 B12-04-02 12:12
 EditCopy.bmp502.00 B12-04-02 12:12
 EditCut.bmp502.00 B12-04-02 12:12
 EditPast.bmp502.00 B12-04-02 12:12
 EditUndo.bmp502.00 B12-04-02 12:12
 FileNew.bmp566.00 B12-04-02 12:12
 FileOpen.bmp566.00 B12-04-02 12:12
 FilePrnt.bmp502.00 B12-04-02 12:12
 FileSave.bmp502.00 B12-04-02 12:12
 HlpSBar.bmp6.99 kB12-04-02 12:12
 HlpTBar.bmp2.30 kB12-04-02 12:12
 RecFirst.bmp502.00 B12-04-02 12:12
 RecLast.bmp502.00 B12-04-02 12:12
 RecNext.bmp502.00 B12-04-02 12:12
 RecPrev.bmp502.00 B12-04-02 12:12
 Scmax.bmp502.00 B12-04-02 12:12
 ScMenu.bmp2.08 kB12-04-02 12:12
 Scmin.bmp502.00 B12-04-02 12:12
 TestToolBar.cnt244.00 B12-04-02 12:12
 TESTTOOLBAR.HLP33.87 kB20-09-06 09:33
 TestToolBar.hm335.00 B17-04-02 22:25
 TestToolBar.hpj2.30 kB12-04-02 12:12
 TestToolBar.LOG4.84 kB20-09-06 09:33
 TestToolBar.ph2.59 kB12-04-02 12:12
 <hlp>0.00 B17-04-02 22:25
 HowTo.txt1.61 kB18-04-02 01:00
 MainFrm.cpp2.81 kB18-04-02 01:08
 MainFrm.h1.43 kB16-04-02 21:54
 MakeHelp.bat1.48 kB12-04-02 12:12
 PictureWindow.h4.04 kB12-04-02 14:21
 ReadMe.txt4.80 kB12-04-02 12:12
 TestToolBar.ico1.05 kB12-04-02 12:12
 TestToolBar.rc2403.00 B12-04-02 12:12
 TestToolBarDoc.ico1.05 kB12-04-02 12:12
 Toolbar.bmp2.45 kB16-04-02 01:06
 <res>0.00 B16-04-02 01:06
 resource.h778.00 B16-04-02 20:49
 StdAfx.cpp213.00 B12-04-02 12:12
 StdAfx.h1.03 kB12-04-02 12:12
 STONE.BMP33.37 kB12-04-02 12:46
 TestToolBar.clw3.93 kB18-04-02 00:46
 TestToolBar.cpp4.11 kB12-04-02 12:12
 TestToolBar.dsp10.54 kB16-04-02 20:47
 TestToolBar.dsw545.00 B12-04-02 12:12
 TestToolBar.h1.38 kB12-04-02 12:12
 TestToolBar.ncb73.00 kB10-04-08 14:30
 TestToolBar.opt47.50 kB10-04-08 14:30
 TestToolBar.plg2.66 kB20-09-06 09:33
 TestToolBar.rc12.82 kB16-04-02 20:51
 TestToolBarDoc.cpp1.80 kB12-04-02 12:12
 TestToolBarDoc.h1.49 kB12-04-02 12:12
 TestToolBarView.cpp2.25 kB12-04-02 12:12
 TestToolBarView.h1.98 kB12-04-02 12:12
 Toolbar.bmp1.17 kB16-04-02 17:24
 ToolBarEx.cpp10.22 kB18-04-02 01:10
 ToolBarEx.h2.64 kB18-04-02 01:07
 <BitMapToolBar>0.00 B10-04-08 14:30
...

Related Items

    Sponsored links