shriya
asked on
Adding a New PushButton to CFileDialog
Can Some one post me a method to add a PushButton like example07b of david .j. kruglinski in vc++ 5.0
I did use GetParent method to get handle of IDOK but my new button which i created did not show in cfiledialog (dwStyle has WS_VISIBLE flag)
I did use GetParent method to get handle of IDOK but my new button which i created did not show in cfiledialog (dwStyle has WS_VISIBLE flag)
To add a control to standard dialog you must define your own dialog template. open comctl32.dlg as resources, find common dialog you want to use, copy it to your resources. Open dialog resource in resource editor, add control to the template.Add OFN_ENABLETEMPLATE flag to Flags field of m_ofn structure and specify template name in lpTemplateName field of this structure.
ASKER
Actually I wnted to add a push-Button at runtime without using Resource editor.
This was done by David Kruglinski in version 1.5
I tried the same but couldn't achieve it.
it need not be cFiledialog even
aboutDialog box would do(only I should do it without using resource editor.
This was done by David Kruglinski in version 1.5
I tried the same but couldn't achieve it.
it need not be cFiledialog even
aboutDialog box would do(only I should do it without using resource editor.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.