Re: Resize KSProxy Property Pages



Yeah, you are stuck.
There is no generic solution to your problem. Moreover OLE guidelines
mandate that OLE property pages should conform to one of some standard
sizes. Pretty strange to say the least.

Why don't you design your simple page to have an Advanced button and display
advanced properties in another set of dialogs.

-- Max.



"Tom Udale" <-> wrote in message
news:9JadnW9rtafejDDZnZ2dnUVZ_tKdnZ2d@xxxxxxxxxxxxxx
Greetings,

I was wondering if there was a way to resize the entire property ***
that
is presented for my stream based USB camera. I have a series of property
pages all derived from CBasePropertyPage that are shown by graphedit and
so
forth when the user selects properties on the capture filter.

One of them is rather large and complicated and I have created a dual mode
interface where the user can select either a "simple" or "advanced"
interface via a "Show Advanced" checkbox. Since the "simple" interface is
significantly smaller than the advanced one (and since that advanced page
size controls the overall property *** dimensions) I was hoping that I
could send a message to the overall container to hint that it can resize
when in the "simple" mode. I intend to default to the simple interface
and
I presume most users will not need to use the advanced controls. Thus it
would be nice to not have to display the big page with lots of empty space
in the common case.

While there are interfaces to get higher level objects such as the
IPropertyPageSite (set via IPropertyPage::SetPageSite ) and the site
container (via IPropertyPageSite::GetPageContainer) there does not seem to
be what I am looking for. Are there any interfaces that I am missing, or
some messages I can sent to a parent window? Or am I just stuck?

I am interested in this both for a graphedit like application, but also in
the context of a property page site I will control within my own custom
application. In that case, I can obviously support any interface and
would
be interested to know if there is a specific one I should be looking at,
or
if I should simply create my own IMyResizePropPage interface.

Best regards,

Tom Udale




.


Quantcast