Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I improve control over the MS common dialog? 1

Status
Not open for further replies.
Chris,

Would you mind as to explain the line:

Code:
.olecontrol1.Flags = BITOR(0x4, 0x10, 0x200, 0x800, 0x1000, 0x8000, 0x40000, 0x80000)

in your code?

Thanks,

Jockey(2)
 

The use of the BITOR() function is an alternative to adding the desired constant values together to determine the .Flags value, which in turn determines the behaviour of the common dialog.

Documentation may be found here, and there may well be better documentation elsewhere.

It's relatively simple to change the behaviour of the common dialog by adding or removing parameters to suit.

Microsoft's use of CHR(0) as a delimiter is a potential 'gotcha' when parsing the folder/filenames list returned by the common dialog. At first glance you would be forgiven for assuming the filenames were separated by a space. [sad]

I have amended the FAQ with the additional information as above.


FAQ184-2483​
Chris [pc2]
PDFcommander.com
motrac.co.uk
 
Chris,
Thanks,
Jockey(2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top