Page 2 of 3
Posted: Tue May 24, 2005 6:39 pm
by Lesmo16
Dreamer wrote:
Anoyne use (need) that icon (in menu bar) at all?
Hm, until now I didn't use it - but I'm using xnView since RC1.
But I think you all know for what to use these icons - right?
It's for something like that:

Posted: Tue May 24, 2005 8:31 pm
by helmut
Lesmo16 wrote:But I think you all know for what to use these icons - right?
It's for something like that:

Right, thanks for bringing that one in. XnView always was and still is an MDI application (Multiple Document Interface). The icon in the top left corner is simply the system menu for the child window. Since most people use XnView with maximized child windows, there's little use for these icons. But for those people that do use MDI (with non-maximized windows), it can be helpful.
On the left you have the two system menus (Parent window & child window) which we are currently discussing about, one the right side you have the same "problem" with Minimized, Maximized and Close.
This could be changed only if XnView left the MDI concept completely behind, but this is a really big and long discussion. Not in 1.80, please.
So currently I'd say: It's a feature, not a bug.

Posted: Wed May 25, 2005 7:21 pm
by EgoSun
I don't think that somebody use MDI with unmaximized windows in xnview, I would say that this is very uncomfortable for viewing images, since we are not edit them like in Photoshop where you can't imagine work without unmaximized windows.
Posted: Thu May 26, 2005 10:29 am
by xnview
Dreamer wrote:
Anoyne use (need) that icon (in menu bar) at all?
I can't remove these icons, windows add them because it's MDI childs.
Posted: Thu May 26, 2005 6:36 pm
by EgoSun
That's because of MDI implementation you use in xnview code, maybe there are some other librarys for making MDI tabs in C++.
BTW, I've already found some new solutions. Check this:
http://www.codeproject.com/tabctrl/mditabs.asp
http://www.codeproject.com/docview/tabbedmdi.asp
http://www.wndtabs.com/
Posted: Thu May 26, 2005 8:10 pm
by xnview
Sorry i don't understand, when you have MDI child (browser, view, ...), you have these icons. Even on examples found...
Posted: Thu May 26, 2005 9:18 pm
by EgoSun
Wow, I didn't notice that, he he.
Can you say me, which way do you implement MDI in xnview (MFC, FCL).
Posted: Sat May 28, 2005 3:10 am
by scratch
i'd like to see XnView at least optionally not MDI. but you're right, this is for the next version, not for 1.80.
Posted: Sat May 28, 2005 7:15 am
by xnview
EgoSun wrote:Wow, I didn't notice that, he he.
Can you say me, which way do you implement MDI in xnview (MFC, FCL).
win32
Posted: Sat May 28, 2005 7:35 am
by ckit
You could re-write XnView in WTL....
WTL or Windows Template Library is a "new" set of lightweight templates/classes which wrap most of the user interface aspects of modern windows programming. It was developed within mikros~1 as an extension of ATL, and although not "officially" supported it kicks plain ass. If only there was some docking toolbar functionality it would become the defacto tool for all UI programming aspects. But we're working on that...
This was taken from the "editor2.txt" in xplorer2 lite.
Despite what it says above xplorer2 lite does have dockable toolbars.
Posted: Sat May 28, 2005 10:18 am
by EgoSun
xnview
can you post here a header file (*.h) which you use to create MDI
Posted: Sat May 28, 2005 12:45 pm
by xnview
EgoSun wrote:
xnview
can you post here a header file (*.h) which you use to create MDI
A .h????
Here is the code:
Code: Select all
MDICREATESTRUCT mcs;
...
hWnd = (HWND )SendMessage( hWndClient, WM_MDICREATE, 0, (LPARAM )&mcs );
Why?
Posted: Mon May 30, 2005 8:34 pm
by EgoSun
xnview
can you post here all #include <blablabla> lines
Posted: Tue May 31, 2005 8:53 am
by xnview
EgoSun wrote:xnview
can you post here all #include <blablabla> lines
I don't understand why do you want headers??? I use #include <windows.h> only
Posted: Tue May 31, 2005 8:01 pm
by EgoSun
xnview
I want to modify this header file, so that there is no icon in menu bar
Edit: Now I understand, it does not depend on a header file, it depends on comdlg32.dll
