Hi,
My application is dialog based application in which I want my dialog
to be occupying whole desktop area except the taskbar portion.
But I am not getting the desired result. It just having size which was
at the time of resource editing.
I have implemented following method.
BOOL CDiaDlg::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Add your specialized code here and/or call the base class
RECT rc;
SystemParametersInfo(SPI_GETWORKAREA, 0, &rc, 0);
cs.cx=rc.right-rc.left;
cs.cy=rc.bottom-rc.top;
cs.x=rc.left;
cs.y=rc.top;
return CDialog::PreCreateWindow(cs);
}
Please help
cric