zufuliu / notepad4

Notepad4 (Notepad2⨯2, Notepad2++) is a light-weight Scintilla based text editor for Windows with syntax highlighting, code folding, auto-completion and API list for many programming languages and documents, bundled with file browser plugin matepath.
Other
2.42k stars 174 forks source link

Bug: matepath/metapath can't be minimized by clicking on it's icon in the taskbar #797

Open Shakil-Shahadat opened 1 month ago

Shakil-Shahadat commented 1 month ago

matepath/metapath doesn't have a minimize button. Thus it becomes very annoying to use it if it can't be minimized in usual ways. Clicking on the top left corner icon and then minimize works though. Thanks.

zufuliu commented 1 month ago

I think this by design: image

The minimize and maximize button can be shown (has no effect on clicking) by changing WS_MATEPATH: https://github.com/zufuliu/notepad4/blob/5a504cfdc922be399813a6b39c333d8e74159c13/matepath/src/matepath.h#L27-L29

 #define WS_MATEPATH ((WS_OVERLAPPEDWINDOW ^ \
-                                         (WS_MINIMIZEBOX | WS_MAXIMIZEBOX)) | \
+                                         (/*WS_MINIMIZEBOX | */WS_MAXIMIZEBOX)) | \
                                         (WS_CLIPCHILDREN | WS_POPUP))
Shakil-Shahadat commented 1 month ago

So, can this be changed? I was gonna ask for the minimize/maximize button once this is solved. Thanks for looking into this.

zufuliu commented 1 month ago

Support minimize/maximize buttons would require some extra code changes other than WS_MATEPATH.

Shakil-Shahadat commented 1 month ago

Then please fix minimize/maximize(view window) by clicking on the taskbar icon for now if possible.