added rtl support
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5212 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8e1b521859
commit
f1b8604bcb
6 changed files with 22 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "defs.h"
|
||||
#include "nsis.h"
|
||||
#include "input.h"
|
||||
#include "rtl.h"
|
||||
|
||||
HINSTANCE g_hInstance;
|
||||
struct nsDialog g_dialog;
|
||||
|
@ -143,6 +144,8 @@ void __declspec(dllexport) Create(HWND hwndParent, int string_size, char *variab
|
|||
|
||||
g_dialog.parentOriginalWndproc = (WNDPROC) SetWindowLong(hwndParent, DWL_DLGPROC, (long) ParentProc);
|
||||
|
||||
g_dialog.rtl = FALSE;
|
||||
|
||||
g_dialog.controlCount = 0;
|
||||
g_dialog.controls = (struct nsControl*) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, 0);
|
||||
|
||||
|
@ -211,6 +214,10 @@ void __declspec(dllexport) CreateItem(HWND hwndParent, int string_size, char *va
|
|||
else
|
||||
g_dialog.controls[id].type = NSCTL_UNKNOWN;
|
||||
|
||||
// apply rtl to style
|
||||
|
||||
ConvertStyleToRTL(g_dialog.controls[id].type, &style, &exStyle);
|
||||
|
||||
// create item's window
|
||||
|
||||
hwItem = CreateWindowEx(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue