diff options
| author | Manolo Gouy <Manolo> | 2016-04-19 17:34:15 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-19 17:34:15 +0000 |
| commit | 4aa388d4ffb2f62986fb5dc7b06325a4dd0cf56a (patch) | |
| tree | e525d0372b2fbdbf17556d37ee1ab715b67a4288 /src/Fl_win32.cxx | |
| parent | 9f78323574ce8fbbcbf491980fdc9629b83a018a (diff) | |
Add static Fl_XXX_Window_Driver *driver(Fl_Window*) to get the platform-specific driver of a window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11663 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_win32.cxx')
| -rw-r--r-- | src/Fl_win32.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 9d4c6e32e..b30bfde69 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1356,7 +1356,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar } case WM_GETMINMAXINFO: - ((Fl_WinAPI_Window_Driver*)window->driver())->set_minmax((LPMINMAXINFO)lParam); + Fl_WinAPI_Window_Driver::driver(window)->set_minmax((LPMINMAXINFO)lParam); break; case WM_SIZE: @@ -1383,7 +1383,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar case WM_SETCURSOR: if (LOWORD(lParam) == HTCLIENT) { while (window->parent()) window = window->window(); - SetCursor(((Fl_WinAPI_Window_Driver*)window->driver())->cursor); + SetCursor(Fl_WinAPI_Window_Driver::driver(window)->cursor); return 0; } break; @@ -2070,12 +2070,12 @@ void Fl_Window::icons(HICON big_icon, HICON small_icon) free_icons(); if (big_icon != NULL) - ((Fl_WinAPI_Window_Driver*)pWindowDriver)->icon_->big_icon = CopyIcon(big_icon); + Fl_WinAPI_Window_Driver::driver(this)->icon_->big_icon = CopyIcon(big_icon); if (small_icon != NULL) - ((Fl_WinAPI_Window_Driver*)pWindowDriver)->icon_->small_icon = CopyIcon(small_icon); + Fl_WinAPI_Window_Driver::driver(this)->icon_->small_icon = CopyIcon(small_icon); if (Fl_X::i(this)) - ((Fl_WinAPI_Window_Driver*)pWindowDriver)->set_icons(); + Fl_WinAPI_Window_Driver::driver(this)->set_icons(); } /** Sets the default window icons. |
