From df03213660361b1c771f0a3f21b6ddaeaef7763a Mon Sep 17 00:00:00 2001 From: QuakeGod <quakegod@sina.com> Date: 星期二, 05 九月 2023 11:44:52 +0800 Subject: [PATCH] add ladder to prog 1 --- MTerm1/CMyFuncKeyToolBar.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MTerm1/CMyFuncKeyToolBar.cpp b/MTerm1/CMyFuncKeyToolBar.cpp index 8b3c4d5..4f35c89 100644 --- a/MTerm1/CMyFuncKeyToolBar.cpp +++ b/MTerm1/CMyFuncKeyToolBar.cpp @@ -4,7 +4,7 @@ ON_WM_CREATE() ON_WM_SIZE() END_MESSAGE_MAP() - +/* structButton myButtons[] = { {33001,_T("11") }, @@ -21,14 +21,14 @@ {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); -- Gitblit v1.9.1