Re: SetWindowPos in tabbed control
Also I would make the dialogs children of the tab instead of the dialog.
That way your SetWindowPos calls would be in relation to the tab control
itself rather than the main dialog. It also keeps from drawing problems
when the dialog is repainting it's children, you don't want the tab control
to all of a sudden showup on top of it's child dialog.
dlg1.Create(CDialog1::IDD,&m_wndtab);
AliR.
"Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp> wrote in message
news:%23GNkHZMcHHA.4720@TK2MSFTNGP04.phx.gbl...
kunal s patel wrote:
Also OnTcnSelchangeTab1 handler calls Update. So basically what i am
trying to do in update is to get tab area, then get the current selected
tab and based on that set the position of window of dlg1 so that it fits
the tab control area. But i am not sure why is it not working.
Basically i want the dialog boxes dlg1 and dlg2 fit the tab control area.
But i am not sure how do i go about it??
Thanks
kunal
Check out CTabCtrl::AdjustRect
--
Scott McPhillips [VC++ MVP]