#ifdef __cplusplus EXTERN_CC_BEGIN #endif namespace_DXUT #define DXUT_NEAR_BUTTON_DEPTH 0.6f //-------------------------------------------------------------------------------------- // CDXUTIMEEditBox class //-------------------------------------------------------------------------------------- // IME constants POINT CDXUTIMEEditBox::s_ptCompString; // Composition string position. Updated every frame. int CDXUTIMEEditBox::s_nFirstTargetConv; // Index of the first target converted char in comp string. If none, -1. CUniBuffer CDXUTIMEEditBox::s_CompString = CUniBuffer(0); DWORD CDXUTIMEEditBox::s_adwCompStringClause[MAX_COMPSTRING_SIZE]; WCHAR CDXUTIMEEditBox::s_wszReadingString[32]; CDXUTIMEEditBox::CCandList CDXUTIMEEditBox::s_CandList; // Data relevant to the candidate list bool CDXUTIMEEditBox::s_bImeFlag = true; #if defined(DEBUG) || defined(_DEBUG) bool CDXUTIMEEditBox::m_bIMEStaticMsgProcCalled = false; #endif //-------------------------------------------------------------------------------------- _Use_decl_annotations_ DXUTAPI HRESULT CDXUTIMEEditBox::CreateIMEEditBox(CDXUTDialog* pDialog, int ID, LPCWSTR strText, int x, int y, int width, int height, bool bIsDefault, CDXUTIMEEditBox** ppCreated) { CDXUTIMEEditBox* pEditBox = new (std::nothrow) CDXUTIMEEditBox(pDialog);
L"En", L"\x7B80", L"\x7E41", L"\xAC00", L"\x3042", }; LPWSTR CIME::s_wszCurrIndicator = CIME::s_aszIndicator[0]; // Points to an indicator string that corresponds to current input locale bool CIME::s_bInsertOnType; // Insert the character as soon as a key is pressed (Korean behavior) HINSTANCE CIME::s_hDllIme; // Instance handle of the current IME module HIMC CIME::s_hImcDef; // Default input context CIME::IMESTATE CIME::s_ImeState = IMEUI_STATE_OFF; bool CIME::s_bEnableImeSystem; // Whether the IME system is active POINT CIME::s_ptCompString; // Composition string position. Updated every frame. int CIME::s_nCompCaret; int CIME::s_nFirstTargetConv; // Index of the first target converted char in comp string. If none, -1. CUniBuffer CIME::s_CompString = CUniBuffer(0); BYTE CIME::s_abCompStringAttr[MAX_COMPSTRING_SIZE]; DWORD CIME::s_adwCompStringClause[MAX_COMPSTRING_SIZE]; //WCHAR CIME::s_wszReadingString[32]; std::wstring CIME::s_wstrReadingString; CIME::CCandList CIME::s_CandList; // Data relevant to the candidate list bool CIME::s_bShowReadingWindow; // Indicates whether reading window is visible bool CIME::s_bHorizontalReading; // Indicates whether the reading window is vertical or horizontal bool CIME::s_bChineseIME; std::vector<CIME::CInputLocale> CIME::s_Locale; // Array of loaded keyboard layout on system #if defined(DEBUG) || defined(_DEBUG) bool CIME::m_bIMEStaticMsgProcCalled = false; #endif void CIME::Initialize()