Zune Borderless Window Behavior
Average Rating:
(8)
(8)
Description
Discussions
(4)
|
|
-
-
Written November 25, 2011Hi Jeremy, Great work with this behavior, really smart! Only thing is that you can resize it past its "limits". Any clue on how to stop this happening and not allowing the window to resize under its minimum size? Thanks!! Jose
-
-
-
Written September 22, 2011Here is another fix to allow the application to handle its own minimum height/width. I haven't noticed any problems using this along with the other fixes mentioned below. case WM_GETMINMAXINF
O: WmGetMinMaxInfo (hWnd, lParam); handled = false; // Used false to let application handle min height requirements break;
-
-
-
Written March 07, 2011There is just one "slight" problem with this behavior: Any child window you create in the code of this Zune-looking window will be unresponsive to user input and mouse clicks, which makes this approach useless. If you can fix this problem, please let me know. P.S. To reproduce the problem, open the demo solution, add and button on main window and call MessageBox.Show in click handler for the button. You will know what I mean. Max.
-
Written March 07, 2011UPDATE: The problem is in HwndHook method of ZuneWindow.cs. In my scenario, whenever I needed to display a child dialog, my Zune-looking window was already hidden, so I just commented out handeled = true in WM_NCACTIVATE message procession case, and by doing this got a responsive dialog, however this is one in the million shot that you will have the similar situation. If you comment out handeled = true, you will have a very non-Zune looking window. Some hWnd filtering should probably introduced in the code, so that the HwndHook only affects the messages, sent by the main window' message loop. Max.
-
Written March 30, 2011I am having the same experience with child windows. Has anyone solved this issue and if so, do you mind updating the source or sharing with others. Thanks Callon
-
Written August 29, 2011Solution: IntPtr returnval = IntPtr.Zero; ... returnval = DefWindowProc(h
Wnd, message, wParam, new IntPtr(-1)); ... return returnval; So return the DefWindowProc's return value in the HwndHook method. I found it here: http://metrotoo lkit.codeplex.c om/
-
-
-
Written October 20, 2010Love this window! Only thing I have noticed which is not perfect, is that the border shows when the window is inactive. Do you know why? I cant seem to figure it out... Best Regards, Ola
-




