diff options
| author | Manolo Gouy <Manolo> | 2016-03-22 17:47:44 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-22 17:47:44 +0000 |
| commit | 6ec8ebc4f83fa2c143bff54e66672226cdf7d85c (patch) | |
| tree | f91bde6630403fd3961ae4bdf9a2c554ea5c12d1 /src/Fl_win32.cxx | |
| parent | 6302b3da00f8116e1bf62629c6d3ab0f719d1a33 (diff) | |
Rewrite Fl_Window::show() and Fl_Menu_Window::show() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11400 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_win32.cxx')
| -rw-r--r-- | src/Fl_win32.cxx | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 506c6706c..9334c90d5 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -2277,20 +2277,13 @@ int Fl_X::set_cursor(const Fl_RGB_Image *image, int hotx, int hoty) { // Fl_Widget *fl_boxcheat; //static inline int can_boxcheat(uchar b) {return (b==1 || (b&2) && b<=15);} -void Fl_Window::show() { - image(Fl::scheme_bg_); - if (Fl::scheme_bg_) { - labeltype(FL_NORMAL_LABEL); - align(FL_ALIGN_CENTER | FL_ALIGN_INSIDE | FL_ALIGN_CLIP); - } else { - labeltype(FL_NO_LABEL); - } - Fl_Tooltip::exit(this); - if (!shown()) { +void Fl_WinAPI_Window_Driver::show() { + if (!pWindow->shown()) { // if (can_boxcheat(box())) fl_background_pixel = fl_xpixel(color()); - Fl_X::make(this); + Fl_X::make(pWindow); } else { // Once again, we would lose the capture if we activated the window. + Fl_X *i = Fl_X::i(pWindow); if (IsIconic(i->xid)) OpenIcon(i->xid); if (!fl_capture) BringWindowToTop(i->xid); //ShowWindow(i->xid,fl_capture?SW_SHOWNOACTIVATE:SW_RESTORE); |
