//工具栏TBSTYLE_FLAT if (!m_wndToolBar.CreateEx(this, TBSTYLE_CUSTOMERASE, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC))//载入工具栏IDR_MAINFRAME { TRACE0("Failed to create toolbar window/n"); return -1; } SIZE szButton; szButton.cx = 24; szButton.cy = 24; SIZE szImage; szImage.cx = 17; szImage.cy = 16; m_wndToolBar.SetSizes(szButton, szImage); if (! m_wndToolBar.LoadBitmap(IDB_BITMAP_MENU)) { TRACE0("Failed to LoadBitmap/n"); return -1; } UINT arButtonCommandID[14]; arButtonCommandID[0] = ID_TDEV_IN; arButtonCommandID[1] = ID_TDEV_OUT; arButtonCommandID[2] = ID_TDEV_TEMPLATE; arButtonCommandID[3] = ID_SEPARATOR; arButtonCommandID[4] = ID_TDEV_MAINTAIN; arButtonCommandID[5] = ID_TDEV_DEL; arButtonCommandID[6] = ID_TSTART_CHECK; arButtonCommandID[7] = ID_SEPARATOR; arB