mirror of
https://github.com/reactos/reactos.git
synced 2024-09-08 11:50:08 +00:00
![Baruch Rutman](/assets/img/avatar_default.png)
Introduce BiDi (bi-directional text) support for ExtTextOut and GetCharacterPlacement, using Wine's GDI BIDI_Reorder function. Solves the main issue with CORE-7003. To be compatible with Win2k3+, introduce the "Language Pack" (LPK) dll. - All the bidi code is removed from gdi32 and replaced by calls to LPK. Gdi32 uses dynamic linking to lpk.dll. In case of linking failure no bidi processing will be available. - Implemented LpkGetCharacterPlacement. - Implement LpkExtTextOut. - Add a demo test program to show how the apis should function. - Added all the remaining code, added special case for lpDx calculation if also GCP_GLYPHSHAPE flag was called. Applications that call GCP that use GCP_GLYPHSHAPE flags should also use the GCP_REORDER flag. (As written in https://msdn.microsoft.com/en-us/library/windows/desktop/dd144860(v=vs.85).aspx ) - Add ETO_RTLREADING flag handling. Imported the ETO_RTLREADING flag handling from wine, which changes the string part order (runs). A RRR1LLLRRR2 string without will show as RRR1LLLRRR2 without it, with it RRR2LLLRRR1.
35 lines
937 B
C
35 lines
937 B
C
#pragma once
|
|
|
|
#include <windows.h>
|
|
#include <commctrl.h>
|
|
|
|
/* Global instance handle */
|
|
extern HINSTANCE g_hInstance;
|
|
|
|
/* Window procedure for our main window */
|
|
LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
|
|
|
/* Register a class for our main window */
|
|
BOOL RegisterMainWindowClass(void);
|
|
|
|
/* Create an instance of our main window */
|
|
HWND CreateMainWindow(void);
|
|
|
|
/* Dialog procedure for our "about" dialog */
|
|
INT_PTR CALLBACK AboutDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
/* Show our "about" dialog */
|
|
void ShowAboutDialog(HWND owner);
|
|
|
|
|
|
#define IDI_APPICON 101
|
|
#define IDR_MAINMENU 102
|
|
#define IDR_ACCELERATOR 103
|
|
#define IDD_ABOUTDIALOG 104
|
|
#define ID_FILE_EXIT 40001
|
|
#define ID_HELP_ABOUT 40002
|
|
|
|
#ifndef IDC_STATIC
|
|
#define IDC_STATIC -1
|
|
#endif
|