I read the CprintDialogEX Class in http://msdn.microsoft.com/en-us/library/3f1ccd1t(v=vs.71).aspx
I followed what it just said..I create a class(CPrinterDlg) and derive CPrintDialogEx. On another Class where CPrinterDlg is included I write this
CPrinterDlg l_PrintDlg(PD_PAGENUMS | PD_ALLPAGES | PD_SELECTION, NULL) ;
and call the DoModal function. The Print Dialog Showed but the Pages and Selection Radio Button are still disabled.
I tried using the m_pdex to set the flag(PD_PAGENUMS | PD_ALLPAGES | PD_SELECTION) but the Print Dialog Doesn't Show.
WHat should I do to Enable atleast the Pages radio button?
Please help me..
P.S. I'm using PrintDialogEx because PrintDialog doesn't permit printing range like "1,3,5,8", it's limited to something like "1 to 10".