Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added Get_IMM method to Window.

Added focus gain/loss events for IMM.
  • Loading branch information
dewyatt committed Jul 4, 2010
1 parent 19d9eaa commit 7cdf7fd299db41946603163d5621b9f16119cfbf
Showing with 12 additions and 0 deletions.
  1. +1 −0 EXCLUDE/GLIMM/include/Window.hpp
  2. +11 −0 EXCLUDE/GLIMM/src/Window.cpp
@@ -31,6 +31,7 @@ class Window
void Hide_Cursor();

HWND Get_Handle();
IMM &Get_IMM();

private:
static const wchar_t *Window_Class_Name;
@@ -89,6 +89,11 @@ HWND Window::Get_Handle()
return my_Handle;
}

IMM & Window::Get_IMM()
{
return my_IMM;
}

void Window::Register_Class()
{
WNDCLASSEXW Window_Class = {0};
@@ -285,6 +290,12 @@ LRESULT Window::Handle_Message(HWND Handle, UINT Message, WPARAM wParam, LPARAM
case WM_CHAR:
Call_Listener(On_Char(wParam));
break;
case WM_SETFOCUS:
my_IMM.Focus_Gained();
break;
case WM_KILLFOCUS:
my_IMM.Focus_Lost();
break;
default:
return DefWindowProcW(Handle, Message, wParam, lParam);
break;

0 comments on commit 7cdf7fd

Please sign in to comment.