Home  |  Search  |  Login  |  Register

Home > Forums > Developer > MessageBox for .NET CF > HHTaskBar Sometimes Breaks

Resco Forums - closed (for archive use only)
HHTaskBar Sometimes Breaks
MessageBox for .NET CF
Thread Starter: Rainchild
Started: 11-02-2011 1:26 AM
Replies: 1

Print Search Previous Topic Next Topic
  02 Nov 2011, 1:26 AM
Rainchild is not online. Last active: 2/19/2015 5:43:43 PM Rainchild

Top 75 Posts
Joined on 06-16-2009
Posts 60
HHTaskBar Sometimes Breaks
I'm having trouble pinpointing the exact circumstances which causes this, but sometimes after displaying a MessageBoxEx or inherited OverlayForm the task bar (HHTaskBar) stays locked out and eventually turns black.

I used Remote Spy and discovered the window was sitting outside the screen bounds... I think at (640,0) to (676, 480) or something.

This is on a Windows Mobile 6.5.3 device (Motorola MC55A), though I've also witnessed it on the MC75A and MC55 (QVGA).

I called a bunch of native code:

                IntPtr h = FindWindow("HHTaskBar", "");
                IntPtr ptr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(RECT)));
                GetWindowRect(h, ptr);
                RECT r = (RECT)Marshal.PtrToStructure(ptr, typeof(RECT));
                ShowWindow(h, SW_SHOWNA);
                EnableWindow(h, true);
                MoveWindow(h, 0, 0, r.Width, r.Height, false);

Which looks like it has put it back the way it should be, but why would it have disappeared off the screen in the first place?

  03 Nov 2011, 7:46 AM
Peter Selicky is not online. Last active: 8/26/2013 9:24:41 AM Peter Selicky

Top 10 Posts
Joined on 12-09-2009
Posts 1,797
Re: HHTaskBar Sometimes Breaks

unfortunately, from your post, I'm not able to tell you what is wrong. Could you please send me a sample to simulate the issue? Thank you.

Regards, Peter
 Page 1 of 1 (2 items)
Copyright © 2011 Resco, sro. All rights reserved.