CButton *pButton; pButton = new CButton; //OnInitialUpdate() pButton->Create("&Sub",WS_VISIBLE,CRect(782,682,806,716),this,0x302);
// resource.h #define IDC_YOUR_BTN 0x302 // yourview.cpp BEGIN_MESSAGE_MAP(CYourView, CBaseOfYourView) ON_COMMAND(IDC_YOUR_BTN, OnYourButtonClick) ... END_MESSAGE_MAP() ... /*afx_msg*/ void CYourView::OnYourButtonClick() { /* wir are inside :) */ }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)