Click to See Complete Forum and Search --> : Ofn_ex_noplacesbar


Urban Olars
December 2nd, 2003, 04:19 AM
I'm trying to display an open file common dialog with
some additional controls added to it.

Question 1:
One problem I have is that I cannot hide the places bar.
It's supposed to be done by using FlagsEx and
OFN_EX_NOPLACESBAR but I get errors:

error C2039: 'FlagsEx' : is not a member of 'tagOFNA'
error C2065: 'OFN_EX_NOPLACESBAR' : undeclared identifier

I have found some info about it on MSDN but I'm not smart
enough to get it work anyway. How should it be done?
I know at least that the windows version is involved
somehow.

I use VC++ 7.1 and Windows XP.

vicodin451
December 2nd, 2003, 07:09 AM
Originally posted by Urban Olars
I'm trying to display an open file common dialog with
some additional controls added to it.

Question 1:
One problem I have is that I cannot hide the places bar.
It's supposed to be done by using FlagsEx and
OFN_EX_NOPLACESBAR but I get errors:

error C2039: 'FlagsEx' : is not a member of 'tagOFNA'
error C2065: 'OFN_EX_NOPLACESBAR' : undeclared identifier

I have found some info about it on MSDN but I'm not smart
enough to get it work anyway. How should it be done?
I know at least that the windows version is involved
somehow.

I use VC++ 7.1 and Windows XP.
You have to:#define _WIN32_WINNT 0x0500 before Windows.h gets included. Alternatively, you could add:

_WIN32_WINNT=0x0500
To Project Properties | C/C++ | Preprocessor | Preprocessor Definitions.

Urban Olars
December 3rd, 2003, 03:57 PM
Thanks for the great help!