#include "precomp.h"
+#include <winnls.h>
+
HINSTANCE hInstance;
HANDLE ProcessHeap;
MSG Msg;
int Ret = 1;
INITCOMMONCONTROLSEX icex;
+
+ switch (GetUserDefaultUILanguage())
+ {
+ case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
+ SetProcessDefaultLayout(LAYOUT_RTL);
+ break;
+ default:
+ break;
+ }
+
hInstance = hThisInstance;
ProcessHeap = GetProcessHeap();
/* pump the message queue */
while( GetMessage( &Msg, NULL, 0, 0 ) )
{
- //if(! IsDialogMessage(hProgDlg, &Msg) )
+ //if ( !hProgDlg || !IsWindow(hProgDlg) || !IsDialogMessage(hProgDlg, &Msg) )
//{
TranslateMessage(&Msg);
DispatchMessage(&Msg);