CodeForge.comFree Open Source Codes Forge and Sharing |
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.
| Name | Size | Date |
| 17.93 kB | 16-04-02 20:55 | |
| 0.00 B | 18-05-07 15:26 | |
| 44.11 kB | 12-04-02 12:12 | |
| 2.21 kB | 12-04-02 12:12 | |
| 142.00 B | 12-04-02 12:12 | |
| 310.00 B | 12-04-02 12:12 | |
| 566.00 B | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 566.00 B | 12-04-02 12:12 | |
| 566.00 B | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 6.99 kB | 12-04-02 12:12 | |
| 2.30 kB | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 2.08 kB | 12-04-02 12:12 | |
| 502.00 B | 12-04-02 12:12 | |
| 244.00 B | 12-04-02 12:12 | |
| 33.87 kB | 20-09-06 09:33 | |
| 335.00 B | 17-04-02 22:25 | |
| 2.30 kB | 12-04-02 12:12 | |
| 4.84 kB | 20-09-06 09:33 | |
| 2.59 kB | 12-04-02 12:12 | |
| 0.00 B | 17-04-02 22:25 | |
| 1.61 kB | 18-04-02 01:00 | |
| 2.81 kB | 18-04-02 01:08 | |
| 1.43 kB | 16-04-02 21:54 | |
| 1.48 kB | 12-04-02 12:12 | |
| 4.04 kB | 12-04-02 14:21 | |
| 4.80 kB | 12-04-02 12:12 | |
| 1.05 kB | 12-04-02 12:12 | |
| 403.00 B | 12-04-02 12:12 | |
| 1.05 kB | 12-04-02 12:12 | |
| 2.45 kB | 16-04-02 01:06 | |
| 0.00 B | 16-04-02 01:06 | |
| 778.00 B | 16-04-02 20:49 | |
| 213.00 B | 12-04-02 12:12 | |
| 1.03 kB | 12-04-02 12:12 | |
| 33.37 kB | 12-04-02 12:46 | |
| 3.93 kB | 18-04-02 00:46 | |
| 4.11 kB | 12-04-02 12:12 | |
| 10.54 kB | 16-04-02 20:47 | |
| 545.00 B | 12-04-02 12:12 | |
| 1.38 kB | 12-04-02 12:12 | |
| 73.00 kB | 10-04-08 14:30 | |
| 47.50 kB | 10-04-08 14:30 | |
| 2.66 kB | 20-09-06 09:33 | |
| 12.82 kB | 16-04-02 20:51 | |
| 1.80 kB | 12-04-02 12:12 | |
| 1.49 kB | 12-04-02 12:12 | |
| 2.25 kB | 12-04-02 12:12 | |
| 1.98 kB | 12-04-02 12:12 | |
| 1.17 kB | 16-04-02 17:24 | |
| 10.22 kB | 18-04-02 01:10 | |
| 2.64 kB | 18-04-02 01:07 | |
| 0.00 B | 10-04-08 14:30 |