Added Get_IMM method to Window.
Added focus gain/loss events for IMM.
This commit is contained in:
parent
825ef53157
commit
6d7e820588
2 changed files with 12 additions and 0 deletions
|
@ -31,6 +31,7 @@ public:
|
||||||
void Hide_Cursor();
|
void Hide_Cursor();
|
||||||
|
|
||||||
HWND Get_Handle();
|
HWND Get_Handle();
|
||||||
|
IMM &Get_IMM();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const wchar_t *Window_Class_Name;
|
static const wchar_t *Window_Class_Name;
|
||||||
|
|
|
@ -89,6 +89,11 @@ HWND Window::Get_Handle()
|
||||||
return my_Handle;
|
return my_Handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IMM & Window::Get_IMM()
|
||||||
|
{
|
||||||
|
return my_IMM;
|
||||||
|
}
|
||||||
|
|
||||||
void Window::Register_Class()
|
void Window::Register_Class()
|
||||||
{
|
{
|
||||||
WNDCLASSEXW Window_Class = {0};
|
WNDCLASSEXW Window_Class = {0};
|
||||||
|
@ -285,6 +290,12 @@ LRESULT Window::Handle_Message(HWND Handle, UINT Message, WPARAM wParam, LPARAM
|
||||||
case WM_CHAR:
|
case WM_CHAR:
|
||||||
Call_Listener(On_Char(wParam));
|
Call_Listener(On_Char(wParam));
|
||||||
break;
|
break;
|
||||||
|
case WM_SETFOCUS:
|
||||||
|
my_IMM.Focus_Gained();
|
||||||
|
break;
|
||||||
|
case WM_KILLFOCUS:
|
||||||
|
my_IMM.Focus_Lost();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return DefWindowProcW(Handle, Message, wParam, lParam);
|
return DefWindowProcW(Handle, Message, wParam, lParam);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue