AVISaveOptions dialog displays incorrectly in Windows 7 with Arabic display language

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have an application that uses the AVIFile API to create an AVI file and I recently received a bug request relating to the AVISaveOptions dialog.
<br/>

When the application is run on Windows 7 Ultimate (64-bit) with the Arabic language pack installed and the display language set to Arabic, the AVISaveOptions dialog is displayed incorrectly. Only the far left hand side of the dialog is shown.
<br/>

Our original call to AVISaveOptions:

<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; if (!AVISaveOptions(NULL, 0, 1, &m_pStream, (LPAVICOMPRESSOPTIONS FAR *) &aopts))
{
AVISaveOptionsFree(1,(LPAVICOMPRESSOPTIONS FAR *) &aopts);
<span style="color:Blue; return S_FALSE;
}
[/code]

<span style="white-space:pre
However, if the uiFlags argument is set to ICMF_CHOOSE_PREVIEW the dialog displays as expected. This is not an ideal solution as we do not wish to have the preview functionality available. Setting the uiFlags argument to either ICMF_CHOOSE_KEYFRAME or
ICMF_CHOOSE_DATARATE results in the same distorted dialog being displayed.
<br/>

Are there any other workarounds for this that dont involve having a preview available on the AVISaveOptions dialog?
<br/>

Any advice would be very much appreciated.

View the full article
 
Back
Top