Mercurial > sdl-ios-xcode
comparison EXCLUDE/GLIMM/src/Window.cpp @ 4742:59b0750575b1
Added Get_IMM method to Window.
Added focus gain/loss events for IMM.
author | dewyatt |
---|---|
date | Sun, 04 Jul 2010 06:07:38 -0400 |
parents | bb189d44af16 |
children | 0aaa54fbd2bc |
comparison
equal
deleted
inserted
replaced
4741:bb189d44af16 | 4742:59b0750575b1 |
---|---|
85 } | 85 } |
86 | 86 |
87 HWND Window::Get_Handle() | 87 HWND Window::Get_Handle() |
88 { | 88 { |
89 return my_Handle; | 89 return my_Handle; |
90 } | |
91 | |
92 IMM & Window::Get_IMM() | |
93 { | |
94 return my_IMM; | |
90 } | 95 } |
91 | 96 |
92 void Window::Register_Class() | 97 void Window::Register_Class() |
93 { | 98 { |
94 WNDCLASSEXW Window_Class = {0}; | 99 WNDCLASSEXW Window_Class = {0}; |
283 Call_Listener(On_Key_Up(wParam)); | 288 Call_Listener(On_Key_Up(wParam)); |
284 break; | 289 break; |
285 case WM_CHAR: | 290 case WM_CHAR: |
286 Call_Listener(On_Char(wParam)); | 291 Call_Listener(On_Char(wParam)); |
287 break; | 292 break; |
293 case WM_SETFOCUS: | |
294 my_IMM.Focus_Gained(); | |
295 break; | |
296 case WM_KILLFOCUS: | |
297 my_IMM.Focus_Lost(); | |
298 break; | |
288 default: | 299 default: |
289 return DefWindowProcW(Handle, Message, wParam, lParam); | 300 return DefWindowProcW(Handle, Message, wParam, lParam); |
290 break; | 301 break; |
291 } | 302 } |
292 return 0; | 303 return 0; |