// INTERNAL INCLUDES
#include <dali/internal/window-system/windows/event-system-win.h>
+namespace
+{
static constexpr float INCH = 25.4;
-
-using namespace std;
+}
namespace Dali
{
namespace WindowsPlatformImplementation
{
-void RunLoop()
-{
- MSG nMsg = { 0 };
-
- while( GetMessage( &nMsg, 0, NULL, NULL ) )
- {
- if( WIN_CALLBACK_EVENT == nMsg.message )
- {
- Dali::CallbackBase *callback = ( Dali::CallbackBase* )nMsg.wParam;
- Dali::CallbackBase::Execute( *callback );
- }
-
- TranslateMessage( &nMsg );
- DispatchMessage( &nMsg );
-
- if( WM_CLOSE == nMsg.message )
- {
- break;
- }
- }
-}
-
LRESULT CALLBACK WinProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
{
- WindowImpl::ProcWinMessge( reinterpret_cast<uint64_t>( hWnd ), uMsg, wParam, lParam );
+ WindowImpl::ProcWinMessage( reinterpret_cast<uint64_t>( hWnd ), uMsg, wParam, lParam );
LRESULT ret = DefWindowProc( hWnd, uMsg, wParam, lParam );
return ret;
mHWndToListener.erase( mHWnd );
}
-void WindowImpl::ProcWinMessge( uint64_t hWnd, uint32_t uMsg, uint64_t wParam, uint64_t lParam )
+void WindowImpl::ProcWinMessage( uint64_t hWnd, uint32_t uMsg, uint64_t wParam, uint64_t lParam )
{
std::map<uint64_t, WindowImpl*>::iterator x = mHWndToListener.find( hWnd );
bool WindowImpl::PostWinMessage(
_In_ uint32_t Msg,
- _In_ uint32_t wParam,
+ _In_ uint64_t wParam,
_In_ uint64_t lParam )
{
return (bool)PostMessage( reinterpret_cast<HWND>( mHWnd ), Msg, wParam, lParam );
bool PostWinThreadMessage(
_In_ uint32_t Msg,
- _In_ uint32_t wParam,
+ _In_ uint64_t wParam,
_In_ uint64_t lParam,
_In_ uint64_t threadID/* = -1*/ )
{