visual studio 2010 - Add control by code in CBasePropertyPage Dialog -
i'm writing first direct show filter, , works fine except when try create custom properties page filter.
i create 1 checkbox control foreach output pin available in filter.
hresult cactivatedeliveryprop::onactivate(void) { ... cwnd * pmywindow; pmywindow = cwnd::fromhandle(this->m_hwnd); // or may (this->m_dlg); ?? ... cbutton *chkoutputpin; chkoutputpin = new cbutton; chkoutputpin->create(_t("&my check") , ws_child | ws_visible | bs_autocheckbox , crect(10, itopposition, 140, 35),pmywindow, 0x11); }
- is correct way handle parent dialog?
update:
sorry, didn't express real problem well, wrote part of problem. don't have problem getting main parent form. problem when try add new checkbox control assertion , code doesn't work.
thanks all!
Comments
Post a Comment