summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx
index dd3b64168..c2afc67f3 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx
@@ -613,6 +613,18 @@ void Fl_WinAPI_Window_Driver::iconize() {
ShowWindow(fl_xid(pWindow), SW_SHOWMINNOACTIVE);
}
+
+void Fl_WinAPI_Window_Driver::decoration_sizes(int *top, int *left, int *right, int *bottom) {
+ if (size_range_set() && (maxw() != minw() || maxh() != minh())) {
+ *left = *right = GetSystemMetrics(SM_CXSIZEFRAME);
+ *top = *bottom = GetSystemMetrics(SM_CYSIZEFRAME);
+ } else {
+ *left = *right = GetSystemMetrics(SM_CXFIXEDFRAME);
+ *top = *bottom = GetSystemMetrics(SM_CYFIXEDFRAME);
+ }
+ *top += GetSystemMetrics(SM_CYCAPTION);
+}
+
//
// End of "$Id$".
//