DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
//-------------------------------------------------------------------------------------- // File: DXUTguiIME.h // // Copyright (c) Microsoft Corporation. All rights reserved. //-------------------------------------------------------------------------------------- #pragma once #ifndef DXUT_IME_H #define DXUT_IME_H #include
#include
#include
//-------------------------------------------------------------------------------------- // Forward declarations //-------------------------------------------------------------------------------------- class CDXUTIMEEditBox; //----------------------------------------------------------------------------- // IME-enabled EditBox control //----------------------------------------------------------------------------- #define MAX_COMPSTRING_SIZE 256 class CDXUTIMEEditBox : public CDXUTEditBox { public: static HRESULT CreateIMEEditBox( CDXUTDialog *pDialog, int ID, LPCWSTR strText, int x, int y, int width, int height, bool bIsDefault=false, CDXUTIMEEditBox** ppCreated=NULL ); CDXUTIMEEditBox( CDXUTDialog *pDialog = NULL ); virtual ~CDXUTIMEEditBox(); static void InitDefaultElements( CDXUTDialog *pDialog ); static void WINAPI Initialize( HWND hWnd ); static void WINAPI Uninitialize(); static HRESULT WINAPI StaticOnCreateDevice(); static bool WINAPI StaticMsgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); static void WINAPI SetImeEnableFlag( bool bFlag ); virtual void Render( float fElapsedTime ); virtual bool MsgProc( UINT uMsg, WPARAM wParam, LPARAM lParam ); virtual bool HandleMouse( UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam ); virtual void UpdateRects(); virtual void OnFocusIn(); virtual void OnFocusOut(); void PumpMessage(); virtual void RenderCandidateReadingWindow( float fElapsedTime, bool bReading ); virtual void RenderComposition( float fElapsedTime ); virtual void RenderIndicator( float fElapsedTime ); protected: static void WINAPI EnableImeSystem( bool bEnable ); static WORD WINAPI GetLanguage(){ return ImeUi_GetLanguage(); } static WORD WINAPI GetPrimaryLanguage() { return ImeUi_GetPrimaryLanguage(); } static void WINAPI SendKey( BYTE nVirtKey ); static DWORD WINAPI GetImeId( UINT uIndex = 0 ){ return ImeUi_GetImeId( uIndex ); }; static void WINAPI CheckInputLocale(); static void WINAPI CheckToggleState(); static void WINAPI SetupImeApi(); static void WINAPI ResetCompositionString(); static void SetupImeUiCallback(); protected: enum { INDICATOR_NON_IME, INDICATOR_CHS, INDICATOR_CHT, INDICATOR_KOREAN, INDICATOR_JAPANESE }; struct CCandList { CUniBuffer HoriCand; // Candidate list string (for horizontal candidate window) int nFirstSelected; // First character position of the selected string in HoriCand int nHoriSelectedLen; // Length of the selected string in HoriCand RECT rcCandidate; // Candidate rectangle computed and filled each time before rendered }; static POINT s_ptCompString; // Composition string position. Updated every frame. static int s_nFirstTargetConv; // Index of the first target converted char in comp string. If none, -1. static CUniBuffer s_CompString; // Buffer to hold the composition string (we fix its length) static DWORD s_adwCompStringClause[MAX_COMPSTRING_SIZE]; static CCandList s_CandList; // Data relevant to the candidate list static WCHAR s_wszReadingString[32];// Used only with horizontal reading window (why?) static bool s_bImeFlag; // Is ime enabled // Color of various IME elements D3DCOLOR m_ReadingColor; // Reading string color D3DCOLOR m_ReadingWinColor; // Reading window color D3DCOLOR m_ReadingSelColor; // Selected character in reading string D3DCOLOR m_ReadingSelBkColor; // Background color for selected char in reading str D3DCOLOR m_CandidateColor; // Candidate string color D3DCOLOR m_CandidateWinColor; // Candidate window color D3DCOLOR m_CandidateSelColor; // Selected candidate string color D3DCOLOR m_CandidateSelBkColor; // Selected candidate background color D3DCOLOR m_CompColor; // Composition string color D3DCOLOR m_CompWinColor; // Composition string window color D3DCOLOR m_CompCaretColor; // Composition string caret color D3DCOLOR m_CompTargetColor; // Composition string target converted color D3DCOLOR m_CompTargetBkColor; // Composition string target converted background D3DCOLOR m_CompTargetNonColor; // Composition string target non-converted color D3DCOLOR m_CompTargetNonBkColor;// Composition string target non-converted background D3DCOLOR m_IndicatorImeColor; // Indicator text color for IME D3DCOLOR m_IndicatorEngColor; // Indicator text color for English D3DCOLOR m_IndicatorBkColor; // Indicator text background color // Edit-control-specific data int m_nIndicatorWidth; // Width of the indicator symbol RECT m_rcIndicator; // Rectangle for drawing the indicator button #if defined(DEBUG) || defined(_DEBUG) static bool m_bIMEStaticMsgProcCalled; #endif }; #endif // DXUT_IME_H
DXUTguiIME.h
Page URL
File URL
Prev
7/29
Next
Download
( 5 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.