Header
Product Comparison: USB I2C | USB SPI | USB GPIO
  • My Account
  • Shopping Cart
  • Products
  • My Account
  • About
  • Products
  • PC-I2C/SPI/GPIO Adapters
  • Main Page
  • Classes
  • Files
  • File List
  • File Members

D:/_sources/u2c_12/ControlPanel/MainToolBar.cpp

Go to the documentation of this file.
00001 // Copyright (C)2006 Diolan ( http://www.diolan.com )
00002 //
00003 // This program is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU General Public License
00005 // as published by the Free Software Foundation
00006 //
00007 // This program is distributed in the hope that it will be useful,
00008 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010 // GNU General Public License for more details.
00011 
00012 
00013 #include "stdafx.h"
00014 #include "controlpanel.h"
00015 #include "MainToolBar.h"
00016 
00017 #ifdef _DEBUG
00018 #define new DEBUG_NEW
00019 #undef THIS_FILE
00020 static char THIS_FILE[] = __FILE__;
00021 #endif
00022 
00024 // CMainToolBar
00025 
00026 CMainToolBar::CMainToolBar()
00027 {
00028 }
00029 
00030 CMainToolBar::~CMainToolBar()
00031 {
00032 }
00033 
00034 
00035 BOOL CMainToolBar::Create(CWnd* pParentWnd)
00036 {
00037         if (!CreateEx(pParentWnd, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
00038                 | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC)||
00039                 !LoadToolBar(IDR_MAINFRAME))
00040                 return FALSE;
00041         else
00042                 return TRUE;
00043 
00044 }
00045 
00046 BEGIN_MESSAGE_MAP(CMainToolBar, CToolBar)
00047         //{{AFX_MSG_MAP(CMainToolBar)
00048         //}}AFX_MSG_MAP
00049 END_MESSAGE_MAP()
00050 
00052 // CMainToolBar message handlers
00053 
00054 void CMainToolBar::Autoscroll(BOOL bEnable)
00055 {
00056         if (bEnable)
00057                 SetButtonInfo(9, ID_AUTOSCROLL, TBBS_BUTTON, 5);
00058         else
00059                 SetButtonInfo(9, ID_AUTOSCROLL, TBBS_BUTTON, 7);
00060 }
  • Products
  • PC-I2C/SPI/GPIO Adapters
  • Comparison
  • PC-I2C/SPI/GPIO Adapter DLN-1
  • USB-I2C/SPI/GPIO Adapter DLN-2
  • Multiprotocol Master DLN-4M
  • Multiprotocol Slave DLN-4S
  • Downloads
  • Software
  • Documentation
  • SW Tools & Examples
  • Development Boards
  • Open Source Projects
  • Discontinued Products
  • API Documentation
  • Downloads
  • SW Tools and Examples
footer top footer bottom
© Copyright Diolan 2006-2012