Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added Get_IMM method to Window.
Browse files Browse the repository at this point in the history
Added focus gain/loss events for IMM.
  • Loading branch information
dewyatt committed Jul 4, 2010
1 parent 19d9eaa commit 7cdf7fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions EXCLUDE/GLIMM/include/Window.hpp
Expand Up @@ -31,6 +31,7 @@ class Window
void Hide_Cursor();

HWND Get_Handle();
IMM &Get_IMM();

private:
static const wchar_t *Window_Class_Name;
Expand Down
11 changes: 11 additions & 0 deletions EXCLUDE/GLIMM/src/Window.cpp
Expand Up @@ -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};
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7cdf7fd

Please sign in to comment.