Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
6d7e8205
Commit
6d7e8205
authored
Jul 04, 2010
by
dewyatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Get_IMM method to Window.
Added focus gain/loss events for IMM.
parent
825ef531
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Window.hpp
EXCLUDE/GLIMM/include/Window.hpp
+1
-0
Window.cpp
EXCLUDE/GLIMM/src/Window.cpp
+11
-0
No files found.
EXCLUDE/GLIMM/include/Window.hpp
View file @
6d7e8205
...
@@ -31,6 +31,7 @@ public:
...
@@ -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
;
...
...
EXCLUDE/GLIMM/src/Window.cpp
View file @
6d7e8205
...
@@ -89,6 +89,11 @@ HWND Window::Get_Handle()
...
@@ -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
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment