Prevent restore of preview window

We would like to have the LL13 preview window maximized at all times.
I used the following code to remove the minimize and maximize buttons:
LlViewerProhibitAction(hJob, LL_SYSCOMMAND_MINIMIZE);
LlViewerProhibitAction(hJob, LL_SYSCOMMAND_MAXIMIZE);
The minimize and maximize buttons are now removed and it looked good at first.

However, if I double click on the border of the preview window,
the window is restored and can be resized.
It’s not possible to maximize the window again.
The result is now worse as still having the maximize button in place.

Is there an easy way to get the desired behavior or is the only option creating a custom form with an embedded preview control (which is much more work)?

In the registry, under HKCU\Software\combit\cmbtll<your app name>,
there’s an entry “ViewerMode”. Set this to SW_MAXIMIZE (3) before
opening the preview.

At that registry path, there are a lot of window positions and view
modes.

Paulchen

“Edwin Hutten” <edwin.hutten@wanad…> wrote in message
news:366762182009102457@combit.net…

We would like to have the LL13 preview window maximized at all
times.
I used the following code to remove the minimize and maximize
buttons:
LlViewerProhibitAction(hJob, LL_SYSCOMMAND_MINIMIZE);
LlViewerProhibitAction(hJob, LL_SYSCOMMAND_MAXIMIZE);
The minimize and maximize buttons are now removed and it looked good
at first.

However, if I double click on the border of the preview window,
the window is restored and can be resized.
It’s not possible to maximize the window again.
The result is now worse as still having the maximize button in
place.

Is there an easy way to get the desired behavior or is the only
option creating a custom form with an embedded preview control
(which is much more work)?