c++ - CMFCStatusBar double click event -
how response cmfcstatusbar
double click event?
i have called m_statusbar.enablepanedoubleclick(true);
see example statusbardemo @ http://archive.msdn.microsoft.com/vcsamplesmfc
begin_message_map(cstatusbardemoview, cformview) on_command(id_indicator_label, onindicatorlabel) end_message_map() static uint indicators[] = { id_indicator_icon, // status icon id_separator, // status line indicator id_indicator_progress, // progress bar id_indicator_label, // text label id_indicator_animation, // animation pane id_indicator_caps, id_indicator_num, id_indicator_scrl, }; void cstatusbardemoview::oncreate() { m_wndstatusbar.create(this); m_wndstatusbar.setindicators(indicators, sizeof(indicators)/sizeof(uint))) } void cstatusbardemoview::onindicatorlabel() { messagebox(_t("status bar pane double-click...")); }
Comments
Post a Comment