Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I am running my application on WCE emulator 5.0 to show the Page Setup Dialog box which is in eVC++ but it does not show the Page Setup Dialog Box on executing PageSetupDlg(). It always returns 0. I have passed necessary parameters to PAGESETUPDLG structure.
My code is......

m_psd = (LPPAGESETUPDLG)new PAGESETUPDLG; 
if(m_psd)
ZeroMemory(m_psd, sizeof(PAGESETUPDLG));
m_psd->hwndOwner = m_hWnd;
m_psd->lStructSize = sizeof(PAGESETUPDLG);
m_psd->Flags = PSD_INHUNDREDTHSOFMILLIMETERS | PSD_DISABLEMARGINS;
int result = PageSetupDlg(m_psd);


But result have always 0.
I am new...Please help.
Posted
Updated 1-Jul-10 3:44am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900