Window style for winhelp not initialized

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

 



Hello!

The style of the main winhelp window in not initialized.  As a result, the
main window has no buttons on it (both in Wine and Windows 2000).  The
patch sets win_style to WS_OVERLAPPEDWINDOW.  Popup windows are not
affected.

ChangeLog:
	programs/winhelp/winhelp.c:
	Initialize 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