Came across this fine MSDN documentation snippet at work:


Override this function only if you want to provide custom validation of filenames that are entered into a common file dialog box.

virtual BOOL OnFileNameOK( );

Return Value
1 if the filename is not a valid filename; otherwise 0.
Notice the return type, the function name and what value is returned if the filename is invalid.

2 Responses to “WTF”

  1. dmitryK Says:

    he-he! They have stolen syscall way to return success =)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: