| | |
| | | ON_WM_CREATE()
|
| | | ON_WM_SIZE()
|
| | | END_MESSAGE_MAP()
|
| | |
|
| | | /*
|
| | | structButton myButtons[] =
|
| | | {
|
| | | {33001,_T("11") },
|
| | |
| | | {33012,_T("112") },
|
| | | };
|
| | | static int myButtonCount = sizeof(myButtons) / sizeof(structButton);
|
| | |
|
| | | */
|
| | | int CMyFuncKeyToolBar::OnCreate(LPCREATESTRUCT lpCreateStruct)
|
| | | {
|
| | | if (CMFCToolBar::OnCreate(lpCreateStruct) == -1)
|
| | | return -1;
|
| | | CRect rect1(0, 0, 100, 24);
|
| | | // TODO: 在此添加您专用的创建代码
|
| | | m_buttons[1].Create(myButtons[1].sCaption,WS_CHILD | WS_TABSTOP | WS_VISIBLE |BS_PUSHBUTTON ,rect1, this, myButtons[1].nID);
|
| | | // m_buttons[1].Create(myButtons[1].sCaption,WS_CHILD | WS_TABSTOP | WS_VISIBLE |BS_PUSHBUTTON ,rect1, this, myButtons[1].nID);
|
| | |
|
| | | CRect rect0(0, 0, 500, 48);
|
| | | this->MoveWindow(rect0);
|