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. assertion

thanks all!


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -