Enable titlebar buttons in winhelp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I sent it already, but the patch was lost.  I strongly believe the patch
is correct.  Popup windows have their win_style set in
WINHELP_GetPopupWindowInfo(), but the main window doesn't have its
win_style set in the corresponding WINHELP_GetWindowInfo() function.
Windows without style have no buttons, which looks very confusing.

ChangeLog:
	* programs/winhelp/winhelp.c:
	Set win_style of the main window to WS_OVERLAPPEDWINDOW.

-- 
Regards,
Pavel Roskin
--- programs/winhelp/winhelp.c
+++ programs/winhelp/winhelp.c
@@ -115,6 +115,7 @@ HLPFILE_WINDOWINFO*     WINHELP_GetWindo
             strcpy(mwi.caption, hlpfile->lpszTitle);
         mwi.origin.x = mwi.origin.y = mwi.size.cx = mwi.size.cy = CW_USEDEFAULT;
         mwi.style = SW_SHOW;
+        mwi.win_style = WS_OVERLAPPEDWINDOW;
         mwi.sr_color = mwi.sr_color = 0xFFFFFF;
     }
     return &mwi;

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux